Navigation menu

Template:Character-infobox: Difference between revisions

From Metroid Wiki
(True and final fix >_<)
(undo status changes. can be mentioned in the page)
 
(60 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{#vardefine:num|0}}
{| class="infobox"
{| 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;"
|
| align="center" colspan="2" bgcolor="#3b587e" style="font-family:arial; font-size:13px" {{!}} '''''{{PAGENAME}}'''''
{| class="infobox-sub"
! colspan="2" style="font-size: 13px; text-align: center;" | ''{{{name|{{PAGENAME}}}}}''
|-
{{#if: {{{image|}}}|
{{!}} colspan="2" style="text-align: center;" {{!}} <div style="float:center; border-bottom: 1px solid #{{mw color light}}">{{{image|}}}<br /><br /></div>
<span style="font-size: 10px">{{{caption|}}}</span>}}
|}
|-
|
{| class="infobox-sub"
! Game(s)
{{!}}
{{{games|''None''}}}
|-
{{#if:{{{appearances|}}}|
! Off-Game Appearance(s)
{{!}}
{{{appearances|}}}}}
|-
|-
{{#if:{{{image|}}}|
{{!-}}
! colspan="2" {{!}} {{{image|}}}}}{{#if:{{{caption|}}}|<br>{{{caption|}}}}}
|- bgcolor="#3b587e" valign="top"
{{#if:{{{race|}}}|
{{!-}} bgcolor="#3b587e" valign="top"
! Race
{{!}} {{{race|}}}{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}}}
|- {{#ifexpr:{{#var:num}}  mod 2>0|bgcolor="#3b587e"|{{void}}}}  valign="top"
{{#if:{{{planet|}}}|
{{#if:{{{planet|}}}|
{{!-}} {{#ifexpr:{{#var:num}}  mod 2>0|bgcolor="#3b587e"|{{void}}}}
! Home Planet
! Home Planet
{{!}} {{{planet|}}}{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}}}
{{!}}
|- {{#ifexpr:{{#var:num}} mod 2>0|bgcolor="#3b587e"|{{void}}}} valign="top"
{{{planet|}}}}}
|-
{{#if:{{{gender|}}}|
{{#if:{{{gender|}}}|
{{!-}}{{#ifexpr:{{#var:num}} mod 2>0|bgcolor="#3b587e"|{{void}}}}
! Gender
! Gender
{{!}} {{{gender|}}}{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}}}
{{!}}
|- {{#ifexpr:{{#var:num}} mod 2>0|bgcolor="#3b587e"|{{void}}}} valign="top"
{{{gender|}}}}}
{{#if:{{{games|}}}|
|-
{{!-}}{{#ifexpr:{{#var:num}} mod 2>0|bgcolor="#3b587e"|{{void}}}}
{{#if:{{{voice actor(s)|}}}|
! Games
! Voice Actor(s)
{{!}} {{{games|}}}{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}}}
{{!}}
|- {{#ifexpr:{{#var:num}} mod 2>0|bgcolor="#3b587e"|{{void}}}} valign="top"
{{{voice actor(s)|}}}}}
|-
{{#if:{{{family|}}}|
{{#if:{{{family|}}}|
{{!-}} {{#ifexpr:{{#var:num}} mod 2>0|bgcolor="#3b587e"|{{void}}}}
! Family
! Family
{{!}} {{{family|}}}{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}}}
{{!}}
|- {{#ifexpr:{{#var:num}} mod 2>0|bgcolor="#3b587e"|{{void}}}} valign="top"
{{{family|}}}}}
{{#if:{{{voice actor(s)|}}}|
|-
{{!-}} {{#ifexpr:{{#var:num}} mod 2>0|bgcolor="#3b587e"|{{void}}}}
! Race
! Voice Actor(s)
{{!}}
{{!}} {{{voice actor(s)|}}}{{#vardefine:num|{{#expr:{{#var:num}}+1}}}}}}
{{{race|Unknown}}}
|- {{#ifexpr:{{#var:num}} mod 2>0|bgcolor="#3b587e"|{{void}}}} valign="top"
|}
|}<includeonly>{{#if:{{{nocat|}}}||[[Category:People]]}}</includeonly>{{#ifeq:{{NAMESPACE}}|User|--|{{Void}}}}{{#ifeq: {{NAMESPACE}}|User|>|{{Void}}}}<noinclude>
|}
=== Usage ===
<includeonly>{{#ifeq:{{NAMESPACE}}|User|{{Void}}|{{#if:{{{nocat|}}}||[[Category:Characters]]}}}}{{#ifeq:{{{race|Unknown}}}|Human|[[Category:Humans]]}}</includeonly><noinclude>{{clear}}
This template is used to display a character's vital information.<br>
 
To add this template to an article copy and paste the following code and then fill in the information (all fields are optional):
== Usage ==
<pre>
This template is used to display a character's vital information. Either games, appearance, or both must be present. Race must also be present. The other fields are optional.
{{Character
 
|image =          an image of the character
To add this template to an article copy and paste the following code and then fill in the information:
|caption =        a caption for the image should one be necessary (be brief)
 
|race =          the physiological race of the character (Human, Chozo, etc.)
*'''''Image:''''' An image of the character, preferably artwork
|gender =        the gender of the character, if applicable (Male, Female)
*'''''Caption:''''' A caption for the image, be brief, always include with an image
|games=          the most recent game the character appeared in
*'''''Games:''''' Any games the character appeared in
|family =        any family related to the character
*'''''Appearances:''''' Appearances outside of games
|voice actor(s) = voice actors who have played the character
*'''''Planet:''''' The planet on which the character was born
}}
*'''''Gender:''''' The gender of the character <small>(Male, Female, or Unknown)</small>
</pre>
*'''''Family:''''' Any family related to the character
*'''''Voice actor(s):''''' Voice actors who have played the character
*'''''Race:''''' The physiological race of the character <small>(e.g. Human, Chozo)</small> Write Unknown or Unique if the creature is unique or most likely unique
 
'''Blank code <small>(paste onto page)</small>:'''


'''Blank code (paste onto page):'''
<pre>
<pre>
{{Character
{{Character-infobox
|image =
|image=
|caption =
|caption=
|race =
|planet=
|gender =
|gender=
|games=
|games=
|family =
|appearances=
|voice actor(s) =
|family=
|voice actor(s)=
|race=
}}
}}
</pre>
</pre>


[[Category: Infobox Templates|{{PAGENAME}}]]
[[Category:Infobox Templates]]</noinclude>
 
</noinclude>

Latest revision as of 20:15, 1 February 2023

Character-infobox
Game(s)

None

Race

Unknown

Usage[edit source]

This template is used to display a character's vital information. Either games, appearance, or both must be present. Race must also be present. The other fields are optional.

To add this template to an article copy and paste the following code and then fill in the information:

  • Image: An image of the character, preferably artwork
  • Caption: A caption for the image, be brief, always include with an image
  • Games: Any games the character appeared in
  • Appearances: Appearances outside of games
  • Planet: The planet on which the character was born
  • Gender: The gender of the character (Male, Female, or Unknown)
  • Family: Any family related to the character
  • Voice actor(s): Voice actors who have played the character
  • Race: The physiological race of the character (e.g. Human, Chozo) Write Unknown or Unique if the creature is unique or most likely unique

Blank code (paste onto page):

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