Difference between revisions of "Template:Infobox Faction"

From Holocron - Star Wars Combine
Jump to: navigation, search
(Watch your tags; you broke half the pages using this template.)
 
(4 intermediate revisions by 3 users not shown)
Line 5: Line 5:
 
</td></tr>
 
</td></tr>
 
<tr>
 
<tr>
<td width="100%" colspan="2" style="background-color: #21314c;"> '''General information'''
+
<td width="100%" colspan="2" style="background-color: #21314c;"> '''General Information'''
 
</td></tr>
 
</td></tr>
<tr>
+
{{#if:{{{motto|}}}|<tr>
 
<td width="31%" valign="top"> Motto
 
<td width="31%" valign="top"> Motto
 
</td><td width="69%"> {{{motto}}}
 
</td><td width="69%"> {{{motto}}}
</td></tr>
+
</td></tr>}}
 
<tr>
 
<tr>
 
<td width="31%" valign="top"> Status
 
<td width="31%" valign="top"> Status
Line 19: Line 19:
 
</td><td width="69%"> {{{leader}}}
 
</td><td width="69%"> {{{leader}}}
 
</td></tr>
 
</td></tr>
<tr>
+
{{#if:{{{2ic|}}}|<tr>
 
<td width="31%" valign="top"> 2IC
 
<td width="31%" valign="top"> 2IC
 
</td><td width="69%"> {{{2ic}}}
 
</td><td width="69%"> {{{2ic}}}
</td></tr>
+
</td></tr>}}
<tr>
+
{{#if:{{{owner|}}}|<tr>
 
<td width="31%" valign="top"> Owner
 
<td width="31%" valign="top"> Owner
 
</td><td width="69%"> {{{owner}}}
 
</td><td width="69%"> {{{owner}}}
</td></tr>
+
</td></tr>}}
<tr>
+
{{#if:{{{headquarters|}}}|<tr>
 
<td width="31%" valign="top"> Headquarters
 
<td width="31%" valign="top"> Headquarters
 
</td><td width="69%"> {{{headquarters}}}
 
</td><td width="69%"> {{{headquarters}}}
</td></tr>
+
</td></tr>}}
 
<tr>
 
<tr>
 
<td width="100%" colspan="2" style="background-color: #21314c;"> '''Historical Information'''
 
<td width="100%" colspan="2" style="background-color: #21314c;"> '''Historical Information'''
 
</td></tr>
 
</td></tr>
<tr>
+
{{#if:{{{formed|}}}|<tr>
<td width="31%" valign="top"> Once was
+
<td width="31%" valign="top"> Formed from
 
</td><td width="69%"> {{{formed}}}
 
</td><td width="69%"> {{{formed}}}
</td></tr>
+
</td></tr>}}
 +
{{#if:{{{founder|}}}|<tr>
 +
<td width="31%" valign="top"> Founder
 +
</td><td width="69%"> {{{founder}}}
 +
</td></tr>}}
 
<tr>
 
<tr>
 
<td width="31%" valign="top"> Founded
 
<td width="31%" valign="top"> Founded
 
</td><td width="69%"> {{{founded}}}
 
</td><td width="69%"> {{{founded}}}
 
</td></tr>
 
</td></tr>
<tr>
+
{{#if:{{{dissolved|}}}|<tr>
 
<td width="31%" valign="top"> Dissolved
 
<td width="31%" valign="top"> Dissolved
 
</td><td width="69%"> {{{dissolved}}}
 
</td><td width="69%"> {{{dissolved}}}
</td></tr>
+
</td></tr>}}
 
<tr>
 
<tr>
 
<td width="100%" colspan="2" style="background-color: #21314c;"> '''Political Information'''
 
<td width="100%" colspan="2" style="background-color: #21314c;"> '''Political Information'''
 
</td></tr>
 
</td></tr>
<tr>
+
{{#if:{{{affiliation|}}}|<tr>
 
<td width="31%" valign="top"> Affiliation
 
<td width="31%" valign="top"> Affiliation
 
</td><td width="69%"> {{{affiliation}}}
 
</td><td width="69%"> {{{affiliation}}}
</td></tr>
+
</td></tr>}}
 
<tr>
 
<tr>
<td width="31%" valign="top"> Faction Type
+
<td width="31%" valign="top"> Industry
</td><td width="69%"> {{{type}}}
+
</td><td width="69%"> {{{industry}}}
 
</td></tr>
 
</td></tr>
<tr>
+
{{#if:{{{holosite|}}}|
 
<td width="31%" valign="top"> Holosite
 
<td width="31%" valign="top"> Holosite
 
</td><td width="69%"> {{{holosite}}}
 
</td><td width="69%"> {{{holosite}}}
</td></tr></table><noinclude>
+
</td>}}
 +
</table><noinclude>
 
===Usage===
 
===Usage===
  
Line 79: Line 84:
 
| dissolved =  
 
| dissolved =  
 
| affiliation =  
 
| affiliation =  
| type =  
+
| industry =  
 
| holosite =
 
| holosite =
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
  
[[Category:Templates|{{PAGENAME}}]]</noinclude>
+
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 12:55, 18 May 2014

{{{name}}}
{{{image}}}
General Information
Status {{{status}}}
Leader {{{leader}}}
Historical Information
Founded {{{founded}}}
Political Information
Industry {{{industry}}}

Usage

The Infobox Faction Box template is used for faction pages only, to describe the faction. Paste the following code into the top of an article, filling all known fields:

{{Infobox Faction
| name = 
| image = 
| motto =
| status = 
| leader = 
| 2ic = 
| owner = 
| headquarters = 
| formed = 
| founded = 
| dissolved = 
| affiliation = 
| industry = 
| holosite =
}}