Template:Infobox Character: Difference between revisions

From Elemental - Official Wiki
Jump to navigation Jump to search
(Created page with "<includeonly><table class="infobox" style="width:270px; border:1px solid #aaa; background:#f9f9f9; padding:5px; font-size:90%; text-align:left;"> <tr> <th colspan="2" style="text-align:center; font-size:125%; background:#ccc; padding:8px;">{{{title1|{{PAGENAME}}}}}</th> </tr> {{#if:{{{image1|}}}|<tr> <td colspan="2" style="text-align:center; padding:8px;">{{{image1}}}</td> </tr>}} {{#if:{{{weapon|}}}|<tr> <th style="width:35%; background:#ddd; padding:4px;">Weapon</th> <...")
 
No edit summary
 
(9 intermediate revisions by the same user not shown)
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; text-align:left; clear: right; float: right;">
</tr>
        <tr>
{{#if:{{{image1|}}}|<tr>
            <th colspan="2" style="text-align:center; font-family: Georgia, serif; font-variant: small-caps;font-size:195%; background:#000000; color: #b78507;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:#000000; color: #b78507;font-family: Georgia, serif; font-variant: small-caps; 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:#000000; color: #b78507;font-family: Georgia, serif; font-variant: small-caps; 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:#000000; color: #b78507;font-family: Georgia, serif; font-variant: small-caps; 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:#000000; color: #b78507;font-family: Georgia, serif; font-variant: small-caps; 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:#000000; color: #b78507;font-family: Georgia, serif; font-variant: small-caps; 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:#000000; color: #b78507;font-family: Georgia, serif; font-variant: small-caps; 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 ==
{{Infobox Playable Character
    <pre>
|title1      = Character Name
{{Infobox Character
|image1      = [[File:Example.png|250px]]
|name        = Character Name
|weapon      = Sword
|image      = [[File:Example.png|250px]]
|equipment  = Shield, Helmet
|title      = Sovereign of Altar, The Wanderer
|energy_source = Mana
|aka        = The Redeemer
|affiliation = Kingdom of Example
|race        = Human
|aka        = The Hero, Champion
|faction    = 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 - Altar, Resoln, Arnor
|-
    |-
| <code>aka</code> || Aliases/alternative names
    | <code>active</code> || Time period - Age of Titans, Age of Heroes, Current Age, etc.
|-
    |}
| <code>gender</code> || Character's gender
|-
| <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>

Latest revision as of 22:18, 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     = 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 - Altar, Resoln, Arnor
active Time period - Age of Titans, Age of Heroes, Current Age, etc.
   All parameters are optional. Empty parameters won't display.