Navigation menu

Template:Character-infobox: Difference between revisions

From Metroid Wiki
(This will keep stuff from showing up behind the box.)
No edit summary
Line 1: Line 1:
{{#vardefine:num|0}}
{| class="infobox" cellpadding=2 cellspacing=2 align=right width=265px s
{| class="infobox" cellpadding=2 cellspacing=2 align=right width=265px style="font-family: arial, sans-serif; padding: 4px; margin: 0 0 1em 1em; font-size: 11px; border:1px solid #3b587e; background-color:#1e1528"
| align="center" colspan="2" {{!}} '''''{{PAGENAME}}'''''
| align="center" colspan="2" bgcolor="#3b587e" style="font-family:arial; font-size:13px" {{!}} '''''{{PAGENAME}}'''''
|-
|-
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
{{!-}}
{{!-}}
! colspan="2" {{!}} {{{image|}}}}}{{#if:{{{caption|}}}|<br>{{{caption|}}}}}
! colspan="2" {{!}} {{{image|}}}}}{{#if:{{{caption|}}}|<br>{{{caption|}}}}}
|- bgcolor="#3b587e" valign="top"
{{#if:{{{race|}}}|
{{#if:{{{race|}}}|
{{!-}} bgcolor="#3b587e" valign="top"
{{!-}} valign="top"
! Race
! Race
{{!}} {{{race|}}}{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}}}
{{!}}   {{{race|}}}
|- {{#ifexpr:{{#var:num}}  mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}} valign="top"
}}
{{#if:{{{planet|}}}|
{{#if:{{{planet|}}}|
{{!-}} {{#ifexpr:{{#var:num}}  mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}}
{{!-}} valign="top"
! Home Planet
! Home Planet
{{!}}  {{{planet|}}}{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}}}
{{!}}  {{{planet|}}}
|- {{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}} valign="top"
}}
{{#if:{{{gender|}}}|
{{#if:{{{gender|}}}|
{{!-}}{{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}}
{{!-}} valign="top"
! Gender
! Gender
{{!}} {{{gender|}}}{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}}}
{{!}} {{{gender|}}}
|- {{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}} valign="top"
}}
{{#if:{{{games|}}}|
{{#if:{{{games|}}}|
{{!-}}{{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}}
{{!-}} valign="top"
! Games
! Games
{{!}} {{{games|}}}{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}}}
{{!}} {{{games|}}}
|- {{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}} valign="top"
}}
{{#if:{{{family|}}}|
{{#if:{{{family|}}}|
{{!-}} {{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}}
{{!-}} valign="top"
! Family
! Family
{{!}} {{{family|}}}{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}}}
{{!}} {{{family|}}}
|- {{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}} valign="top"
}}
{{#if:{{{voice actor(s)|}}}|
{{#if:{{{voice actor(s)|}}}|
{{!-}} {{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}}
{{!-}} valign="top"
! Voice Actor(s)
! Voice Actor(s)
{{!}} {{{voice actor(s)|}}}{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}}}
{{!}} {{{voice actor(s)|}}}
|- {{#ifexpr:{{#var:num}} mod 2=0|bgcolor="#3b587e"|bgcolor="#1e1528"}} valign="top"
}}
|}<includeonly>{{#if:{{{nocat|}}}||[[Category:People]]}}</includeonly>{{#ifeq:{{NAMESPACE}}|User|--|{{Void}}}}{{#ifeq: {{NAMESPACE}}|User|>|{{Void}}}}<noinclude>
|}<includeonly>{{#if:{{{nocat|}}}||[[:Category:People]]}}</includeonly>{{#ifeq:{{NAMESPACE}}|User|--|{{Void}}}}{{#ifeq: {{NAMESPACE}}|User|>|{{Void}}}}<noinclude>
=== Usage ===
=== Usage ===
This template is used to display a character's vital information.<br>
This template is used to display a character's vital information.<br>

Revision as of 17:55, 16 March 2010

Character-infobox

Usage

This template is used to display a character's vital information.
To add this template to an article copy and paste the following code and then fill in the information (all fields are optional):

{{Character
|image =          an image of the character
|caption =        a caption for the image should one be necessary (be brief)
|race =           the physiological race of the character (Human, Chozo, etc.)
|planet =         the planet on which the character was born
|gender =         the gender of the character, if applicable (Male, Female)
|games=           the most recent game the character appeared in
|family =         any family related to the character
|voice actor(s) = voice actors who have played the character
}}

Blank code (paste onto page):

{{Character
|image =
|caption =
|race =
|planet =
|gender =
|games=
|family =
|voice actor(s) =
}}