Difference between revisions of "Template:Succession Box"

From Holocron - Star Wars Combine
Jump to: navigation, search
m
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<center>
 
<center>
{|  style="position: relative; padding: 0px; min-width: 50%; padding: 5px; margin: 5px; border-collapse:collapse; text-align: center;" border="1" bordercolor="#C0C0C0"
+
{|  style="position: relative; padding: 0px; width: 70%; padding: 5px; margin: 5px; border-collapse:collapse; text-align: center;" border="1" bordercolor="#C0C0C0"
|  style="width: 100%; background-color: #003853;" 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 title}}}</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>{{{successor title}}}</b>|<b>Succeeded By:</b>}}<br />{{{successor}}}
 +
|-
 
|}
 
|}
 
</center>
 
</center>
<noinclude>[[Category: Templates|{{PAGENAME}}]]</noinclude>
+
 
 +
<noinclude>
 +
===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:
 +
 
 +
<pre><nowiki>
 +
{{Succession Box
 +
| position =
 +
| predecessor =
 +
| name =
 +
| time =
 +
| successor =
 +
}}
 +
</nowiki></pre>
 +
 
 +
===Optional Fields===
 +
You can alter the name of the predecessor / successor titles by using these optional fields:
 +
 
 +
<pre><nowiki>
 +
| predecessor title =
 +
| successor title =
 +
</nowiki></pre>
 +
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 17:57, 11 December 2013

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


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 can alter the name of the predecessor / successor titles by using these optional fields:

| predecessor title = 
| successor title =