Template:Item infobox: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
m (Text replacement - "|-↵|}" to "|}")
 
(48 intermediate revisions by 15 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: {{{mainbg|whitesmoke}}}; border:1px solid darkgray; color:black"
<includeonly>{| class="infobox" style="width:250px;background:whitesmoke;border-color:darkgray"
| align="center" colspan="2" bgcolor="{{{titlebg|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"
! colspan=2 bgcolor={{{bg|gainsboro}}}|Description
{{#if:{{{description|}}}|
! colspan="2" {{!}} Description
{{!}}-
{{!}} colspan="2" style="text-align:center;border-bottom:1px solid darkgray" {{!}} {{{description}}}
}}
|-
|-
| colspan=2 style="border-bottom:1px solid darkgray; text-align:justified"| {{{description|}}}
{{#if:{{{first_appearance|}}}|
{{#if:{{{first_appearance|}}}|{{!-}} valign=top {{#if:{{{secbg|}}}|style="background:{{{secbg}}}"}}
{{!}} '''First appearance'''
{{!}} width=15% {{!}}
{{!}} {{{first_appearance}}}
* '''First Appearance'''
}}
{{!}}{{{first_appearance|}}}}}
|-
{{#if:{{{latest_appearance|}}}|{{!-}}valign=top {{#if:{{{secbg|}}}|style="background:{{{secbg}}}"}}
{{#if:{{{latest_appearance|}}}|
{{!}} width=15% {{!}}
{{!}} '''Latest appearance'''
*'''Latest Appearance'''
{{!}} {{{latest_appearance}}}
{{!}}{{{latest_appearance|}}}}}
}}
|- valign=top
|-
| width=15% |
{{#if:{{{effect|}}}|
{{#if:{{{effect|}}}|{{!-}}valign=top {{#if:{{{secbg|}}}|style="background:{{{secbg}}}"}}
{{!}} '''Effect'''
{{!}} width=15% {{!}}
{{!}} {{{effect}}}
*'''Effect on Player'''
}}
{{!}} {{{effect|}}}
|}</includeonly><noinclude>
|}}
{{{{PAGENAME}}
|}<noinclude>
|title={{PAGENAME}} test
*title; The name of the item - only use this if it is different from the name of the article.
|image=[[File:Nocoverart.png|125px|class=notpageimage]]
*titlebg; Behind the title
|description=For various [[:Category:Items|items]].
*bg; The background of the "Description" header
|first_appearance=''[[Super Mario Bros.]]''
*mainbg; The background
|latest_appearance=''[[Super Mario 3D World]]''
*secbg; Sections background
|effect=User gains knowledge.
*image; An image of the item
}}
*description; Describe the item
{{br}}
*first_appearance; The first time this item appeared
== Usage ==
*latest_appearance; The most recent time this item appeared
{|border=1 style="border-collapse:collapse;width:70%;float:right;margin:0 0 1em 1em" cellpadding=3
*effect; What this item does to its user.
!colspan=2 style="background-color:silver"|Syntax
[[Category:Infobox Templates|{{PAGENAME}}]]</noinclude>
|-
|&#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.
|-
|&#124;latest_appearance=
|The most recent appearance of the item.
|-
|&#124;effect=
|What this item does to its user.
|}
 
<pre>
{{item infobox
|title=
|image=
|description=
|first_appearance=
|latest_appearance=
|effect=
}}
</pre>
 
[[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=
}}