Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Editing Template:Succession box

Template page
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
<includeonly>
<includeonly>
{{#switch:{{#if:{{{fullspoiler|}}}|1}}{{#if:{{{beforespoiler|}}}|2}}{{#if:{{{afterspoiler|}}}|3}}
|-
| 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}}}}}
|-
{{!}} id="spoil-aft" class="spoiltext_box" {{s-aft|after={{{after}}}}}
</includeonly>
{{!}}-
<noinclude>
| 2= ! {{spoilerplate}}
==Usage instructions==
! colspan="2" {{!}}
Use a single block of succession boxes per article. Begin each succession box block with <nowiki>{{start box}}</nowiki> and end it with <nowiki>{{end box}}</nowiki>. In between, you may place as many instances of <nowiki>{{succession box}}</nowiki> as is necessary. Use the following syntax:
{{!}}-
{{!}} 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 ==
<nowiki>{{succession box|before=PREDECESSOR|title=TITLE|after=SUCCESSOR}}</nowiki>, replacing "PREDECESSOR", "TITLE" and "SUCCESSOR" as appropriate. For example, this is [[Lee Adama]]'s succession box, which includes two non-contiguous stints as ''Galactica'''s CAG, and two subsequent positions.
<pre>
{{succession box
  | before=
  | title=
  | after=
  | fullspoiler=
  | beforespoiler=
  | afterspoiler=
}}
</pre>
 
=== Example ===


<pre><nowiki>
<pre><nowiki>
{{start box}}
{{start box}}
{{succession box
{{succession box|before=[[Jackson Spencer|Jackson "Ripper" Spencer]]|title=Commander, Air Group of the [[Galactica type battlestar|battlestar]] ''[[Galactica (RDM)|Galactica]]''|after=[[George Birch|George "Catman" Birch]]}}
  | before= [[Jackson Spencer|Jackson "Ripper" Spencer]]
{{succession box|before=[[George Birch|George "Catman" Birch]]|title=Commander, Air Group of the [[Galactica type battlestar|battlestar]] ''[[Galactica (RDM)|Galactica]]''|after=[[Kara Thrace|Kara "Starbuck" Thrace]]}}
  | title= Commander, Air Group, ''[[Galactica (RDM)|Galactica]]''
{{succession box|before=''(unknown, eventually [[Jack Fisk]])''|title=Executive Officer of the [[Mercury class battlestar|battlestar]] ''[[Pegasus (RDM)|Pegasus]]''|after=''(unknown, eventually [[Anastasia Dualla]])}}
  | after= [[George Birch|George "Catman" Birch]]
{{succession box|before=[[Barry Garner]]|title=Commanding Officer of the [[Mercury class battlestar|battlestar]] ''[[Pegasus (RDM)|Pegasus]]''|after=Incumbent}}
}}
{{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>
{{end box}}</nowiki></pre>


=== Required parameters ===
The <nowiki>{{spoiltext}}</nowiki> template will not work within succession boxes. Instead, three other templates are available which may be used in place of <nowiki>{{succession box}}</nowiki>. These are:
* '''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 ===
*<nowiki>{{succession box (spoiler)}}</nowiki> hides the entire section behind a spoiler tag.
* '''fullspoiler''': If true, it will hide the entire section behind a spoiler tag.
*<nowiki>{{succession box (spoiler-bef)}}</nowiki> hides the predecessor.
* OR: '''beforespoiler''': If true, it will hide the ''before'' section behind a spoiler tag.
*<nowiki>{{succession box (spoiler-aft)}}</nowiki> hides the successor.
* 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>
The syntax for these is identical to the standard <nowiki>{{succession box}}</nowiki> template.</noinclude>

To edit this page, please enter the words that appear below in the box (more info):

Refresh
Cancel Editing help (opens in new window)

  [] · [[]] · [[|]] · {{}} · · “” ‘’ «» ‹› „“ ‚‘ · ~ | ° &nbsp; · ± × ÷ ² ³ ½ · §
     [[Category:]] · [[:File:]] · [[Special:MyLanguage/]] · <code></code> · <nowiki></nowiki> <code><nowiki></nowiki></code> · <syntaxhighlight></syntaxhighlight> · <includeonly></includeonly> · <noinclude></noinclude> · #REDIRECT[[]] · <translate></translate> · <languages/> · {{#translation:}} · <tvar|></> · {{DEFAULTSORT:}} · <categorytree></categorytree> · <div style="clear:both;"></div> <s></s>


Your changes will be visible immediately.
  • For testing, please use the sandbox instead.
  • On talk pages, please sign your comment by typing four tildes (~~~~).

Template used on this page: