Template:Infobox Character: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly><table class="infobox" style="width:270px; border:1px solid #aaa; background:#f9f9f9; padding:5px; font-size:90%; text-align:left;"> | <includeonly> | ||
<tr> | <table class="infobox" | ||
<th colspan="2" style="text-align:center; font-size:125%; background:#ccc; padding:8px;">{{{ | style="width:270px; border:1px solid #aaa; background:#f9f9f9; padding:5px; font-size:90%; text-align:left;"> | ||
</tr> | <tr> | ||
{{#if:{{{ | <th colspan="2" style="text-align:center; font-size:125%; background:#ccc; padding:8px;"> | ||
<td colspan="2" style="text-align:center; padding:8px;">{{{ | {{{name|{{PAGENAME}}}}}</th> | ||
</tr>}} | </tr> | ||
{{#if:{{{ | {{#if:{{{image|}}}|<tr> | ||
<th style="width:35%; background:#ddd; padding:4px;"> | <td colspan="2" style="text-align:center; padding:8px;">{{{image}}}</td> | ||
<td style="padding:4px;">{{{ | </tr>}} | ||
</tr>}} | {{#if:{{{title|}}}|<tr> | ||
{{#if:{{{ | <th style="width:35%; background:#ddd; padding:4px;">Title</th> | ||
<th style="background:#ddd; padding:4px;"> | <td style="padding:4px;">{{{title}}}</td> | ||
<td style="padding:4px;">{{{ | </tr>}} | ||
{{#if:{{{aka|}}}|<tr> | |||
<th style="background:#ddd; padding:4px;">Also known as</th> | |||
<td style="padding:4px;">{{{aka}}}</td> | |||
</tr>}} | |||
</tr>}} | {{#if:{{{race|}}}|<tr> | ||
{{#if:{{{ | <th style="background:#ddd; padding:4px;">Race</th> | ||
<th style="background:#ddd; padding:4px | <td style="padding:4px;">{{{race}}}</td> | ||
<td style="padding:4px | </tr>}} | ||
</tr>}} | {{#if:{{{faction|}}}|<tr> | ||
{{#if:{{{ | <th style="background:#ddd; padding:4px;">Faction</th> | ||
<th style="background:#ddd; padding:4px | <td style="padding:4px;">{{{faction}}}</td> | ||
<td style="padding:4px | </tr>}} | ||
</tr>}} | {{#if:{{{kingdom|}}}|<tr> | ||
{{#if:{{{ | <th style="background:#ddd; padding:4px;">Kingdom</th> | ||
<th style="background:#ddd; padding:4px;"> | <td style="padding:4px;">{{{kingdom}}}</td> | ||
<td style="padding:4px;">{{{ | </tr>}} | ||
</tr>}} | {{#if:{{{active|}}}|<tr> | ||
{{#if:{{{ | <th style="background:#ddd; padding:4px;">Active</th> | ||
<th style="background:#ddd; padding:4px;"> | <td style="padding:4px;">{{{active}}}</td> | ||
<td style="padding:4px;">{{{ | </tr>}} | ||
</tr>}} | </table> | ||
</table></includeonly><noinclude> | </includeonly> | ||
== Usage == | <noinclude> | ||
<pre> | == Usage == | ||
<pre> | |||
{{Infobox Character | {{Infobox Character | ||
| | |name = Character Name | ||
| | |image = [[File:Example.png|250px]] | ||
| | |title = Sovereign of Altar, The Wanderer | ||
| | |aka = The Redeemer | ||
| | |race = Human | ||
| | |faction = Men (Kingdom) | ||
| | |kingdom = Altar | ||
| | |active = Current Age | ||
}} | }} | ||
</pre> | </pre> | ||
== Parameters == | == Parameters == | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Parameter !! Description | ! Parameter !! Description | ||
|- | |- | ||
| <code> | | <code>name</code> || Character name (defaults to page name if omitted) | ||
|- | |- | ||
| <code> | | <code>image</code> || Character portrait (use <code><nowiki>[[File:Name.png|250px]]</nowiki></code>) | ||
|- | |- | ||
| <code> | | <code>title</code> || Official title(s) - e.g., "Sovereign of Altar" | ||
|- | |- | ||
| <code> | | <code>aka</code> || Aliases or epithets - e.g., "The Wanderer" | ||
|- | |- | ||
| <code> | | <code>race</code> || Race - Human, Quendar, Urxen, Trog, etc. | ||
|- | |- | ||
| <code> | | <code>faction</code> || Faction alignment - Men (Kingdom), Men (Empire), Fallen (Kingdom), Fallen (Empire) | ||
|- | |- | ||
| <code> | | <code>kingdom</code> || Kingdom or Empire name | ||
|- | |- | ||
| <code> | | <code>active</code> || Time period - Age of Titans, Age of Heroes, Current Age, etc. | ||
|} | |||
|} | |||
All parameters are optional. Empty parameters won't display. | All parameters are optional. Empty parameters won't display. | ||
[[Category:Templates]] | [[Category:Templates]] | ||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 18:42, 4 February 2026
== Usage ==
{{Infobox Character
|name = Character Name
|image = [[File:Example.png|250px]]
|title = Sovereign of Altar, The Wanderer
|aka = The Redeemer
|race = Human
|faction = Men (Kingdom)
|kingdom = Altar
|active = Current Age
}}
== Parameters ==
| Parameter | Description |
|---|---|
name |
Character name (defaults to page name if omitted) |
image |
Character portrait (use [[File:Name.png|250px]])
|
title |
Official title(s) - e.g., "Sovereign of Altar" |
aka |
Aliases or epithets - e.g., "The Wanderer" |
race |
Race - Human, Quendar, Urxen, Trog, etc. |
faction |
Faction alignment - Men (Kingdom), Men (Empire), Fallen (Kingdom), Fallen (Empire) |
kingdom |
Kingdom or Empire name |
active |
Time period - Age of Titans, Age of Heroes, Current Age, etc. |
All parameters are optional. Empty parameters won't display.