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: | <includeonly>{| class="infobox" style="width:250px;background:whitesmoke;border-color:darkgray" | ||
! colspan="2" style="font-size:125%;background:silver" | {{{title|{{PAGETITLE}}}}} | |||
|- | |- | ||
|align=" | | 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:{{{ | {{#if:{{{first_appearance|}}}| | ||
{{!}} colspan="2" style="text-align: | {{!}} '''{{#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 | |||
{{!}}- | {{!}}- | ||
{{!}} | {{!}} style="padding:0 2px !important" {{!}} <div style="columns:{{{comparable-col|{{#rmatch:{{{comparable}}}|<br\b|2|1|caseless=1}}}}}">{{{comparable}}}</div> | ||
{{!)}} | |||
{{# | }} | ||
|- | |||
{{!}} | {{#if:{{{notable|}}}| | ||
{{#if:{{{ | {{!}} colspan="2" style="padding:0 !important" {{!}} | ||
{{!}} | {{(!}} class="{{#if:{{{notable-collapsed|{{{collapsed|}}}}}}|mw-collapsible mw-collapsed}}" style="width:100%" cellspacing="0" | ||
{{ | ! style="text-align:left" {{!}} Notable | ||
|- | {{!}}- | ||
{{!}} style="padding:0 2px !important" {{!}} <div style="columns:{{{notable-col|{{#rmatch:{{{notable}}}|<br\b|2|1|caseless=1}}}}}">{{{notable}}}</div> | |||
{{!)}} | |||
{{!}} | }} | ||
{{ | |||
|}</includeonly><noinclude> | |}</includeonly><noinclude> | ||
== Usage == | == Usage == | ||
{|class=wikitable style="width:70%;float:right;margin:0 0 1em 1em" | |||
!colspan=2|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 '''<nowiki>[[File:]]</nowiki>'''. Example: '''<nowiki>[[File:Mario.png]]</nowiki>''' | |||
|- | |||
||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. | |||
|- | |||
|style="white-space:nowrap"||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. | |||
|} | |||
<pre>{{ | <pre> | ||
|title= | {{item infobox | ||
|image= | |title= | ||
|description= | |image= | ||
|first_appearance= | |description= | ||
|latest_appearance= | |first_appearance= | ||
|effect= | |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= }}