Template:Infobox character: Difference between revisions

From Pikmin Fanon
m (1 revision: More Templates)
mNo edit summary
 
(12 intermediate revisions by the same user 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" align="right" style="width: 30em; background-color:#fff; font-size: 80%; 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|}}}|{{!}}{{{size}}}}}]]|}}
|-
|-
! style="background: #e6e9ff;" | Name || {{{name}}}
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} }}
|-
|-
! style="background: #e6e9ff;" | Gender || {{{gender}}}
! width="40%" style="background: #eef;" {{!}} Name
| {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
|-
|-
! style="background: #e6e9ff;" | Home planet || [[{{{home_planet}}}]]
{{#if:{{{status|}}}|! width="40%" style="background: #eef;" {{!}} Status
{{!}} {{{status}}}|}}
|-
|-
! style="background: #e6e9ff;" | Height || {{{height}}}
! width="40%" style="background: #eef;" {{!}} Gender
| {{#if:{{{gender|}}}|{{{gender}}}|Unknown}}
|-
|-
! style="background: #e6e9ff;" | Weight || {{{weight}}}
! width="40%" style="background: #eef;" {{!}} Age
|}<includeonly>[[Category:Leaders|{{PAGENAME}}]]</includeonly><noinclude>
| {{#if:{{{age|}}}|{{{age}}}|Unknown}}
[[Category:Infobox templates|{{PAGENAME}}]]
|-
! width="40%" style="background: #eef;" {{!}} Eye color
| {{#if:{{{eyecolor|}}}|{{{eyecolor}}}|Unknown}}
|-
! width="40%" style="background: #eef;" {{!}} Hair color
| {{#if:{{{haircolor|}}}|{{{haircolor}}}|N/A}}
|-
! width="40%" style="background: #eef;" {{!}} Home planet
| {{#if:{{{homeplanet|}}}|[[{{{homeplanet}}}]]|Unknown}}
|-
! width="40%" style="background: #eef;" {{!}} Known related characters
| {{#if:{{{related|}}}|{{{related}}}|None}}
|-
{{#if:{{{height|}}}|! width="40%" style="background: #eef;" {{!}} Height
{{!}} {{{height}}}|}}
|}<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
|-
! name
| No ||  || The character's name. Exclude if the name displayed on the infobox matches that of the page.
|-
! image
| No ||  || Image file name, with extension.
|-
! size
| No || 150px || Size of the image.
|-
! status
| No ||  || Whether the character is alive or dead, or their status is unknown.
|-
! 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
| '''Yes''' || Unknown || The character's home planet. If unknown, leave blank.
|-
! related
| '''Yes''' || 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
|name=
|image=
|size=
|status=
|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

Latest revision as of 15:29, 19 February 2023

Infobox character
Name Infobox character
Gender Unknown
Age Unknown
Eye color Unknown
Hair color N/A
Home planet Unknown
Known related characters None

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
name No The character's name. Exclude if the name displayed on the infobox matches that of the page.
image No Image file name, with extension.
size No 150px Size of the image.
status No Whether the character is alive or dead, or their status is unknown.
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 Yes Unknown The character's home planet. If unknown, leave blank.
related Yes 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
|name=
|image=
|size=
|status=
|gender=
|age=
|eyecolor=
|haircolor=
|homeplanet=
|related=
|height=
|nocat=
}}