Template:Item infobox: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
Bro Hammer (talk | contribs) mNo edit summary |
mNo edit summary |
||
(50 intermediate revisions by 13 users not shown) | |||
Line 1: | Line 1: | ||
{| class="infobox" | <includeonly>{| class="infobox" style="width:250px;background:whitesmoke;border-color:darkgray" | ||
! colspan="2" style="font-size:125%;background:silver" | {{{title|{{PAGETITLE}}}}} | |||
|- | |- | ||
| | | colspan="2" style="text-align:center" | {{{image|}}} | ||
|- style=" | |- style="background:gainsboro" | ||
{{#if:{{{description|}}}| | {{#if:{{{description|}}}| | ||
! colspan="2" {{!}} Description | |||
{{!}}- | {{!}}- | ||
{{!}} colspan="2" style="border-bottom:1px solid darkgray | {{!}} colspan="2" style="text-align:center;border-bottom:1px solid darkgray" {{!}} {{{description}}} | ||
}} | |||
{{#if:{{{first_appearance|}}}|{{!-}} | |- | ||
{{!}} | {{#if:{{{first_appearance|}}}| | ||
''' | {{!}} '''First appearance''' | ||
{{!}}{{{ | {{!}} {{{first_appearance}}} | ||
{{#if:{{{ | }} | ||
{{!}} width= | |- | ||
{{#if:{{{latest_appearance|}}}| | |||
{{!}}{{{ | {{!}} '''Latest appearance''' | ||
|- | {{!}} {{{latest_appearance}}} | ||
| width= | }} | ||
{{#if:{{{ | |- | ||
{{!}} width= | {{#if:{{{effect|}}}| | ||
{{!}} '''Effect''' | |||
{{!}} {{{ | {{!}} {{{effect}}} | ||
}} | |||
|}<noinclude> | |- | ||
{{#if:{{{variant_of|}}}| | |||
{{!}} '''Variant of''' | |||
{{!}} {{{variant_of}}} | |||
}} | |||
|- | |||
{{#if:{{{variants|}}}| | |||
[[Category:Infobox | {{!}} 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 | |||
|- | |||
||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. | |||
|} | |||
<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= }}