Template:Character infobox: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary
m (Text replacement - "" />" to ""/>")
 
(37 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{| class="infobox" cellpadding=2 cellspacing=2 align={{{align|right}}} width=280px style="font-family: verdana, sans-serif; padding: 4px; margin: 0 0 1em 1em; font-size: 10px; background: #f8fff7; border:1px solid #8a8; color:#000"
<templatestyles src="Character infobox/styles.css"/>
| align="center" colspan="2" bgcolor="#8afa8a" style="font-size:145%;" | '''{{{title|{{PAGENAME}}}}}'''
{| id="character" class="infobox" style="width:300px"
! colspan="2" style="font-size:125%" | {{{title|{{PAGETITLE}}}}}
|-
|-
|align="center" colspan="2" | {{{image|}}}
| colspan="2" style="text-align:center" | {{{image|}}}
{{#if:{{{full_name|}}}|{{!}}- style="background:#afa"
|-
{{!}}'''Full name'''
{{#if:{{{full_name|}}}|
{{!}} style="width:17em" {{!}} {{{full_name|}}}
{{!}} '''Full name'''
|}}
{{!}} {{{full_name}}}
|- style="vertical-align: top"
}}
{{#if:{{{species|}}}|{{!}}- style="vertical-align: top;"
|-
{{#if:{{{species|}}}|
{{!}} '''Species'''
{{!}} '''Species'''
{{!}} {{{species}}}
{{!}} {{{species}}}
|}}
}}
|- style="vertical-align: top"
|-
{{#if:{{{first_appearance|}}}|{{!}}- style="background:#afa"
{{#if:{{{first_appearance|}}}|
{{!}} '''First appearance'''
{{!}} '''First appearance'''
{{!}} {{{first_appearance}}}
{{!}} {{{first_appearance}}}
|}}
}}
|- style="vertical-align: top"
|-
{{#if:{{{portrayed_by|}}}|{{!}}- style="vertical-align: top;"
{{#if:{{{latest_appearance|}}}|
{{!}} '''Latest appearance'''
{{!}} {{{latest_appearance}}}
}}
|-
{{#if:{{{portrayed_by|}}}|
{{!}} '''Portrayed by'''
{{!}} '''Portrayed by'''
{{!}} {{{portrayed_by}}}
{{!}} {{{portrayed_by}}}
|}}
}}
|- style="vertical-align: top"
|-
{{#if:{{{latest_appearance|}}}|{{!}}- style="vertical-align: top;"
{{#if:{{{latest_portrayal|}}}|
{{!}} '''Latest appearance'''
{{!}} {{{latest_appearance}}}
|}}
|- style="vertical-align: top"
{{#if:{{{latest_portrayal|}}}|{{!}}- style="background:#afa"
{{!}} '''Latest portrayal'''
{{!}} '''Latest portrayal'''
{{!}} {{{latest_portrayal}}}
{{!}} {{{latest_portrayal}}}
|}}
}}
|- style="vertical-align: top"
|-
{{#if:{{{affiliation|}}}|{{!}}- style="vertical-align: top;"
{{#if:{{{affiliation|}}}|
{{!}} '''Affiliation(s)'''
{{!}} '''Affiliation(s)'''
{{!}} {{{affiliation}}}
{{!}} {{{affiliation}}}
|}}
}}
|}<noinclude>{{br}}
|}<noinclude>{{br}}
==Usage==
==Usage==
{|border=1 style=border-collapse:collapse;width:70%;float:right;margin-left:1em; cellpadding=3
{|border=1 style="float:right;width:70%;border-collapse:collapse;margin:0 0 1em 1em" cellpadding=3
!colspan=2 bgcolor=#8AFA8A|Syntax
!colspan=2 bgcolor=#8AFA8A|Syntax
|-
|-
|&#124;title=
|&#124;title=
|By default, this is not necessary, as it will automatically use the article title. When this is not desirable (e.g., where there is a (Disambiguation) tag in the article title), it can be manually specified.
|By default, this is not necessary, as it will automatically use the article title sans identifier. For special cases, it can be manually specified.
|-
|-
|&#124;image=
|&#124;image=
|A representative image of the character - ideally, artwork from the most recently released game. However, if the latest artwork is specialized for that game (i.e. the character's wearing sporting gear, driving a kart, etc.), an older image may be retained as the infobox image instead. Note that the infobox cannot be updated while a game is still upcoming: it can only be changed ''after the game is released''.
|A representative image of the character - ideally, artwork from the most recently released game. However, if the latest artwork is specialized for that game (i.e. the character's wearing sporting gear, driving a kart, etc.), an older image may be retained as the infobox image instead. Note that the infobox cannot be updated while a game is still upcoming: it can only be changed ''after the game is released''.
|-
|-
|&#124;full name=
|&#124;full_name=
|The character's full name (for example, "King Bowser Koopa" is [[Bowser]]'s full name). Only use this parameter if the full name is not the same as the title already used for the article or infobox (for example, do not list [[Donkey Kong]]'s full name as "Donkey Kong," as it is redundant).
|The character's full name (for example, "King Bowser Koopa" is [[Bowser]]'s full name). Only use this parameter if the full name is not the same as the title already used for the article or infobox (for example, do not list [[Donkey Kong]]'s full name as "Donkey Kong," as it is redundant).
|-
|&#124;first appearance=
|The first game, book, cartoon episode, comic issue, movie, etc. that the character appeared in.
|-
|-
|&#124;species=
|&#124;species=
|The character's species. Do not list species the character has briefly turned into or any one-off alternate interpretations (e.g. the [[Super Mario Bros. (film)|''Super Mario Bros.'' film]]).
|The character's species. Do not list species the character has briefly turned into or any one-off alternate interpretations (e.g. the [[Super Mario Bros. (film)|''Super Mario Bros.'' film]]).
|-
|-
|style=white-space:nowrap|&#124;latest appearance=
|&#124;first_appearance=
|The latest game (etc.) that the character has appeared in. This does not include upcoming games: the game ''must have been released'' before the infobox can be updated. Ongoing serialized comics (e.g. ''[[Super Mario-Kun]]'') are not included here.
|The first game, book, cartoon episode, comic issue, movie, etc. that the character appeared in.
|-
|style="white-space:nowrap"|&#124;latest_appearance=
|The latest game (etc) that the character has appeared in. This does not include upcoming games: the game ''must have been released'' before the infobox can be updated. Ongoing serialized comics (e.g. ''[[Super Mario-kun]]'') are not included here.
|-
|-
|&#124;latest portrayal=
|&#124;latest_portrayal=
|Who voiced (or otherwise portrayed) the character in the most recently released game (etc.).
|Who voiced (or otherwise portrayed) the character in the most recently released game (etc).
|-
|-
|&#124;portrayed by=
|&#124;portrayed_by=
|If only one person has portrayed the character, use this instead of "latest portrayal".
|If only one person has portrayed the character, use this instead of "latest portrayal".
|-
|-
Line 70: Line 72:
|&#124;affiliation=
|&#124;affiliation=
|<b>(This parameter is no longer used in wiki articles and stays on the template only due to its usage on an entry of [[MarioWiki:BJAODN]].)</b> Important characters, groups or places associated with the character in question.
|<b>(This parameter is no longer used in wiki articles and stays on the template only due to its usage on an entry of [[MarioWiki:BJAODN]].)</b> Important characters, groups or places associated with the character in question.
|-
|}
|}
<pre>
<pre>
{{character-infobox
{{character infobox
|title=
|title=
|image=
|image=
Line 79: Line 81:
|species=
|species=
|first_appearance=
|first_appearance=
|portrayed_by=
|latest_appearance=
|latest_appearance=
|latest_portrayal=
|latest_portrayal=
|portrayed_by=
}}
}}
</pre>
</pre>
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>
 
[[Category:Infobox templates]]</noinclude>

Latest revision as of 10:09, March 19, 2024

Character infobox

Usage

Syntax
|title= By default, this is not necessary, as it will automatically use the article title sans identifier. For special cases, it can be manually specified.
|image= A representative image of the character - ideally, artwork from the most recently released game. However, if the latest artwork is specialized for that game (i.e. the character's wearing sporting gear, driving a kart, etc.), an older image may be retained as the infobox image instead. Note that the infobox cannot be updated while a game is still upcoming: it can only be changed after the game is released.
|full_name= The character's full name (for example, "King Bowser Koopa" is Bowser's full name). Only use this parameter if the full name is not the same as the title already used for the article or infobox (for example, do not list Donkey Kong's full name as "Donkey Kong," as it is redundant).
|species= The character's species. Do not list species the character has briefly turned into or any one-off alternate interpretations (e.g. the Super Mario Bros. film).
|first_appearance= The first game, book, cartoon episode, comic issue, movie, etc. that the character appeared in.
|latest_appearance= The latest game (etc) that the character has appeared in. This does not include upcoming games: the game must have been released before the infobox can be updated. Ongoing serialized comics (e.g. Super Mario-kun) are not included here.
|latest_portrayal= Who voiced (or otherwise portrayed) the character in the most recently released game (etc).
|portrayed_by= If only one person has portrayed the character, use this instead of "latest portrayal".
Deprecated syntax
|affiliation= (This parameter is no longer used in wiki articles and stays on the template only due to its usage on an entry of MarioWiki:BJAODN.) Important characters, groups or places associated with the character in question.
{{character infobox
|title=
|image=
|full_name=
|species=
|first_appearance=
|latest_appearance=
|latest_portrayal=
|portrayed_by=
}}