Template:Item infobox: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary
m (Text replacement - "'''First appearance'''" to "'''{{#if:{{{latest_appearance|}}}|First appearance|Appears in}}'''")
 
(26 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{| class="infobox" style="width:250px;background:whitesmoke;border:1px solid darkgray"
<includeonly>{| class="infobox" style="width:250px;background:whitesmoke;border-color:darkgray"
| align="center" colspan="2" bgcolor="silver" style="font-size:125%" | '''{{{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="background:gainsboro"
{{#if:{{{description|}}}|
! colspan="2" {{!}} Description
{{!}}-
{{!}} colspan="2" style="text-align:center;border-bottom:1px solid darkgray" {{!}} {{{description}}}
}}
|-
|-
{{#if:{{{description|}}}|{{!}}- style="background:gainsboro"
{{#if:{{{first_appearance|}}}|
{{!}} colspan="2" style="text-align:center" {{!}} '''Description'''
{{!}} '''{{#if:{{{latest_appearance|}}}|First appearance|Appears in}}'''
{{!}} {{{first_appearance}}}
}}
|-
{{#if:{{{latest_appearance|}}}|
{{!}} '''Latest appearance'''
{{!}} {{{latest_appearance}}}
}}
|-
{{#if:{{{effect|}}}|
{{!}} '''Effect'''
{{!}} {{{effect}}}
}}
|-
{{#if:{{{variant_of|}}}|
{{!}} '''Variant of'''
{{!}} {{{variant_of}}}
}}
|-
{{#if:{{{variants|}}}|
{{!}} 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
{{!}}-
{{!}}-
{{!}} colspan="2" style="border-bottom:1px solid darkgray; text-align:center" {{!}} {{{description|}}}
{{!}} style="padding:0 2px !important" {{!}} <div style="columns:{{{comparable-col|{{#rmatch:{{{comparable}}}|<br\b|2|1|caseless=1}}}}}">{{{comparable}}}</div>
|}}
{{!)}}
{{#if:{{{first_appearance|}}}|{{!-}} valign=top
}}
{{!}} width=15% {{!}} '''First appearance'''
|-
{{!}}{{{first_appearance|}}}}}
{{#if:{{{notable|}}}|
{{#if:{{{latest_appearance|}}}|{{!-}}valign=top
{{!}} colspan="2" style="padding:0 !important" {{!}}
{{!}} width=15% {{!}} '''Latest appearance'''
{{(!}} class="{{#if:{{{notable-collapsed|{{{collapsed|}}}}}}|mw-collapsible mw-collapsed}}" style="width:100%" cellspacing="0"
{{!}}{{{latest_appearance|}}}}}
! style="text-align:left" {{!}} Notable
|- valign=top
{{!}}-
| width=15% |
{{!}} style="padding:0 2px !important" {{!}} <div style="columns:{{{notable-col|{{#rmatch:{{{notable}}}|<br\b|2|1|caseless=1}}}}}">{{{notable}}}</div>
{{#if:{{{effect|}}}|{{!-}}valign=top
{{!)}}
{{!}} width=15% {{!}} '''Effect'''
}}
{{!}} {{{effect|}}}
|}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>
{{{{BASEPAGENAME}}
|title={{BASEPAGENAME}} test
|image=[[File:Nocoverart.png|125px]]
|description=For various [[:Category:Items|items]].
|first_appearance=''[[Super Mario Bros.]]''
|latest_appearance=''[[Super Mario 3D World]]''
|effect=User gains knowledge.
}}
== Usage ==
== Usage ==
*title; The name of the item - only use this if it is different from the name of the article.
{|class=wikitable style="width:70%;float:right;margin:0 0 1em 1em"
*image; An image of the item
!colspan=2|Syntax
*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 time this item appeared
|&#124;title=
*latest_appearance; The most recent time this item appeared
|The name of the item - only use this if it is different from the name of the article.
*effect; What this item does to its user.
|-
|&#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.
|-
|&#124;notable=
|Particular individual examples of the item.
|}


<pre>{{Item-infobox
<pre>
|title={{BASEPAGENAME}} test
{{item infobox
|image=[[File:Nocoverart.png|125px]]
|title=
|description=For various [[:Category:Items|items]].
|image=
|first_appearance=''[[Super Mario Bros.]]''
|description=
|latest_appearance=''[[Super Mario 3D World]]''
|first_appearance=
|effect=User gains knowledge.
|latest_appearance=
}}</pre>
|effect=
|variant_of=
|variants=
|related=
|comparable=
|notable=
}}
</pre>


[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]</noinclude>

Latest revision as of 13:46, July 20, 2025

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.
|notable= Particular individual examples of the item.
{{item infobox
|title=
|image=
|description=
|first_appearance=
|latest_appearance=
|effect=
|variant_of=
|variants=
|related=
|comparable=
|notable=
}}