Difference between revisions of "Template:Infobox Race/v2"

From Holocron - Star Wars Combine
Jump to: navigation, search
(making infobox race a conditional template)
 
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="text-align: center;">{{{image}}}</td></tr>
 
<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>
+
<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>{{
{{#if:{{{homeworld|}}}|<tr><td width="31%" valign="top">Homeworld</td><td width="69%">{{{homeworld}}}</td></tr>}}
+
#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>}}
+
#if:{{{language|}}}|<tr><td width="31%" valign="top">Language</td><td width="69%">{{{language}}}</td></tr>}}{{
{{#if:{{{aveheight|}}}|<tr><td width="31%" valign="top">Average Height</td><td width="69%">{{{aveheight}}}</td></tr>}}
+
#if:{{{aveheight|}}}|<tr><td width="31%" valign="top">Average Height</td><td width="69%">{{{aveheight}}}</td></tr>}}{{
{{#if:{{{skincolour|}}}|<tr><td width="31%" valign="top">Skin colour</td><td width="69%">{{{skincolour}}}</td></tr>}}
+
#if:{{{skincolour|}}}|<tr><td width="31%" valign="top">Skin colour</td><td width="69%">{{{skincolour}}}</td></tr>}}{{
{{#if:{{{haircolour|}}}|<tr><td width="31%" valign="top">Hair colour</td><td width="69%">{{{haircolour}}}</td></tr>}}
+
#if:{{{haircolour|}}}|<tr><td width="31%" valign="top">Hair colour</td><td width="69%">{{{haircolour}}}</td></tr>}}{{
{{#if:{{{distinctions|}}}|<tr><td width="31%" valign="top">Distinctions</td><td width="69%">{{{distinctions}}}</td></tr>}}
+
#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%">{{{avelife}}}</td></tr>}}
+
#if:{{{avelife|}}}|<tr><td width="31%" valign="top">Average lifespan</td><td width="69%">{{{avelife}}}</td></tr>}}{{
{{#if:{{{known|}}}|<tr><td width="31%" valign="top">Known Members</td><td width="69%">[[:Category:{{{known|{{PAGENAME}}}}}|List of known {{{known|{{PAGENAME}}}}}]]</td></tr>}}
+
#if:{{{known|}}}|<tr><td width="31%" valign="top">Known Members</td><td width="69%">[[:Category:{{{known|{{PAGENAME}}}}}|List of known {{{known|{{PAGENAME}}}}}]]</td></tr>}}
 
</table>
 
</table>
 
<noinclude>
 
<noinclude>

Revision as of 23:26, 8 October 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 =
| aveheight =
| skincolour =
| haircolour =
| distinctions =
| avelife =
| known = (only use if plural differs from the singular race name. e.g for "Human" put: | known = Humans)
}}