Template:Item infobox: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
mNo edit summary
 
(50 intermediate revisions by 13 users not shown)
Line 1: Line 1:
{| class="infobox" cellpadding=2 cellspacing=2 align=right width=250px style="font-family: verdana, sans-serif; padding: 4px; margin: 0 0 1em 1em; font-size: 10px; background-color: whitesmoke; border:1px solid darkgray; color:black"
<includeonly>{| class="infobox" style="width:250px;background:whitesmoke;border-color:darkgray"
| align="center" colspan="2" bgcolor="silver" style="font-size:145%;" | '''{{{title|{{PAGENAME}}}}}'''
! colspan="2" style="font-size:125%;background:silver" | {{{title|{{PAGETITLE}}}}}
|-
|-
|align="center" colspan="2" | {{{image|}}}
| colspan="2" style="text-align:center" | {{{image|}}}
|- style="vertical-align: top"
|- style="background:gainsboro"
{{#if:{{{description|}}}|{{!}}- style="background:gainsboro; vertical-align:top"
{{#if:{{{description|}}}|
{{!}} colspan="2" style="text-align:center;" {{!}} '''Description'''
! colspan="2" {{!}} Description
{{!}}-
{{!}}-
{{!}} colspan="2" style="border-bottom:1px solid darkgray; text-align:center" {{!}} {{{description|}}}
{{!}} colspan="2" style="text-align:center;border-bottom:1px solid darkgray" {{!}} {{{description}}}
|}}
}}
{{#if:{{{first_appearance|}}}|{{!-}} valign=top
|-
{{!}} width=15% {{!}}
{{#if:{{{first_appearance|}}}|
'''First Appearance'''
{{!}} '''First appearance'''
{{!}}{{{first_appearance|}}}}}
{{!}} {{{first_appearance}}}
{{#if:{{{latest_appearance|}}}|{{!-}}valign=top
}}
{{!}} width=15% {{!}}
|-
'''Latest Appearance'''
{{#if:{{{latest_appearance|}}}|
{{!}}{{{latest_appearance|}}}}}
{{!}} '''Latest appearance'''
|- valign=top
{{!}} {{{latest_appearance}}}
| width=15% |
}}
{{#if:{{{effect|}}}|{{!-}}valign=top
|-
{{!}} width=15% {{!}}
{{#if:{{{effect|}}}|
'''Effect on Player'''
{{!}} '''Effect'''
{{!}} {{{effect|}}}
{{!}} {{{effect}}}
|}}
}}
|}<noinclude>
|-
*title; The name of the item - only use this if it is different from the name of the article.
{{#if:{{{variant_of|}}}|
*image; An image of the item
{{!}} '''Variant of'''
*description; Describe the item
{{!}} {{{variant_of}}}
*first_appearance; The first time this item appeared
}}
*latest_appearance; The most recent time this item appeared
|-
*effect; What this item does to its user.
{{#if:{{{variants|}}}|
[[Category:Infobox Templates|{{PAGENAME}}]]</noinclude>
{{!}} colspan="2" style="padding:0 !important" {{!}}
{{{!}} class="{{#if:{{{variants-collapsed|{{{collapsed|}}}}}}|mw-collapsible mw-collapsed}}" style="width:100%" cellspacing="0"
! style="text-align:left" {{!}} Variants
{{!}}-
{{!}} style="padding:0 2px !important" {{!}} <div style="columns:{{{variants-col|{{#rmatch:{{{variants}}}|<br\b|2|1|caseless=1}}}}}">{{{variants}}}</div>
{{!}}}
}}
|-
{{#if:{{{related|}}}|
{{!}} colspan="2" style="padding:0 !important" {{!}}
{{{!}} class="{{#if:{{{related-collapsed|{{{collapsed|}}}}}}|mw-collapsible mw-collapsed}}" style="width:100%" cellspacing="0"
! style="text-align:left" {{!}} Related
{{!}}-
{{!}} style="padding:0 2px !important" {{!}} <div style="columns:{{{related-col|{{#rmatch:{{{related}}}|<br\b|2|1|caseless=1}}}}}">{{{related}}}</div>
{{!}}}
}}
|-
{{#if:{{{comparable|}}}|
{{!}} colspan="2" style="padding:0 !important" {{!}}
{{{!}} class="{{#if:{{{comparable-collapsed|{{{collapsed|}}}}}}|mw-collapsible mw-collapsed}}" style="width:100%" cellspacing="0"
! style="text-align:left" {{!}} Comparable
{{!}}-
{{!}} style="padding:0 2px !important" {{!}} <div style="columns:{{{comparable-col|{{#rmatch:{{{comparable}}}|<br\b|2|1|caseless=1}}}}}">{{{comparable}}}</div>
{{!}}}
}}
|}</includeonly><noinclude>
== Usage ==
{|class=wikitable style="width:70%;float:right;margin:0 0 1em 1em"
!colspan=2|Syntax
|-
|&#124;title=
|The name of the item - only use this if it is different from the name of the article.
|-
|&#124;image=
|An image of the item within '''<nowiki>[[File:]]</nowiki>'''. Example: '''<nowiki>[[File:Mario.png]]</nowiki>'''
|-
|&#124;description=
|In-game description of the item. Do not use this for common items that have multiple descriptions across games and supporting material.
|-
|&#124;first_appearance=
|The first appearance of the item.
|-
|style="white-space:nowrap"|&#124;latest_appearance=
|The most recent appearance of the item.
|-
|&#124;effect=
|What this item does to its user.
|-
|&#124;variant_of=
|A subject that the item is based on.
|-
|&#124;variants=
|Any subjects which are considered subtypes of the item.
|-
|&#124;related=
|A subject with a variant-type relationship with the item in which there are significant visual and/or behavioral differences between the two. Alternatively used if it's not clear which is the variant of which (if either).
|-
|&#124;comparable=
|Similar subjects that are not necessarily based on one another.
|}
 
<pre>
{{item infobox
|title=
|image=
|description=
|first_appearance=
|latest_appearance=
|effect=
|variant_of=
|variants=
|related=
|comparable=
}}
</pre>
 
[[Category:Infobox templates]]</noinclude>

Latest revision as of 17:47, October 30, 2024

Usage

Syntax
|title= The name of the item - only use this if it is different from the name of the article.
|image= An image of the item within [[File:]]. Example: [[File:Mario.png]]
|description= In-game description of the item. Do not use this for common items that have multiple descriptions across games and supporting material.
|first_appearance= The first appearance of the item.
|latest_appearance= The most recent appearance of the item.
|effect= What this item does to its user.
|variant_of= A subject that the item is based on.
|variants= Any subjects which are considered subtypes of the item.
|related= A subject with a variant-type relationship with the item in which there are significant visual and/or behavioral differences between the two. Alternatively used if it's not clear which is the variant of which (if either).
|comparable= Similar subjects that are not necessarily based on one another.
{{item infobox
|title=
|image=
|description=
|first_appearance=
|latest_appearance=
|effect=
|variant_of=
|variants=
|related=
|comparable=
}}