Difference between revisions of "Template:League-infobox"

From Mario Kart Wii History
(Created page with "{| 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;...")
 
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"
+
{| class="infobox" cellpadding=2 cellspacing=2 align={{{align|right}}} width=280px style="font-family: verdana, sans-serif; padding: 0px; margin: 0 0 1em 1em; font-size: 10px; background: #f1f8ff; border:1px solid #cdcdcd; color:#000"
| align="center" colspan="2" bgcolor="#8afa8a" style="font-size:145%;" | '''{{{title|{{PAGENAME}}}}}'''
+
| align="center" colspan="2" bgcolor="#a2bfeb" style="font-size:145%; text-align: center;" | '''{{{id|{{PAGENAME}}}}}'''
 
|-
 
|-
|align="center" colspan="2" | {{{image|}}}
+
| align="center" colspan="2" style="text-align: center;" | {{{image|[[File:Trophy.jpg|200px]]}}}
{{#if:{{{full_name|}}}|{{!}}- style="background:#afa"
+
|- style="vertical-align: top;"
{{!}}'''Full name'''
+
{{#if:{{{name|}}}|{{!}}- style="vertical-align: top;"
{{!}} style="width:17em" {{!}} {{{full_name|}}}
+
{{!}}'''Name'''
 +
{{!}} style="width:17em" {{!}} {{{name|}}}
 
|}}
 
|}}
 +
|- style="vertical-align: top;"
 +
{{#if:{{{name_trans|}}}|{{!}}- style="vertical-align: top;"
 +
{{!}} '''Translation'''
 +
{{!}} {{{name_trans}}}
 +
|}}
 +
 
|- style="vertical-align: top"
 
|- style="vertical-align: top"
{{#if:{{{species|}}}|{{!}}- style="vertical-align: top;"
+
{{#if:{{{birth_date|}}}{{{hometown|}}}{{{nationality|}}}{{{nickname|}}}|
{{!}} '''Species'''
+
{{!}}- style="vertical-align: top"
{{!}} {{{species}}}
+
{{!}} align="center" colspan="2" style="text-align: center;" {{!}} '''Personal Information'''
 +
{{!}}- style="vertical-align: top;"
 +
{{#if:{{{birth_date|}}}|{{!}}- style="vertical-align: top;"
 +
{{!}} '''Born'''
 +
{{!}} {{{birth_date}}}
 +
|}}
 +
{{#if:{{{hometown|}}}|{{!}}- style="vertical-align: top;"
 +
{{!}} '''Hometown'''
 +
{{!}} {{{hometown}}}
 +
|}}
 +
{{#if:{{{nationality|}}}|{{!}}- style="vertical-align: top;"
 +
{{!}} '''Nationality'''
 +
{{!}} {{{nationality}}}
 +
|}}
 +
{{#if:{{{nickname|}}}|{{!}}- style="vertical-align: top;"
 +
{{!}} '''Nickname(s)'''
 +
{{!}} {{{nickname}}}
 
|}}
 
|}}
 +
|}}
 +
 
|- style="vertical-align: top"
 
|- style="vertical-align: top"
{{#if:{{{first_appearance|}}}|{{!}}- style="background:#afa"
+
{{#if:{{{status|}}}{{{league|}}}{{{current_team|}}}{{{nickname|}}}{{{coach|}}}{{{games|}}}{{{role|}}}{{{earnings|}}}|
{{!}} '''First appearance'''
+
{{!}}- style="vertical-align: top"
{{!}} {{{first_appearance}}}
+
{{!}} align="center" colspan="2" style="text-align: center;" {{!}} '''Career Information'''
 +
{{!}}- style="vertical-align: top;"
 +
{{#if:{{{status|}}}|{{!}}- style="vertical-align: top;"
 +
{{!}} '''Status'''
 +
{{!}} {{{status}}}
 +
|}}
 +
{{#if:{{{league|}}}|{{!}}- style="vertical-align: top;"
 +
{{!}} '''League'''
 +
{{!}} {{{league}}}
 +
|}}
 +
{{#if:{{{current_team|}}}|{{!}}- style="vertical-align: top;"
 +
{{!}} '''Current Team'''
 +
{{!}} {{{current_team}}}
 +
|}}
 +
{{#if:{{{coach|}}}|{{!}}- style="vertical-align: top;"
 +
{{!}} '''Coach'''
 +
{{!}} {{{coach}}}
 +
|}}
 +
{{#if:{{{games|}}}|{{!}}- style="vertical-align: top;"
 +
{{!}} '''Games'''
 +
{{!}} {{{games}}}
 +
|}}
 +
{{#if:{{{role|}}}|{{!}}- style="vertical-align: top;"
 +
{{!}} '''Role'''
 +
{{!}} {{{role}}}
 
|}}
 
|}}
|- style="vertical-align: top"
+
{{#if:{{{earnings|}}}|
{{#if:{{{portrayed_by|}}}|{{!}}- style="vertical-align: top;"
+
{{!}}- style="vertical-align: top;"
{{!}} '''Portrayed by'''
+
{{!}} '''Prize money'''
{{!}} {{{portrayed_by}}}
+
{{!}} {{{earnings}}}
 
|}}
 
|}}
|- style="vertical-align: top"
 
{{#if:{{{latest_appearance|}}}|{{!}}- style="vertical-align: top;"
 
{{!}} '''Latest appearance'''
 
{{!}} {{{latest_appearance}}}
 
 
|}}
 
|}}
 +
 
|- style="vertical-align: top"
 
|- style="vertical-align: top"
{{#if:{{{latest_portrayal|}}}|{{!}}- style="background:#afa"
+
{{#if:{{{teams|}}}|
{{!}} '''Latest portrayal'''
+
{{!}}- style="vertical-align: top"
{{!}} {{{latest_portrayal}}}
+
{{!}} align="center" colspan="2" style="text-align: center;" {{!}} '''Team History'''
 +
{{!}}- style="vertical-align: top;"
 +
{{!}} align="center" colspan="2" {{!}}
 +
{{{teams}}}
 
|}}
 
|}}
 +
 
|- style="vertical-align: top"
 
|- style="vertical-align: top"
{{#if:{{{affiliation|}}}|{{!}}- style="vertical-align: top;"
+
{{#if:{{{highlights|}}}|
{{!}} '''Affiliation(s)'''
+
{{!}}- style="vertical-align: top"
{{!}} {{{affiliation}}}
+
{{!}} align="center" colspan="2" style="text-align: center;" {{!}} '''Career Highlights and Awards'''
 +
{{!}}- style="vertical-align: top;"
 +
{{!}} align="center" colspan="2" {{!}}
 +
{{{highlights}}}
 
|}}
 
|}}
 
|}<noinclude>{{br}}
 
|}<noinclude>{{br}}
==Usage==
+
 
{|border=1 style=border-collapse:collapse;width:70%;float:right;margin-left:1em; cellpadding=3
 
!colspan=2 bgcolor=#8AFA8A|Syntax
 
|-
 
|&#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.
 
|-
 
|&#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''.
 
|-
 
|&#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).
 
|-
 
|&#124;first appearance=
 
|The first game, book, cartoon episode, comic issue, movie, etc. that the character appeared in.
 
|-
 
|&#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]]).
 
|-
 
|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=
 
|Who voiced (or otherwise portrayed) the character in the most recently released game (etc.).
 
|-
 
|&#124;portrayed by=
 
|If only one person has portrayed the character, use this instead of "latest portrayal".
 
|-
 
!colspan=2 bgcolor=#8AFA8A|Deprecated syntax
 
|-
 
|&#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.
 
|-
 
|}
 
 
<pre>
 
<pre>
{{league-infobox
+
{{player-infobox
|title=
+
|id=
|image=
+
|name=
|full_name=
+
|birth_date=
|species=
+
|hometown=
|first_appearance=
+
|nationality=
|portrayed_by=
+
|nickname=
|latest_appearance=
+
|country=
|latest_portrayal=
+
|status=
 +
|league=
 +
|current_team=
 +
|coach=
 +
|games=
 +
|role=
 +
|earnings=
 +
|teams=
 +
* Team 1 (start-end)
 +
* Team 2 (start-end)
 +
* Team 3 (start-present)
 +
|highlights=
 +
* Item 1
 +
* Item 2
 +
* Item 3
 
}}
 
}}
 
</pre>
 
</pre>
 
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>
 
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>

Revision as of 05:20, 28 March 2020

League-infobox
200px
{{player-infobox
|id=
|name=
|birth_date=
|hometown=
|nationality=
|nickname=
|country=
|status=
|league=
|current_team=
|coach=
|games=
|role=
|earnings=
|teams=
* Team 1 (start-end)
* Team 2 (start-end)
* Team 3 (start-present)
|highlights= 
* Item 1
* Item 2
* Item 3
}}