Template:Infobox treasure: Difference between revisions

Added caption parameter and changed some things in the documentation.
No edit summary
(Added caption parameter and changed some things in the documentation.)
Line 1: Line 1:
{{game icons|pikmin2=y}}
{{game icons|pikmin2=y}}
{| class="infobox" align="right" style="width: 25em; font-size: 82%; text-align: left; border-style: solid; border-width: 1px; border-color: grey"
{| class="infobox" align="right" style="width: 25em; font-size: 82%; text-align: left; border-style: solid; border-width: 1px; border-color: grey"
! colspan="2" style="font-size: 140%; background: #ccf; text-align: center;" | ''{{{treasure_name}}}''
! colspan="2" style="font-size: 140%; background: #ccf; text-align: center;" | ''{{{treasure_name|{{PAGENAME}} }}}''
|-
|-
! colspan="2" style="background: #fff; text-align: center;" | {{#if:{{{image|}}}|[[Image:{{{image}}}{{!}}{{{size|160px}}}]]}}
! colspan="2" style="background: #fff; text-align: center;" | {{#if:{{{image|}}}|[[Image:{{{image}}}{{!}}{{{size|160px}}}]]}}
|-
|-
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}}
{{!}}- }}
! width="30%" style="background: #e6e9ff;" | [[Treasure Hoard|Number]]
! width="30%" style="background: #e6e9ff;" | [[Treasure Hoard|Number]]
| width="70%" | {{{hoard_number}}}
| width="70%" | {{{hoard_number}}}
Line 31: Line 33:


==Use==
==Use==
<pre>{{infobox treasure                             *optional field
<pre>{{infobox treasure
*|image=image name with extension
|image=image name with extension
*|size=image size
|size=image size (optional)
|caption=image caption (optional)
|hoard_number=Treasure Hoard number
|hoard_number=Treasure Hoard number
*|series=series the treasure's in         [Use EITHER 'series' OR
|series=series the treasure's in (use if same in all regions)
*|ntscseries=series in NTSC                 'ntscseries' and 'palseries']
|ntscseries=series in NTSC exclusively
*|palseries=series in PAL
|palseries=series in PAL exclusively
|value=value in Pokos
|value=value in Pokos
|weight=weight
|weight=weight
|max_pikmin=maximum number of carriers
|max_pikmin=maximum number of carriers
*|location=location                       [Use EITHER 'location' OR
|location=location (use if same in all regions)
*|ntsclocation=location in NTSC             'ntsclocation' and 'pallocation']
|ntsclocation=location in NTSC exclusively
*|pallocation=location in PAL
|pallocation=location in PAL exclusively
*|challenge=Challenge Mode location(s)
|challenge=Challenge Mode location(s) (omit if none)
}}</pre>
}}</pre>


[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>