| Latest revision |
Your text |
| Line 1: |
Line 1: |
| <includeonly> | | <includeonly> |
| {{#switch:{{#if:{{{fullspoiler|}}}|1}}{{#if:{{{beforespoiler|}}}|2}}{{#if:{{{afterspoiler|}}}|3}}
| | |- style="text-align: center;" |
| | 1= ! colspan="3" {{spoilerplate}}
| | {{s-bef|before={{{before}}}}} |
| {{!}}-
| | {{s-ttl|title={{{title}}}}} |
| {{!}} id="spoil-bef" class="spoiltext_box" {{s-bef|before={{{before}}}}}
| | {{s-aft|after={{{after}}}}} |
| {{!}} id="spoil-ttl" class="spoiltext_box" {{s-ttl|title={{{title}}}}}
| | </includeonly> |
| {{!}} id="spoil-aft" class="spoiltext_box" {{s-aft|after={{{after}}}}}
| | <noinclude> |
| {{!}}-
| | This is a very complicated template system. It must be done excatly like shown below or it will not work. |
| | 2= ! {{spoilerplate}}
| |
| ! colspan="2" {{!}}
| |
| {{!}}-
| |
| {{!}} id="spoil-bef" class="spoiltext_box" {{s-bef|before={{{before}}}}}
| |
| {{!}} {{s-ttl|title={{{title}}}}}
| |
| {{!}} {{s-aft|after={{{after}}}}}
| |
| {{!}}-
| |
| | 3= ! colspan="2" {{!}}
| |
| ! {{spoilerplate}}
| |
| {{!}}-
| |
| {{!}} {{s-bef|before={{{before}}}}}
| |
| {{!}} {{s-ttl|title={{{title}}}}}
| |
| {{!}} id="spoil-aft" class="spoiltext_box" {{s-aft|after={{{after}}}}}
| |
| {{!}}-
| |
| | #default= {{!}}-
| |
| {{!}} {{s-bef|before={{{before}}}}}
| |
| {{!}} {{s-ttl|title={{{title}}}}}
| |
| {{!}} {{s-aft|after={{{after}}}}}
| |
| {{!}}-
| |
| }} | |
| </includeonly><noinclude> | |
| = Documentation =
| |
| Use a single block of succession boxes per article. Begin each succession box block with {{tl|start box}} and end it with {{tl|end box}}. In between, you may place as many instances of <code><nowiki>{{succession box}}</nowiki></code> as is necessary. {{tl|start box}} and {{tl|end box}} are only ''needed'' once. See [[#Example|example]] below.
| |
| | |
| == Usage ==
| |
| <pre> | | <pre> |
| | {{start box}} |
| {{succession box | | {{succession box |
| | before=
| | |before=[[Jack Fisk]] |
| | title=
| | |title=Comanding Officer of the [[Mercury class battlestar|battlestar]] ''[[Pegasus (RDM)|Pegasus]]'' |
| | after=
| | |after=[[Lee Adama]] |
| | fullspoiler=
| |
| | beforespoiler=
| |
| | afterspoiler=
| |
| }} | | }} |
| | {{end box}} |
| </pre> | | </pre> |
| | | We are trying to add other features to this template, but we have yet to get them to work. |
| === Example ===
| |
| | |
| <pre><nowiki>
| |
| {{start box}}
| |
| {{succession box
| |
| | before= [[Jackson Spencer|Jackson "Ripper" Spencer]]
| |
| | title= Commander, Air Group, ''[[Galactica (RDM)|Galactica]]''
| |
| | after= [[George Birch|George "Catman" Birch]]
| |
| }}
| |
| {{succession box
| |
| | before= [[George Birch|George "Catman" Birch]]
| |
| | title= Commander, Air Group, ''[[Galactica (RDM)|Galactica]]''
| |
| | after= [[Kara Thrace|Kara "Starbuck" Thrace]]
| |
| }}
| |
| {{succession box
| |
| | before= ''(unknown, eventually [[Jack Fisk]])''
| |
| | title= Executive Officer, ''[[Pegasus (RDM)|Pegasus]]''
| |
| | after= ''(unknown, eventually [[Anastasia Dualla]])
| |
| }}
| |
| {{succession box
| |
| | before= [[Barry Garner]]
| |
| | title= Commanding Officer, ''[[Pegasus (RDM)|Pegasus]]''
| |
| | after= Incumbent
| |
| }}
| |
| {{end box}}</nowiki></pre>
| |
| | |
| === Required parameters ===
| |
| * '''before''': Can be wikilined or non-wikilinked. Any formating allowed.
| |
| * '''title ''': Can be wikilined or non-wikilinked. Any formating allowed.
| |
| * '''after ''': Can be wikilined or non-wikilinked. Any formating allowed.
| |
| **'''Note''': The {{tl|spoiltext}} template will not work within succession boxes. Please look at the optional parameters below.
| |
| | |
| === Optional parameter ===
| |
| * '''fullspoiler''': If true, it will hide the entire section behind a spoiler tag.
| |
| * OR: '''beforespoiler''': If true, it will hide the ''before'' section behind a spoiler tag.
| |
| * OR: '''afterspoiler''': If true, it will hide the ''after'' section behind a spoiler tag.
| |
| | |
| [[Category:Special Formating Templates|{{PAGENAME}}]][[Category:Templates using ParserFunctions|{{PAGENAME}}]] [[de:Vorlage:Reihenfolge box]]</noinclude>
| |