Template:Infobox treasure: Difference between revisions

→‎Parameters: This was missing?
(add CM location, plus a bit of cleanup)
(→‎Parameters: This was missing?)
 
(44 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{| class="infobox" align="right" style="width: 25em; font-size: 82%; text-align: left; border-style: solid; border-width: 1px; border-color: grey"
{| class="infobox"
! colspan="2" style="font-size: 140%; background: #ccf; text-align: center;" | ''{{{treasure_name}}}''
! colspan="2" class="infoboxTitle" | {{#if:{{{icon|}}} |
{{{!}} style = "width:100%;"
{{!}} style = "vertical-align: middle; padding-left: 32px;" {{!}} ''{{{treasure_name|{{PAGENAME}}}}} {{#if:{{{fclash|}}}|<br><span style="font-size: 80%;">(treasure)</span>}}''
{{!}} style = "width: 32px;" {{!}} [[File:{{{icon}}}|{{#if:{{{sparklium|}}}|Logs icon.|Treasure Hoard icon.}}]]
{{!}}} | ''{{{treasure_name|{{PAGENAME}} }}}'' }}
|-
|-
! colspan="2" style="background: #fff; text-align: center;" | {{#if:{{{image|}}}|[[Image:{{{image}}}{{!}}{{{size|160px}}}]]}}
| colspan="2" style="text-align: center;" | {{#if:{{{image|}}}|[[File:{{{image}}}{{!}}{{{size|160px}}}]]}}
|-
|-
! width="30%" style="background: #e6e9ff;" | [[Treasure Hoard]] Number
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} }}
| width = "70%" | {{{hoard_number}}}
{{#if:{{{series|}}}|{{!}}-
! style="background: #e6e9ff;" {{!}} Series {{!}}{{!}} [[{{{series}}}]]|}}
{{#if:{{{ntscseries|}}}|{{!}}-
! style="background: #e6e9ff;" {{!}} Series {{!}}{{!}} [[{{{ntscseries}}}]] (NTSC) / [[{{{palseries}}}]] (PAL)|}}
|-
|-
! style="background: #e6e9ff;" | Value || {{{value}}} [[poko]]s
{{#if:{{{sparklium|}}} | | ! style="width: 30%;" {{!}} [[Treasure Hoard|Number]]
{{#if:{{{weight|}}}|{{!}}-
{{!}} {{#if:{{{hoard_number|}}}|{{{hoard_number}}}|{{#if:{{{ushoard_number|}}}|{{{ushoard_number}}} (US)<br>}}{{#if:{{{euhoard_number|}}}|{{{euhoard_number}}} (Europe)<br>}}{{#if:{{{jphoard_number|}}}|{{{jphoard_number}}} (Japan)}}}} }}
! style="background: #e6e9ff;" {{!}} Weight {{!}}{{!}} {{{weight}}}|}}
|-
{{#if:{{{max_pikmin|}}}|{{!}}-
{{#if:{{{sparklium|}}} | | ! [[Series]]
! style="background: #e6e9ff;" {{!}} Maximum Carriers {{!}}{{!}} {{{max_pikmin}}} Pikmin|}}
{{!}} {{#if:{{{series|}}}|[[{{{series}}}]]|{{#if:{{{usseries|}}}|[[{{{usseries}}}]] (US)<br>}}{{#if:{{{euseries|}}}|[[{{{euseries}}}]] (Europe) <br>}}{{#if:{{{jpseries|}}}|[[{{{jpseries}}}]] (Japan)}}}} }}
{{#if:{{{location|}}}|{{!}}-
|-
! style="background: #e6e9ff;" {{!}} Location {{!}}{{!}} [[{{{location}}}]]|}}
! Value
{{#if:{{{ntsclocation|}}}|{{!}}-
| {{#if:{{{sparklium|}}} | {{Sparklium|hp|{{{sparklium|}}}}} | {{Pokos|{{{value}}}}} }}
! style="background: #e6e9ff;" {{!}} Location {{!}}{{!}} [[{{{ntsclocation}}}]] (NTSC) / [[{{{pallocation}}}]] (PAL)|}}
|-
{{#if:{{{challenge|}}}|{{!}}-
! [[Weight]]
! style="background: #e6e9ff;" {{!}} [[Challenge Mode (Pikmin 2)|Challenge Mode]] Location(s) {{!}}{{!}} {{{challenge}}}|}}
| {{#if:{{{weight|}}}|{{{weight}}}|Unknown}}{{#if:{{{dweight|}}}|&nbsp;([[Treasure#Dynamic weights|normally]])}}
|}<includeonly>[[Category:Treasures|{{PAGENAME}}]] [[Category:{{#if:{{{ntscseries|}}}|{{{ntscseries}}}|{{{series}}}}}|{{PAGENAME}}]] {{#if:{{{palseries|}}}|[[Category:{{{palseries}}}|{{PAGENAME}}]]|}}</includeonly> <noinclude>[[Category:Infobox templates|{{PAGENAME}}]]
|-
! Maximum [[Carry|carriers]]
| {{#if:{{{max_pikmin|}}}|{{ifnumber|{{{max_pikmin}}}|{{{max_pikmin}}} Pikmin|{{{max_pikmin}}}}}|Unknown}}
|-
! Location
| {{#if:{{{location|}}}|[[{{{location}}}]]|{{#if:{{{uslocation|}}}|[[{{{uslocation}}}]] (US)<br>|}}{{#if:{{{eulocation|}}}|[[{{{eulocation}}}]] (Europe)<br>|}}{{#if:{{{jplocation|}}}|[[{{{jplocation}}}]] (Japan)|}}}}
|-
{{#if:{{{sparklium|}}} | | ! [[Challenge Mode (Pikmin 2)|Challenge Mode]] levels
{{!}} {{{challenge|None}}} }}
|}<includeonly>{{#if:{{{clash|}}}||{{#if:{{{sparklium|}}}|{{game icons|heypikmin=y}}|{{game icons|pikmin2=y}}}}}} {{#if:{{{sparklium|}}} | [[Category:Hey! Pikmin treasures]] | [[Category:Pikmin 2 treasures]] [[Category:{{#if:{{{usseries|}}}|{{{usseries}}}|{{{series}}}}}]] {{#if:{{{euseries|}}}|[[Category:{{{euseries}}}]]|}}}}</includeonly><noinclude>
 
{{clear}}
{{clear}}
==Use==
==Info==
<pre>{{infobox treasure                             *optional field
Place this at the top of articles for [[treasure]]s in {{p2}} and {{hp}}. This creates an information box with data about the treasure.
*|image=image name with extension
 
*|size=image size
Articles with this template are automatically categorized under [[:Category:Treasures]], and the corresponding [[:Category:Treasure Series|treasure series category(ies)]].
|hoard_number=Treasure Hoard number
 
*|series=series the treasure's in          [Use EITHER 'series' OR
For treasures in {{p4}}, use {{tem|infobox p4 treasure}} instead.
*|ntscseries=series in NTSC                'ntscseries' and 'palseries']
 
*|palseries=series in PAL
==Parameters==
|value=value in Pokos
{| class = "wikitable"
*|weight=weight
! Parameter || Mandatory || Default || Detailed description
*|max_pikmin=maximum number of carriers
|-
*|location=location                        [Use EITHER 'location' OR
! treasure_name
*|ntsclocation=location in NTSC            'ntsclocation' and 'pallocation']
| No || ''<nowiki>{{PAGENAME}}</nowiki>'' || If the name of the treasure is different from the title of the page, specify it here.
*|pallocation=location in PAL
|-
*|challenge=Challenge Mode location(s)
! image
}}</pre></noinclude>
| No ||  || Image name, with extension.
|-
! size
| No || 160px || Image size.
|-
! caption
| No ||  || Caption for the image, if needed.
|-
! icon
| No ||  || Icon file name, with extension.
|-
! hoard_number
| No ||  || Treasure Hoard number.<ref name="region">If this has the same value in all versions of the game, use the normal parameter. Otherwise, use the parameters named after it, but with "us", "eu", and "jp" prefixed. For instance: "hoard_number" when it's the same in both, but "ushoard_number", "euhoard_number", and "jphoard_number" for the US, European, and Japanese versions, respectively.</ref>
|-
! series
| No ||  || Series the treasure is in.<ref name="region"/>
|-
! value
| No ||  || Value in Pokos.
|-
! sparklium
| No ||  || Value in Sparklium.
|-
! weight
| '''Yes''' ||  || Treasure's weight.
|-
! dweight
| No ||  || If the treasure's weight is [[Treasure#Dynamic weights|dynamic]], give this a value, like "y".
|-
! max_pikmin
| '''Yes''' ||  || Maximum number of carriers.
|-
! location
| No ||  || Location (area or cave).<ref name="region"/>
|-
! challenge
| No || None || Challenge Mode locations, if any.
|-
! clash
| No ||  || If this template clashes with others on the same page ({{tem|game icons}} or title), give this a value like "y".
|-
! fclash
| No ||  || If this template shares its page with a fruit infobox template, give this a value like "y".
|}
 
If a Sparklium value is given, the game is assumed to be {{hp}}, so certain rows will dis/appear accordingly.
 
<references/>
 
==Skeleton==
<pre>
{{infobox treasure
|image          =
|size          =
|caption        =
|icon          =
|hoard_number  =
|ushoard_number =
|euhoard_number =
|jphoard_number =  
|series         =
|usseries      =
|euseries      =
|jpseries      =
|value         =
|sparklium      =  
|weight         =  
|max_pikmin     =  
|location       =
|uslocation    =  
|eulocation    =  
|jplocation    =  
|challenge     =
|clash          =
|fclash        =  
}}
</pre>
 
[[Category:Information boxes]]</noinclude>