Template:Infobox Character: Difference between revisions

From Elemental - Official Wiki
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;">{{{title1|{{PAGENAME}}}}}</th>
        style="width:270px; border:1px solid #aaa; background:#f9f9f9; padding:5px; font-size:90%; text-align:left;">
</tr>
        <tr>
{{#if:{{{image1|}}}|<tr>
            <th colspan="2" style="text-align:center; font-size:125%; background:#ccc; padding:8px;">
<td colspan="2" style="text-align:center; padding:8px;">{{{image1}}}</td>
                {{{name|{{PAGENAME}}}}}</th>
</tr>}}
        </tr>
{{#if:{{{weapon|}}}|<tr>
        {{#if:{{{image|}}}|<tr>
<th style="width:35%; background:#ddd; padding:4px;">Weapon</th>
            <td colspan="2" style="text-align:center; padding:8px;">{{{image}}}</td>
<td style="padding:4px;">{{{weapon}}}</td>
        </tr>}}
</tr>}}
        {{#if:{{{title|}}}|<tr>
{{#if:{{{equipment|}}}|<tr>
            <th style="width:35%; background:#ddd; padding:4px;">Title</th>
<th style="background:#ddd; padding:4px;">Equipment</th>
            <td style="padding:4px;">{{{title}}}</td>
<td style="padding:4px;">{{{equipment}}}</td>
        </tr>}}
</tr>}}
        {{#if:{{{aka|}}}|<tr>
{{#if:{{{energy_source|}}}|<tr>
            <th style="background:#ddd; padding:4px;">Also known as</th>
<th style="background:#ddd; padding:4px;">Energy source</th>
            <td style="padding:4px;">{{{aka}}}</td>
<td style="padding:4px;">{{{energy_source}}}</td>
        </tr>}}
</tr>}}
        {{#if:{{{race|}}}|<tr>
{{#if:{{{affiliation|}}}|<tr>
            <th style="background:#ddd; padding:4px;">Race</th>
<th style="background:#ddd; padding:4px; vertical-align:top;">Affiliations</th>
            <td style="padding:4px;">{{{race}}}</td>
<td style="padding:4px;"><div style="line-height:140%; max-height:6em; overflow:auto;">{{{affiliation}}}</div></td>
        </tr>}}
</tr>}}
        {{#if:{{{faction|}}}|<tr>
{{#if:{{{aka|}}}|<tr>
            <th style="background:#ddd; padding:4px;">Faction</th>
<th style="background:#ddd; padding:4px; vertical-align:top;">Aliases</th>
            <td style="padding:4px;">{{{faction}}}</td>
<td style="padding:4px;"><div style="line-height:140%; max-height:6em; overflow:auto;">{{{aka}}}</div></td>
        </tr>}}
</tr>}}
        {{#if:{{{kingdom|}}}|<tr>
{{#if:{{{gender|}}}|<tr>
            <th style="background:#ddd; padding:4px;">Kingdom</th>
<th style="background:#ddd; padding:4px;">Gender</th>
            <td style="padding:4px;">{{{kingdom}}}</td>
<td style="padding:4px;">{{{gender}}}</td>
        </tr>}}
</tr>}}
        {{#if:{{{active|}}}|<tr>
{{#if:{{{va|}}}|<tr>
            <th style="background:#ddd; padding:4px;">Active</th>
<th style="background:#ddd; padding:4px;">Voice Actor</th>
            <td style="padding:4px;">{{{active}}}</td>
<td style="padding:4px;">{{{va}}}</td>
        </tr>}}
</tr>}}
    </table>
</table></includeonly><noinclude>
</includeonly>
== Usage ==
<noinclude>
<pre>
    == Usage ==
    <pre>
{{Infobox Character
{{Infobox Character
|title1      = Character Name
|name        = Character Name
|image1      = [[File:Example.png|250px]]
|image      = [[File:Example.png|250px]]
|weapon      = Sword
|title      = Sovereign of Altar, The Wanderer
|equipment  = Shield, Helmet
|aka        = The Redeemer
|energy_source = Mana
|race        = Human
|affiliation = Kingdom of Example
|faction    = Men (Kingdom)
|aka        = The Hero, Champion
|kingdom    = Altar
|gender     = Male
|active     = Current Age
|va          = John Smith
}}
}}
</pre>
</pre>


== Parameters ==
    == Parameters ==
{| class="wikitable"
    {| class="wikitable"
|-
    |-
! Parameter !! Description
    ! Parameter !! Description
|-
    |-
| <code>title1</code> || Character name (defaults to page name if omitted)
    | <code>name</code> || Character name (defaults to page name if omitted)
|-
    |-
| <code>image1</code> || Character image (use <code><nowiki>[[File:Name.png|250px]]</nowiki></code>)
    | <code>image</code> || Character portrait (use <code><nowiki>[[File:Name.png|250px]]</nowiki></code>)
|-
    |-
| <code>weapon</code> || Primary weapon
    | <code>title</code> || Official title(s) - e.g., "Sovereign of Altar"
|-
    |-
| <code>equipment</code> || Equipment/tools used
    | <code>aka</code> || Aliases or epithets - e.g., "The Wanderer"
|-
    |-
| <code>energy_source</code> || Power/energy mechanism
    | <code>race</code> || Race - Human, Quendar, Urxen, Trog, etc.
|-
    |-
| <code>affiliation</code> || Character affiliations
    | <code>faction</code> || Faction alignment - Men (Kingdom), Men (Empire), Fallen (Kingdom), Fallen (Empire)
|-
    |-
| <code>aka</code> || Aliases/alternative names
    | <code>kingdom</code> || Kingdom or Empire name
|-
    |-
| <code>gender</code> || Character's gender
    | <code>active</code> || Time period - Age of Titans, Age of Heroes, Current Age, etc.
|-
    |}
| <code>va</code> || Voice actor
|}


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.