Difference between revisions of "Template:Succession Box"

From Holocron - Star Wars Combine
Jump to: navigation, search
Line 3: Line 3:
 
|  style="width: 100%; background-color: #21314c;" colspan=3 | <font color=white>'''{{{position}}}'''</font>
 
|  style="width: 100%; background-color: #21314c;" colspan=3 | <font color=white>'''{{{position}}}'''</font>
 
|-  
 
|-  
|  style="width: 30%; text-align: center;" | '''Preceeded By:'''<br />{{{predecessor}}}
+
|  style="width: 30%; text-align: center;" | {{#if:{{{predecessor title|}}}|<b>predecessor field</b>|<b>Preceded By:</b>}}<br />{{{predecessor}}}
 
|  style="width: 40%; text-align: center;" | '''{{{name}}}'''<br />{{{time}}}
 
|  style="width: 40%; text-align: center;" | '''{{{name}}}'''<br />{{{time}}}
|  style="width: 30%; text-align: center;" | '''Succeeded By:'''<br />{{{successor}}}
+
|  style="width: 30%; text-align: center;" | {{#if:{{{successor title|}}}|<b>predecessor field</b>|<b>Succeeded By:</b>}}<br />{{{predecessor}}}
 +
 
 +
''':'''<br />{{{}}}
 
|-
 
|-
 
|}
 
|}
Line 13: Line 15:
 
===Usage===
 
===Usage===
  
The Succesion Box template is used for Character pages only, to describe the suceeding/predecessing characters in a position. Paste the following code into the end of an article, filling all known fields:
+
The Succession Box template is used for Character pages only, to describe the succeeding / predecessing characters in a position. Paste the following code into the end of an article, filling all known fields:
  
 
<pre><nowiki>
 
<pre><nowiki>
 
{{Succession Box
 
{{Succession Box
|position =
+
| position =
|predecessor=  
+
| predecessor =  
|name=
+
| name =
|time=
+
| time =
|successor =
+
| successor =
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
[[Category: Templates|{{PAGENAME}}]]</noinclude>
+
 
 +
===Optional Fields===
 +
You may change the name of the predecessor and successor fields by using these optional entries:
 +
 
 +
<pre><nowiki>
 +
| predecessor title =
 +
| successor title =
 +
</nowiki></pre>
 +
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 17:49, 11 December 2013

{{{position}}}
Preceded By:
{{{predecessor}}}
{{{name}}}
{{{time}}}
Succeeded By:
{{{predecessor}}}

:
{{{}}}


Usage

The Succession Box template is used for Character pages only, to describe the succeeding / predecessing characters in a position. Paste the following code into the end of an article, filling all known fields:

{{Succession Box
| position =
| predecessor = 
| name =
| time =
| successor =
}}

Optional Fields

You may change the name of the predecessor and successor fields by using these optional entries:

| predecessor title = 
| successor title =