Template:Item infobox: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (Text replacement - "align=right " to "")
m (Text replacement - "|-↵|}" to "|}")
 
(32 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{| class="infobox" cellpadding=2 cellspacing=2 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% {{!}} '''First appearance'''
{{#if:{{{first_appearance|}}}|
{{!}}{{{first_appearance|}}}}}
{{!}} '''First appearance'''
{{#if:{{{latest_appearance|}}}|{{!-}}valign=top
{{!}} {{{first_appearance}}}
{{!}} width=15% {{!}} '''Latest appearance'''
}}
{{!}}{{{latest_appearance|}}}}}
|-
|- valign=top
{{#if:{{{latest_appearance|}}}|
| width=15% |
{{!}} '''Latest appearance'''
{{#if:{{{effect|}}}|{{!-}}valign=top
{{!}} {{{latest_appearance}}}
{{!}} width=15% {{!}} '''Effect on player'''
}}
{{!}} {{{effect|}}}
|-
|}}
{{#if:{{{effect|}}}|
{{!}} '''Effect'''
{{!}} {{{effect}}}
}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>
{{{{BASEPAGENAME}}
{{{{PAGENAME}}
|title={{BASEPAGENAME}} test
|title={{PAGENAME}} test
|image=[[File:Nocoverart.png|125px]]
|image=[[File:Nocoverart.png|125px|class=notpageimage]]
|description=For various [[:Category:Items|items]].
|description=For various [[:Category:Items|items]].
|first_appearance=''[[Super Mario Bros.]]''
|first_appearance=''[[Super Mario Bros.]]''
Line 30: Line 33:
|effect=User gains knowledge.
|effect=User gains knowledge.
}}
}}
{{br}}
== Usage ==
== Usage ==
*title; The name of the item - only use this if it is different from the name of the article.
{|border=1 style="border-collapse:collapse;width:70%;float:right;margin:0 0 1em 1em" cellpadding=3
*image; An image of the item
!colspan=2 style="background-color:silver"|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.
|-
|&#124;latest_appearance=
|The most recent appearance of the item.
|-
|&#124;effect=
|What this item does to its user.
|}


<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=
}}
</pre>


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

Latest revision as of 23:06, February 4, 2024

Item infobox test
Used in case of images missing from a section gallery, table, bestiary box, or certain infoboxes.
Description
For various items.
First appearance Super Mario Bros.
Latest appearance Super Mario 3D World
Effect User gains knowledge.

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.
{{item infobox
|title=
|image=
|description=
|first_appearance=
|latest_appearance=
|effect=
}}