Template:Succession box: Difference between revisions

Template page
m (spolier to spoiler)
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
 
{{#switch:{{#if:{{{fullspoiler|}}}|1}}{{#if:{{{beforespoiler|}}}|2}}{{#if:{{{afterspoiler|}}}|3}}
{{#switch:{{#if:{{{fullspolier|}}}|1}}{{#if:{{{beforespolier|}}}|2}}{{#if:{{{afterspolier|}}}|3}}
| 1= ! colspan="3" {{spoilerplate}}
| 1= ! colspan="3" {{spoilerplate}}
{{!}}-
{{!}}-
{{!}} class="spoiltext_box" {{s-bef|before={{{before}}}}}
{{!}} id="spoil-bef" class="spoiltext_box" {{s-bef|before={{{before}}}}}
{{!}} class="spoiltext_box" {{s-ttl|title={{{title}}}}}
{{!}} id="spoil-ttl" class="spoiltext_box" {{s-ttl|title={{{title}}}}}
{{!}} class="spoiltext_box" {{s-aft|after={{{after}}}}}
{{!}} id="spoil-aft" class="spoiltext_box" {{s-aft|after={{{after}}}}}
{{!}}-
{{!}}-
| 2= ! {{spoilerplate}}
| 2= ! {{spoilerplate}}
! colspan="2" {{!}}
! colspan="2" {{!}}
{{!}}-
{{!}}-
{{!}} class="spoiltext_box" {{s-bef|before={{{before}}}}}
{{!}} id="spoil-bef" class="spoiltext_box" {{s-bef|before={{{before}}}}}
{{!}} {{s-ttl|title={{{title}}}}}
{{!}} {{s-ttl|title={{{title}}}}}
{{!}} {{s-aft|after={{{after}}}}}
{{!}} {{s-aft|after={{{after}}}}}
Line 20: Line 19:
{{!}} {{s-bef|before={{{before}}}}}
{{!}} {{s-bef|before={{{before}}}}}
{{!}} {{s-ttl|title={{{title}}}}}
{{!}} {{s-ttl|title={{{title}}}}}
{{!}} class="spoiltext_box" {{s-aft|after={{{after}}}}}
{{!}} id="spoil-aft" class="spoiltext_box" {{s-aft|after={{{after}}}}}
{{!}}-
{{!}}-
| #default= {{!}}-
| #default= {{!}}-
Line 30: Line 29:
</includeonly><noinclude>
</includeonly><noinclude>
= Documentation =
= 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.
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 ==
== Usage ==
Line 38: Line 37:
   | title=
   | title=
   | after=
   | after=
   | fullspolier=
   | fullspoiler=
   | beforespolier=
   | beforespoiler=
   | afterspolier=
   | afterspoiler=
}}
}}
</pre>
</pre>
Line 50: Line 49:
{{succession box
{{succession box
   | before= [[Jackson Spencer|Jackson "Ripper" Spencer]]
   | before= [[Jackson Spencer|Jackson "Ripper" Spencer]]
   | title= Commander, Air Group of the [[Galactica type battlestar|battlestar]] ''[[Galactica (RDM)|Galactica]]''
   | title= Commander, Air Group, ''[[Galactica (RDM)|Galactica]]''
   | after= [[George Birch|George "Catman" Birch]]
   | after= [[George Birch|George "Catman" Birch]]
}}
}}
{{succession box
{{succession box
   | before= [[George Birch|George "Catman" Birch]]
   | before= [[George Birch|George "Catman" Birch]]
   | title= Commander, Air Group of the [[Galactica type battlestar|battlestar]] ''[[Galactica (RDM)|Galactica]]''
   | title= Commander, Air Group, ''[[Galactica (RDM)|Galactica]]''
   | after= [[Kara Thrace|Kara "Starbuck" Thrace]]
   | after= [[Kara Thrace|Kara "Starbuck" Thrace]]
}}
}}
{{succession box
{{succession box
   | before= ''(unknown, eventually [[Jack Fisk]])''
   | before= ''(unknown, eventually [[Jack Fisk]])''
   | title= Executive Officer of the [[Mercury class battlestar|battlestar]] ''[[Pegasus (RDM)|Pegasus]]''
   | title= Executive Officer, ''[[Pegasus (RDM)|Pegasus]]''
   | after= ''(unknown, eventually [[Anastasia Dualla]])
   | after= ''(unknown, eventually [[Anastasia Dualla]])
}}
}}
{{succession box
{{succession box
   | before= [[Barry Garner]]
   | before= [[Barry Garner]]
   | title= Commanding Officer of the [[Mercury class battlestar|battlestar]] ''[[Pegasus (RDM)|Pegasus]]''
   | title= Commanding Officer, ''[[Pegasus (RDM)|Pegasus]]''
   | after= Incumbent
   | after= Incumbent
}}
}}
Line 74: Line 73:
* '''title ''': 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.
* '''after ''': Can be wikilined or non-wikilinked. Any formating allowed.
**'''Note''': The {{tl|spoiltext}} template will not work within succession boxes. Instead, three other templates are available which may be used in place of {{tl|succession box}}.
**'''Note''': The {{tl|spoiltext}} template will not work within succession boxes. Please look at the optional parameters below.


=== Optional parameter ===
=== Optional parameter ===
* '''fullspolier''': If true, it will hide the entire section behind a spolier tag.
* '''fullspoiler''': If true, it will hide the entire section behind a spoiler tag.
* OR: '''beforespolier''': If true, it will hide the ''before'' section behind a spolier tag.
* OR: '''beforespoiler''': If true, it will hide the ''before'' section behind a spoiler tag.
* OR: '''afterspolier''': If true, it will hide the ''after'' section behind a spolier tag.
* OR: '''afterspoiler''': If true, it will hide the ''after'' section behind a spoiler tag.


</noinclude>
[[Category:Special Formating Templates|{{PAGENAME}}]][[Category:Templates using ParserFunctions|{{PAGENAME}}]] [[de:Vorlage:Reihenfolge box]]</noinclude>

Latest revision as of 21:41, 14 August 2007

Documentation

Use a single block of succession boxes per article. Begin each succession box block with {{start box}} and end it with {{end box}}. In between, you may place as many instances of {{succession box}} as is necessary. {{start box}} and {{end box}} are only needed once. See example below.

Usage

{{succession box
  | before=
  | title=
  | after=
  | fullspoiler=
  | beforespoiler=
  | afterspoiler=
}}

Example

{{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}}

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 {{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.