Template:Item infobox: Difference between revisions

m
Text replacement - "|-↵|}" to "|}"
m (Text replacement - "145%" to "125%")
m (Text replacement - "|-↵|}" to "|}")
 
(21 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="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>