Difference between revisions of "Template:Infobox Character"
Rupert Havok (talk | contribs) (revert) |
Rupert Havok (talk | contribs) (Another test to try and create collapsible/optional fields for Infoboxes) |
||
Line 1: | Line 1: | ||
− | + | <table style="border: 1px solid grey; padding: 1px; margin: 5px; width: 25%; float: right; font-size: 11px;"> | |
− | | | + | {{#if:{{{name|}}}|<tr> |
− | | | + | <td width="100%" colspan="2" style="background-color: #000099; font-size: 16px; text-align: center;"> <font color="white"><b>{{{name}}}</b></font> |
− | + | </td></tr>}} | |
− | + | {{#if:{{{image|}}}|<tr> | |
− | + | <td width="100%" colspan="2" style="text-align: center;"> {{{image}}} | |
− | | | + | </td></tr>}} |
− | + | <tr><td width="100%" colspan="2" style="background-color: #000099;"> <font color="white"><b>Biographical Information</b></font></td></tr> | |
− | + | {{#if:{{{race|}}}|<tr> | |
− | | | + | <td width="31%" valign="top"> Race |
− | + | </td><td width="69%"> {{{race}}} | |
− | + | </td></tr>}} | |
− | | | + | {{#if:{{{homeworld|}}}|<tr> |
− | + | <td width="31%" valign="top"> Homeworld | |
− | + | </td><td width="69%"> {{{homeworld}}} | |
− | | | + | </td></tr>}} |
− | + | {{#if:{{{mother|}}}|<tr> | |
− | + | <td width="31%" valign="top"> Mother | |
− | | | + | </td><td width="69%"> {{{mother}}} |
− | + | </td></tr>}} | |
− | + | {{#if:{{{father|}}}|<tr> | |
− | | | + | <td width="31%" valign="top"> Father |
− | + | </td><td width="69%"> {{{father}}} | |
− | + | </td></tr>}} | |
− | | | + | {{#if:{{{spouse|}}}|<tr> |
− | + | <td width="31%" valign="top"> Spouse | |
− | + | </td><td width="69%"> {{{spouse}}} | |
− | | | + | </td></tr>}} |
− | + | {{#if:{{{siblings|}}}|<tr> | |
− | + | <td width="31%" valign="top"> Siblings | |
− | | | + | </td><td width="69%"> {{{siblings}}} |
− | | | + | </td></tr>}} |
− | + | {{#if:{{{children|}}}|<tr> | |
− | + | <td width="31%" valign="top"> Children | |
− | + | </td><td width="69%"> {{{children}}} | |
− | + | </td></tr>}} | |
− | | | + | {{#if:{{{born|}}}|<tr> |
− | + | <td width="31%" valign="top"> Born | |
− | + | </td><td width="69%"> {{{born}}} | |
− | | | + | </td></tr>}} |
− | + | {{#if:{{{died|}}}|<tr> | |
− | + | <td width="31%" valign="top"> Died | |
− | | | + | </td><td width="69%"> {{{died}}} |
− | + | </td></tr>}} | |
− | + | <td width="100%" colspan="2" style="background-color: #000099;"> <font color="white"><b>Physical Description</b></font></td></tr> | |
− | | | + | {{#if:{{{gender|}}}|<tr> |
− | + | <td width="31%" valign="top"> Gender | |
− | + | </td><td width="69%"> {{{gender}}} | |
− | + | </td></tr>}} | |
− | + | {{#if:{{{height|}}}|<tr> | |
− | | | + | <td width="31%" valign="top"> Height |
− | + | </td><td width="69%"> {{{height}}} | |
− | + | </td></tr>}} | |
− | | | + | {{#if:{{{coloring|}}}|<tr> |
− | + | <td width="31%" valign="top"> Coloring | |
− | + | </td><td width="69%"> {{{coloring}}} | |
− | | | + | </td></tr>}} |
− | + | {{#if:{{{eye color|}}}|<tr> | |
− | + | <td width="31%" valign="top"> Eye Color | |
− | | | + | </td><td width="69%"> {{{eye color}}} |
− | + | </td></tr>}} | |
− | + | <tr><td width="100%" colspan="2" style="background-color: #000099;"> <font color="white"><b>Political Information</b></font></td></tr> | |
− | | | + | {{#if:{{{affiliation|}}}|<tr> |
− | + | <td width="31%" valign="top"> Affiliation | |
− | + | </td><td width="69%"> {{{affiliation}}} | |
− | + | </td></tr>}} | |
+ | {{#if:{{{rank|}}}|<tr> | ||
+ | <td width="31%" valign="top"> Rank | ||
+ | </td><td width="69%"> {{{rank}}} | ||
+ | </td></tr>}} | ||
+ | {{#if:{{{positions|}}}|<tr> | ||
+ | <td width="31%" valign="top"> Positions | ||
+ | </td><td width="69%"> {{{positions}}} | ||
+ | </td></tr>}} | ||
+ | {{#if:{{{prior affiliation|}}}|<tr> | ||
+ | <td width="31%" valign="top"> Prior Affiliation | ||
+ | </td><td width="69%"> {{{prior affiliation}}} | ||
+ | </td></tr>}} | ||
+ | {{#if:{{{awards|}}}|<tr> | ||
+ | <td width="31%" valign="top"> Awards | ||
+ | </td><td width="69%"> {{{awards}}} | ||
+ | </td></tr>}}</table> | ||
<noinclude> | <noinclude> | ||
===Usage=== | ===Usage=== |
Revision as of 23:00, 13 April 2012
Biographical Information | |
Physical Description | |
Political Information |
Usage
The Character Box template is used for character pages only, to describe the character. Paste the following code into the top of an article, filling all known fields:
{{Infobox Character | name = | image = | homeworld = | race = | mother = | father = | spouse = | siblings = | children = | born = | died = | gender = | height = | coloring = | eye color = | affiliation = | rank = | positions = | prior affiliation = | awards = }}