Difference between revisions of "Template:Infobox Family"

From Holocron - Star Wars Combine
Jump to: navigation, search
(Added more fields for flexibility)
Line 1: Line 1:
 
<table style="border: 1px solid grey; padding: 1px; margin: 5px; width: 25%; float: right; font-size: 11px;">
 
<table style="border: 1px solid grey; padding: 1px; margin: 5px; width: 25%; float: right; font-size: 11px;">
 
<tr><td width="100%" colspan="2" style="background-color: #21314c; font-size: 16px; text-align: center;">'''{{{family name}}}'''</td></tr>
 
<tr><td width="100%" colspan="2" style="background-color: #21314c; font-size: 16px; text-align: center;">'''{{{family name}}}'''</td></tr>
<tr><td width="100%" colspan="2" style="text-align: center;">{{{image}}}</td></tr>
+
{{#if:{{{image|}}}|<tr><td width="100%" colspan="2" style="text-align: center;">{{{image}}}</td></tr>}}
 
{{#if:{{{coat of arms|}}}|<tr><td width="100%" colspan="2" style="text-align: center;">{{{coat of arms}}}</td></tr>}}
 
{{#if:{{{coat of arms|}}}|<tr><td width="100%" colspan="2" style="text-align: center;">{{{coat of arms}}}</td></tr>}}
 
<tr><td width="100%" colspan="2" style="text-align: center;">{{{motto}}}</td></tr>
 
<tr><td width="100%" colspan="2" style="text-align: center;">{{{motto}}}</td></tr>
Line 13: Line 13:
 
<tr><td width="100%" colspan="2" style="background-color: #21314c;">'''General information'''</td></tr>
 
<tr><td width="100%" colspan="2" style="background-color: #21314c;">'''General information'''</td></tr>
 
{{#if:{{{current head|}}}|<tr><td width="31%" valign="top">Current head</td><td width="69%">{{{current head}}}</td></tr>}}
 
{{#if:{{{current head|}}}|<tr><td width="31%" valign="top">Current head</td><td width="69%">{{{current head}}}</td></tr>}}
<tr><td width="31%" valign="top">Headquarters</td><td width="69%">{{{headquarters}}}</td></tr>
+
{{#if:{{{headquarters|}}}|<tr><td width="31%" valign="top">Headquarters</td><td width="69%">{{{headquarters}}}</td></tr>}}
<tr><td width="31%" valign="top">Networth</td><td width="69%">{{{networth}}}</td></tr>
+
{{#if:{{{networth|}}}|<tr><td width="31%" valign="top">Networth</td><td width="69%">{{{networth}}}</td></tr>}}
 
<tr><td width="31%" valign="top">Affiliation</td><td width="69%">{{{affiliation}}}</td></tr>
 
<tr><td width="31%" valign="top">Affiliation</td><td width="69%">{{{affiliation}}}</td></tr>
 
{{#if:{{{species|}}}|<tr><td width="31%" valign="top">Species</td><td width="69%">{{{species}}}</td></tr>}}
 
{{#if:{{{species|}}}|<tr><td width="31%" valign="top">Species</td><td width="69%">{{{species}}}</td></tr>}}
<tr><td width="31%" valign="top">Holosite</td><td width="69%">{{{holosite}}}</td></tr></table><noinclude>
+
{{#if:{{{holosite|}}}|<tr><td width="31%" valign="top">Holosite</td><td width="69%">{{{holosite}}}</td></tr>}}
 +
</table><noinclude>
  
 
===Usage===
 
===Usage===
Line 35: Line 36:
 
| dissolved =  
 
| dissolved =  
 
| cadet branches =  
 
| cadet branches =  
| current head =
+
| current head =  
| headquarters =
+
| headquarters =  
| networth =
+
| networth =  
| affiliation =
+
| affiliation =  
| holosite =
+
| holosite =  
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
  
 
[[Category:Templates|{{PAGENAME}}]]</noinclude>
 
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 04:01, 2 March 2013






{{{family name}}}
{{{motto}}}
Historical Information
Established{{{established}}}
General information
Affiliation{{{affiliation}}}

Usage

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

{{Infobox Family
| family name = 
| image = 
| coat of arms = 
| motto = 
| parent house = 
| founder = 
| titles = 
| established = 
| dissolved = 
| cadet branches = 
| current head = 
| headquarters = 
| networth = 
| affiliation = 
| holosite = 
}}