Difference between revisions of "Template:Infobox Race"

From Holocron - Star Wars Combine
Jump to: navigation, search
(Adding Xesh's revised Race template, standardizing fields, etc.)
Line 1: Line 1:
{|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;">
width="100%" colspan="2" style="background-color: #21314c; font-size: 16px; text-align: center;" | <font color=white>'''{{{name}}}'''</font>
+
<tr><td width="100%" colspan="2" style="text-align: center;">{{{image}}}</td></tr>
|-
+
<tr><td width="100%" colspan="2" style="background-color: #21314c; font-size: 16px; text-align: center;"><font color="white"><b>{{{name}}}</b></font></td></tr>
width="100%" colspan="2" style="text-align: center;" | {{{image}}}
+
{{#if:{{{homeworld|}}}|<tr><td width="31%" valign="top">Homeworld</td><td width="69%">{{{homeworld}}}</td></tr>}}
|-
+
{{#if:{{{language|}}}|<tr><td width="31%" valign="top">Language</td><td width="69%">{{{language}}}</td></tr>}}
|  width="100%" colspan="2" style="background-color: #21314c;" | <font color=white>'''Biographical Information'''</font>
+
{{#if:{{{aveheight|}}}|<tr><td width="31%" valign="top">Average Height</td><td width="69%">{{{height}}}</td></tr>}}
|-
+
{{#if:{{{skincolour|}}}|<tr><td width="31%" valign="top">Skin colour</td><td width="69%">{{{skin color}}}</td></tr>}}
| width="31%" | Homeworld
+
{{#if:{{{haircolour|}}}|<tr><td width="31%" valign="top">Hair colour</td><td width="69%">{{{hair color}}}</td></tr>}}
width="69%" | {{{homeworld}}}
+
{{#if:{{{distinctions|}}}|<tr><td width="31%" valign="top">Distinctions</td><td width="69%">{{{distinctions}}}</td></tr>}}
|-
+
{{#if:{{{avelife|}}}|<tr><td width="31%" valign="top">Average lifespan</td><td width="69%">{{{lifespan}}}</td></tr>}}
| width="31%" | Language
+
{{#if:{{{known|}}}|<tr><td width="31%" valign="top">Known Members</td><td width="69%">[[:Category:{{{known|{{PAGENAME}}}}}|List of known {{{known|{{PAGENAME}}}}}]]</td></tr>}}
width="69%" | {{{language}}}
+
</table>
|-
 
| width="31%" | Average Height
 
width="69%" | {{{aveheight}}}
 
|-
 
| width="31%" | Skin colour
 
width="69%" | {{{skincolour}}}
 
|-
 
| width="31%" | Hair colour
 
width="69%" | {{{haircolour}}}
 
|-
 
| width="31%" | Distinctions
 
width="69%" | {{{distinctions}}}
 
|-
 
| width="31%" | Average lifespan
 
width="69%" | {{{avelife}}}
 
|-
 
| width="31%" | Known Members
 
width="69%" | [[:Category:{{{known|{{PAGENAME}}}}}|Known {{{known|{{PAGENAME}}}}}]]
 
|}
 
 
 
 
<noinclude>
 
<noinclude>
 
===Usage===
 
===Usage===
  
The Race Box template is used for Race pages only, to describe the Race. Paste the following code into the top of an article, filling all known fields:
+
The Race Box template is used for Race pages only, to describe the Race. Paste the following code into the top of an article, filling all known fields. For unknown or not applicable values leave the field blank.
  
 
<pre><nowiki>
 
<pre><nowiki>
 
{{Infobox Race
 
{{Infobox Race
| image =[[File:Example.jpg]]
+
| image = [[File:Example.jpg]]
 
| name =
 
| name =
 
| homeworld =
 
| homeworld =
 
| language =
 
| language =
| aveheight =
+
| height =
| skincolour =
+
| skin color =
| haircolour =
+
| hair color =
 
| distinctions =
 
| distinctions =
| avelife =
+
| lifespan =
| known = (only use if plural differs from the singular race name.  
+
| known = (only use if plural differs from the singular race name. e.g for "Human" put: | known = Humans)
| E.g for "Human" put: | known = Humans)
 
 
}}
 
}}
 
</nowiki>
 
</nowiki>
 
</pre>
 
</pre>
 
  
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Revision as of 14:35, 27 September 2012





{{{image}}}
{{{name}}}

Usage

The Race Box template is used for Race pages only, to describe the Race. Paste the following code into the top of an article, filling all known fields. For unknown or not applicable values leave the field blank.

{{Infobox Race
| image = [[File:Example.jpg]]
| name =
| homeworld =
| language =
| height =
| skin color =
| hair color =
| distinctions =
| lifespan =
| known = (only use if plural differs from the singular race name. e.g for "Human" put: | known = Humans)
}}