Jump to content

Template:S-start-collapsible/doc

From BattleIntelligence
Revision as of 17:10, 27 January 2024 by imported>Deadfire (updating)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

S-start-collapsible is an alternative to {{S-start}}, the initial component in a template series for succession boxes. As the name implies, it uses a collapsible table.

Usage

Replace {{s-start}} with {{s-start-collapsible|header=value}}.

A collapsible succession box always needs a header, otherwise it will break the page rendering. For this reason the template will force you to use the header parameter. The value of this header parameter is one of the succession box headers.

Example

{{s-start-collapsible|header={{s-other | [[:Category: Military Operations|Military Operations]]}}}}
{{S-bef | before= [[:Category:Fourth Succession War Era Military Operations|Fourth Succession War Era Military Operations]]}}
{{s-ttl | title= [[:Category:Clan Invasion Era Military Operations|Clan Invasion Era Military Operations]] | years=[[3050]] – [[3061]]}}
{{s-aft | after= [[:Category:Civil War Era Military Operations|Civil War Era Military Operations]]}}
{{s-end}}

Will generate:

Military Operations
Preceded by Clan Invasion Era Military Operations
3050 – 3061
Succeeded by