Template:Infobox character: Difference between revisions

m
Text replacement - "{{#if:{{{nocat|}}}||[[Category:" to "{{#if:{{{nocat|{{NAMESPACE}}}}}||[[Category:"
(New documentation style.)
m (Text replacement - "{{#if:{{{nocat|}}}||[[Category:" to "{{#if:{{{nocat|{{NAMESPACE}}}}}||[[Category:")
 
(25 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| class="infobox" align="right" style="width: 20em; font-size: 82%; text-align: left; border-style: solid; border-width: 1px; border-color: grey"
{| class="infobox"
! colspan="2" style="font-size: 140%; background: #ccf; text-align: center;" | ''{{{name|{{PAGENAME}} }}}''
! colspan="2" class="infoboxTitle" | ''{{{title|{{{name|{{PAGENAME}}}}}}}}''
|-
|-
! colspan="2" style="background: #fff; text-align: center;" | [[Image:{{{image}}}|{{{size|160px}}}|{{{caption|}}}]]
| colspan="2" style="text-align: center;" | [[File:{{{image}}}|{{{size|160px}}}|{{{caption|}}}]]
|-
|-
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}}
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} }}
{{!}}- }}
! style="background: #e6e9ff;" | Name || {{{name}}}
|-
|-
! style="background: #e6e9ff;" | Gender || {{{gender}}}
! Name
| {{{name}}}
|-
|-
! style="background: #e6e9ff;" | Eye color || {{{eyecolor}}}
{{#if:{{{gender|}}}|! Gender
{{!}} {{{gender}}} }}
|-
|-
! style="background: #e6e9ff;" | Hair color || {{{haircolor}}}
{{#if:{{{age|}}}|! Age
{{!}} {{{age}}} }}
|-
|-
! style="background: #e6e9ff;" | Home planet || {{#if:{{{home_planet|}}}|[[{{{home_planet}}}]]|Unknown}}
{{#if:{{{eyecolor|}}}|! Eye color
{{!}} {{{eyecolor}}} }}
|-
|-
! style="background: #e6e9ff;" | Known family members || {{{family|None}}}
{{#if:{{{haircolor|}}}|! Hair color
{{!}} {{{haircolor}}} }}
|-
|-
! style="background: #e6e9ff;" | Height || {{{height|Unknown}}}
! Home planet
{{#if: {{{firstgame|}}}| {{!}}-
| {{#if:{{{homeplanet|}}}|[[{{{homeplanet}}}]]|Unknown}}
! style="background: #e6e9ff;" {{!}} First game {{!!}} {{{firstgame}}} }}
|-
{{#if: {{{latestgame|}}}| {{!}}-
! Known related characters
! style="background: #e6e9ff;" {{!}} Latest game {{!!}} {{{latestgame}}} }}
| {{{related|None}}}
{{#if:{{{name_call|}}}| {{!}}-
|-
{{!}} colspan = "2" {{!}} {{listen|filename={{{name_call}}}|helpnote=no|title=Name call after switching leaders}} }}
! Height
|}<includeonly>{{#if:{{{nocat|}}}||[[Category:Characters]]}}</includeonly><noinclude>
| {{{height|Unknown}}}
|-
{{#if:{{{actor|}}}|! Voice actor
{{!}} {{{actor}}} }}
|-
{{#if:{{{firstgame|}}}|! First game
{{!}} {{{firstgame}}} }}
|-
{{#if:{{{latestgame|}}}|! Latest game
{{!}} {{{latestgame}}} }}
|}<includeonly>{{#if:{{{nocat|{{NAMESPACE}}}}}||[[Category:Characters]]}}</includeonly><noinclude>


{{clear}}
==Info==
==Info==
Place this template at the top of character articles. This will create an information box with data about the character.
Place this template at the top of character articles. This will create an information box with data about the character.
Line 35: Line 49:
{| class = "wikitable"
{| class = "wikitable"
! Parameter || Mandatory || Default || Detailed description
! Parameter || Mandatory || Default || Detailed description
|-
! title
| No ||  || Infobox title, if different from the character's name.
|-
|-
! image
! image
Line 46: Line 63:
|-
|-
! gender
! gender
| '''Yes''' ||  || The character's gender.
| No ||  || The character's gender.
|-
! age
| No ||  || The character's age. If unknown but the stage of life is evident, write the name of the stage (e.g. adulthood), followed by "(age unknown)".
|-
|-
! eyecolor
! eyecolor
| '''Yes''' ||  || Eye color.
| No ||  || Eye color.
|-
|-
! haircolor
! haircolor
| '''Yes''' ||  || Hair color.
| No ||  || Hair color.
|-
|-
! home_planet
! homeplanet
| No || Unknown || The character's home planet. If unknown, leave blank.
| No || Unknown || The character's home planet. If unknown, leave blank.
|-
|-
! family
! related
| No || None || Known family members. These are family members that have been mentioned or shown in any canon media.
| No || None || Known related characters, like family members. These are characters that have been mentioned or shown in any [[canon]] media. These should be comma-separated, and after each one's name (if known), the relation should be in parenthesis. e.g.: "[[Olimar]] (father), [[Olimar's wife|mother]], [[Olimar's son|brother]]".
|-
|-
! height
! height
| No || Unknown || The character's official height.
| No || Unknown || The character's official height.
|-
! actor
| No ||  || The character's voice actor, if applicable.
|-
|-
! firstgame
! firstgame
| No ||  || First canon game in which the character appears, and if they do not appear in any, then the first canon game in which they are mentioned.
| No ||  || First canon game in which the character is mentioned or appears in.
|-
|-
! latestgame
! latestgame
| No ||  || Latest canon game in which the character appears.
| No ||  || Latest canon game in which the character is mentioned or appears in.
|-
! name_call
| No ||  || File name for the sound effect that plays when that leader is switched to.
|-
|-
! nocat
! nocat
Line 76: Line 96:
|}
|}


==Template==
==Skeleton==
<pre>
<pre>
{{infobox leader
{{infobox character
|image       =  
|title      =
|size       =  
|image     =  
|name       =  
|size       =  
|gender     =  
|name       =  
|eyecolor   =  
|gender     =
|haircolor   =  
|age        =  
|home_planet =  
|eyecolor   =  
|family      =  
|haircolor =  
|height     =  
|homeplanet =  
|firstgame  =  
|related    =  
|latestgame =  
|height     =  
|name_call  =  
|actor      =  
|nocat       =  
|firstgame =  
|latestgame =  
|nocat     =  
}}
}}
</pre>
</pre>


[[Category:Infobox templates]]
[[Category:Information boxes]]</noinclude>
</noinclude>