Template:Infobox character: Difference between revisions
Jump to navigation
Jump to search
m (Why are dynamic table rows the worst thing in MediaWiki templates?) |
m (Text replacement - "{{#if:{{{nocat|}}}||[[Category:" to "{{#if:{{{nocat|{{NAMESPACE}}}}}||[[Category:") |
||
(19 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{| class="infobox" | {| class="infobox" | ||
! colspan="2" class="infoboxTitle" | ''{{{name|{{PAGENAME}}}}}'' | ! colspan="2" class="infoboxTitle" | ''{{{title|{{{name|{{PAGENAME}}}}}}}}'' | ||
|- | |- | ||
| colspan="2" style="text-align: center;" | [[ | | colspan="2" style="text-align: center;" | [[File:{{{image}}}|{{{size|160px}}}|{{{caption|}}}]] | ||
|- | |||
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} }} | |||
|- | |- | ||
! Name | ! Name | ||
| {{{name}}} | | {{{name}}} | ||
|- | |- | ||
! Gender | {{#if:{{{gender|}}}|! Gender | ||
{{!}} {{{gender}}} }} | |||
|- | |- | ||
! | {{#if:{{{age|}}}|! Age | ||
{{!}} {{{age}}} }} | |||
|- | |- | ||
! Hair color | {{#if:{{{eyecolor|}}}|! Eye color | ||
{{!}} {{{eyecolor}}} }} | |||
|- | |||
{{#if:{{{haircolor|}}}|! Hair color | |||
{{!}} {{{haircolor}}} }} | |||
|- | |- | ||
! Home planet | ! Home planet | ||
Line 26: | Line 29: | ||
! Height | ! Height | ||
| {{{height|Unknown}}} | | {{{height|Unknown}}} | ||
{{#if: {{{ | |- | ||
! | {{#if:{{{actor|}}}|! Voice actor | ||
{{!}} {{{ | {{!}} {{{actor}}} }} | ||
|- | |||
{{#if:{{{firstgame|}}}|! First game | |||
{{!}} {{{ | {{!}} {{{firstgame}}} }} | ||
|- | |||
{{!}} | {{#if:{{{latestgame|}}}|! Latest game | ||
|}<includeonly>{{#if:{{{nocat|}}}||[[Category:Characters]]}}</includeonly><noinclude> | {{!}} {{{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 44: | 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 55: | Line 63: | ||
|- | |- | ||
! gender | ! 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 | ||
| | | No || || Eye color. | ||
|- | |- | ||
! haircolor | ! haircolor | ||
| | | No || || Hair color. | ||
|- | |- | ||
! homeplanet | ! homeplanet | ||
Line 67: | Line 78: | ||
|- | |- | ||
! related | ! related | ||
| No || None || Known related characters, like family members. These characters that have been mentioned or shown in any [[ | | 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 | ||
Line 77: | Line 91: | ||
! latestgame | ! latestgame | ||
| No || || Latest canon game in which the character is mentioned or appears in. | | No || || Latest canon game in which the character is mentioned or appears in. | ||
|- | |- | ||
! nocat | ! nocat | ||
Line 85: | Line 96: | ||
|} | |} | ||
== | ==Skeleton== | ||
<pre> | <pre> | ||
{{infobox character | {{infobox character | ||
|title = | |||
|image = | |image = | ||
|size = | |size = | ||
|name = | |name = | ||
|gender = | |gender = | ||
|age = | |||
|eyecolor = | |eyecolor = | ||
|haircolor = | |haircolor = | ||
Line 97: | Line 110: | ||
|related = | |related = | ||
|height = | |height = | ||
|actor = | |||
|firstgame = | |firstgame = | ||
|latestgame = | |latestgame = | ||
|nocat = | |nocat = | ||
}} | }} | ||
</pre> | </pre> | ||
[[Category: | [[Category:Information boxes]]</noinclude> | ||
</noinclude> |
Latest revision as of 14:02, June 27, 2024
Infobox character | |
---|---|
[[File:{{{image}}}|160px|]] | |
Name | {{{name}}} |
Home planet | Unknown |
Known related characters | None |
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 |
---|---|---|---|
title | No | Infobox title, if different from the character's name. | |
image | Yes | Image file name, with extension. | |
size | No | 160px | Size of the image. |
name | Yes | The character's name. | |
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 | No | Eye color. | |
haircolor | No | Hair color. | |
homeplanet | No | Unknown | The character's home planet. If unknown, leave blank. |
related | 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), mother, brother". |
height | No | Unknown | The character's official height. |
actor | No | The character's voice actor, if applicable. | |
firstgame | No | First canon game in which the character is mentioned or appears in. | |
latestgame | No | Latest canon game in which the character is mentioned or appears in. | |
nocat | No | If this has a value, like "y" the page it's in will not be categorized. |
Skeleton
{{infobox character |title = |image = |size = |name = |gender = |age = |eyecolor = |haircolor = |homeplanet = |related = |height = |actor = |firstgame = |latestgame = |nocat = }}