Difference between revisions of "Template:Infobox Character"
Rupert Havok (talk | contribs) (Another test to try and create collapsible/optional fields for Infoboxes) |
Rupert Havok (talk | contribs) (It worked! SUCCESS! The Infobox now auto-hides any fields which have been left empty. This will greatly reduce the size of Infoboxes in articles with little data. Now if I can fix the pesky TR tag...) |
||
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;"> | ||
− | {{#if:{{{name|}}}|<tr> | + | {{#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>}} |
− | <td width="100%" colspan="2" style="background-color: #000099; font-size: 16px; text-align: center;"> <font color="white"><b>{{{name}}}</b></font> | + | {{#if:{{{image|}}}|<tr><td width="100%" colspan="2" style="text-align: center;">{{{image}}}</td></tr>}} |
− | </td></tr>}} | + | <tr><td width="100%" colspan="2" style="background-color: #000099;"><font color="white"><b>Biographical Information</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> | {{#if:{{{race|}}}|<tr> | ||
<td width="31%" valign="top"> Race | <td width="31%" valign="top"> Race |
Revision as of 23:04, 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 = }}