Template:Infobox character: Difference between revisions

From Pikmin Fanon
m (1 revision: More Templates)
(Updated using Pikipedia's version of the template.)
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" align="right" style="width: 30em; font-size: 82%; text-align: left; border-style: solid; border-width: 2px; border-color: grey"
! colspan="2" style="font-size: 140%; background: #ccf; text-align: center;" | ''{{{name}}}''
! class="infoboxTitle" colspan="2" style="font-size: 140%; background: #ccf; text-align: center;" | ''{{{name|{{PAGENAME}}}}}''
|-
|-
! colspan="2" style="background: #fff; text-align: center;" | [[Image:{{{image}}}|{{{size|160px}}}|{{{caption|}}}]]
{{#if:{{{image|}}}|{{!}} colspan="2" style="background: #fff; text-align:center" {{!}} [[File:{{{image}}}|{{#if:{{{size|150px}}}|{{{size}}}}}]]}}
|-
|-
! style="background: #e6e9ff;" | Name || {{{name}}}
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} }}
|-
|-
! style="background: #e6e9ff;" | Gender || {{{gender}}}
! width="40%" style="background: #e6e9ff;" {{Pipe}} Name
| {{{name|None}}}
|-
|-
! style="background: #e6e9ff;" | Home planet || [[{{{home_planet}}}]]
! width="40%" style="background: #e6e9ff;" {{Pipe}} Gender
| {{{gender|None}}}
|-
|-
! style="background: #e6e9ff;" | Height || {{{height}}}
! width="40%" style="background: #e6e9ff;" {{Pipe}} Age
| {{{age|Unknown}}}
|-
|-
! style="background: #e6e9ff;" | Weight || {{{weight}}}
! width="40%" style="background: #e6e9ff;" {{Pipe}} Eye color
|}<includeonly>[[Category:Leaders|{{PAGENAME}}]]</includeonly><noinclude>
| {{{eyecolor|Black}}}
[[Category:Infobox templates|{{PAGENAME}}]]
|-
! width="40%" style="background: #e6e9ff;" {{Pipe}} Hair color
| {{{haircolor|None}}}
|-
! width="40%" style="background: #e6e9ff;" {{Pipe}} Home planet
| {{#if:{{{homeplanet|}}}|[[{{{homeplanet}}}]]|Unknown}}
|-
! width="40%" style="background: #e6e9ff;" {{Pipe}} Known related characters
| {{{related|None}}}
|-
! width="40%" style="background: #e6e9ff;" {{Pipe}} Height
| {{{height|Unknown}}}
|}<includeonly>{{#if:{{{nocat|}}}||[[Category:Characters]]}}</includeonly><noinclude>
 
==Info==
Place this template at the top of character articles. This will create an information box with data about the character.
 
Articles with this template are automatically categorized under [[:Category:Characters]].
 
==Parameters==
{| class = "wikitable"
! Parameter || Mandatory || Default || Detailed description
|-
! image
| No ||  || Image file name, with extension.
|-
! size
| No || 150px || Size of the image.
|-
! name
| '''Yes''' ||  || The character's name.
|-
! gender
| '''Yes''' ||  || The character's gender.
|-
! age
| '''Yes''' ||  || 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
| '''Yes''' ||  || Eye color.
|-
! haircolor
| '''Yes''' ||  || Hair color.
|-
! homeplanet
| No || Unknown || The character's home planet. If unknown, leave blank.
|-
! related
| No || None || Known related characters, like family members. 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
| No || Unknown || The character's official height.
|-
! nocat
| No ||  || If this has a value, like "y" the page it's in will not be categorized.
|}
 
==Skeleton==
<pre>
{{infobox character
|image=
|size=
|name=
|gender=
|age=
|eyecolor=
|haircolor=
|homeplanet=
|related=
|height=
|nocat=
}}
</pre>


==Use==
[[Category:Infobox templates]]</noinclude>
<pre>{{infobox leader
|image=image name with extension
|size=image size
|name=name
|gender=gender
|home_planet=home planet
|height=height
|weight=weight

Revision as of 04:44, 17 December 2020

Infobox character
width="40%" style="background: #e6e9ff;" Template:Pipe Name None
width="40%" style="background: #e6e9ff;" Template:Pipe Gender None
width="40%" style="background: #e6e9ff;" Template:Pipe Age Unknown
width="40%" style="background: #e6e9ff;" Template:Pipe Eye color Black
width="40%" style="background: #e6e9ff;" Template:Pipe Hair color None
width="40%" style="background: #e6e9ff;" Template:Pipe Home planet Unknown
width="40%" style="background: #e6e9ff;" Template:Pipe Known related characters None
width="40%" style="background: #e6e9ff;" Template:Pipe Height Unknown

Info

Place this template at the top of character articles. This will create an information box with data about the character.

Articles with this template are automatically categorized under Category:Characters.

Parameters

Parameter Mandatory Default Detailed description
image No Image file name, with extension.
size No 150px Size of the image.
name Yes The character's name.
gender Yes The character's gender.
age Yes 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 Yes Eye color.
haircolor Yes Hair color.
homeplanet No Unknown The character's home planet. If unknown, leave blank.
related No None Known related characters, like family members. These should be comma-separated, and after each one's name, if known, the relation should be in parenthesis. e.g.: "Olimar (father), mother, brother".
height No Unknown The character's official height.
nocat No If this has a value, like "y" the page it's in will not be categorized.

Skeleton

{{infobox character
|image=
|size=
|name=
|gender=
|age=
|eyecolor=
|haircolor=
|homeplanet=
|related=
|height=
|nocat=
}}