Template:Infobox treasure: Difference between revisions

→‎Parameters: This was missing?
m (I think saying it's a treasure is better in a new line.)
(→‎Parameters: This was missing?)
 
(23 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{#if:{{{clash|}}}||{{game icons|pikmin2=y}}}}
{| class="infobox"
{| class="infobox"
! colspan="2" class="infoboxTitle" | {{#if:{{{icon|}}} |
! colspan="2" class="infoboxTitle" | {{#if:{{{icon|}}} |
  {{{!}} style = "width:100%;"
  {{{!}} style = "width:100%;"
  {{!}} style = "vertical-align: middle; padding-left: 32px;" {{!}} ''{{{treasure_name|{{PAGENAME}}}}} {{#if:{{{clash|}}}|<br><span style="font-size: 80%;">(treasure)</span>}}''
  {{!}} 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}}}|Treasure Hoard icon.]]
  {{!}} style = "width: 32px;" {{!}} [[File:{{{icon}}}|{{#if:{{{sparklium|}}}|Logs icon.|Treasure Hoard icon.}}]]
  {{!}}} | ''{{{treasure_name|{{PAGENAME}} }}}'' }}
  {{!}}} | ''{{{treasure_name|{{PAGENAME}} }}}'' }}
|-
|-
| colspan="2" style="text-align: center;" | {{#if:{{{image|}}}|[[Image:{{{image}}}{{!}}{{{size|160px}}}]]}}
| colspan="2" style="text-align: center;" | {{#if:{{{image|}}}|[[File:{{{image}}}{{!}}{{{size|160px}}}]]}}
|-
|-
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}}
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} }}
{{!}}- }}
! style="width: 30%;" | [[Treasure Hoard|Number]]
| {{#if:{{{hoard_number|}}}|{{{hoard_number}}}|{{{ushoard_number}}} (US)<br>
{{{euhoard_number}}} (Europe)}}
|-
|-
! Series
{{#if:{{{sparklium|}}} | | ! style="width: 30%;" {{!}} [[Treasure Hoard|Number]]
| {{#if:{{{series|}}}|[[{{{series}}}]]|[[{{{usseries}}}]] (US)<br>
{{!}} {{#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)}}}} }}
[[{{{euseries}}}]] (Europe)}}
|-
{{#if:{{{sparklium|}}} | | ! [[Series]]
{{!}} {{#if:{{{series|}}}|[[{{{series}}}]]|{{#if:{{{usseries|}}}|[[{{{usseries}}}]] (US)<br>}}{{#if:{{{euseries|}}}|[[{{{euseries}}}]] (Europe) <br>}}{{#if:{{{jpseries|}}}|[[{{{jpseries}}}]] (Japan)}}}} }}
|-
|-
! Value
! Value
| {{Pokos|{{{value}}}}}
| {{#if:{{{sparklium|}}} | {{Sparklium|hp|{{{sparklium|}}}}} | {{Pokos|{{{value}}}}} }}
|-
|-
! Weight
! [[Weight]]
| {{{weight}}}
| {{#if:{{{weight|}}}|{{{weight}}}|Unknown}}{{#if:{{{dweight|}}}|&nbsp;([[Treasure#Dynamic weights|normally]])}}
|-
|-
! Maximum carriers
! Maximum [[Carry|carriers]]
| {{#if:{{{max_pikmin|}}}|{{{max_pikmin}}} Pikmin|Unknown}}
| {{#if:{{{max_pikmin|}}}|{{ifnumber|{{{max_pikmin}}}|{{{max_pikmin}}} Pikmin|{{{max_pikmin}}}}}|Unknown}}
|-
|-
! Location
! Location
| {{#if:{{{location|}}}|[[{{{location}}}]]|[[{{{uslocation}}}]] (US)<br>
| {{#if:{{{location|}}}|[[{{{location}}}]]|{{#if:{{{uslocation|}}}|[[{{{uslocation}}}]] (US)<br>|}}{{#if:{{{eulocation|}}}|[[{{{eulocation}}}]] (Europe)<br>|}}{{#if:{{{jplocation|}}}|[[{{{jplocation}}}]] (Japan)|}}}}
[[{{{eulocation}}}]] (Europe)}}
|-
|-
! [[Challenge Mode (Pikmin 2)|Challenge Mode]] levels
{{#if:{{{sparklium|}}} | | ! [[Challenge Mode (Pikmin 2)|Challenge Mode]] levels
| {{{challenge|None}}}
{{!}} {{{challenge|None}}} }}
|}<includeonly>[[Category:Treasures]] [[Category:{{#if:{{{usseries|}}}|{{{usseries}}}|{{{series}}}}}]] {{#if:{{{euseries|}}}|[[Category:{{{euseries}}}]]|}}</includeonly><noinclude>
|}<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}}
==Info==
==Info==
Place this at the top of [[treasure]] articles. This creates an information box with data about the treasure.
Place this at the top of articles for [[treasure]]s in {{p2}} and {{hp}}. This creates an information box with data about the treasure.


Articles with this template are automatically categorized under [[:Category:Treasures]], and the corresponding [[:Category:Treasure Series|treasure series category(ies)]].
Articles with this template are automatically categorized under [[:Category:Treasures]], and the corresponding [[:Category:Treasure Series|treasure series category(ies)]].
For treasures in {{p4}}, use {{tem|infobox p4 treasure}} instead.


==Parameters==
==Parameters==
{| class = "wikitable"
{| class = "wikitable"
! Parameter || Mandatory || Default || Detailed description
! Parameter || Mandatory || Default || Detailed description
|-
! treasure_name
| No || ''<nowiki>{{PAGENAME}}</nowiki>'' || If the name of the treasure is different from the title of the page, specify it here.
|-
|-
! image
! image
Line 56: Line 57:
|-
|-
! icon
! icon
| '''Yes''' ||  || Treasure Hoard icon, with extension.
| No ||  || Icon file name, with extension.
|-
|-
! hoard_number
! hoard_number
| No ||  || Treasure Hoard number.<ref name="region">If this has the same value in the US and Europe versions of the game, use the normal parameter. Otherwise, use the parameters named after it, but with "us" and "eu" prefixed. For instance: "hoard_number" when it's the same in both, but "ushoard_number" and "euhoard_number" for the US and European versions, respectively.</ref>
| 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
! series
Line 65: Line 66:
|-
|-
! value
! value
| '''Yes''' ||  || Value in Pokos.
| No ||  || Value in Pokos.
|-
! sparklium
| No ||  || Value in Sparklium.
|-
|-
! weight
! weight
| '''Yes''' ||  || Treasure's 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
! max_pikmin
Line 81: Line 88:
! clash
! clash
| No ||  || If this template clashes with others on the same page ({{tem|game icons}} or title), give this a value like "y".
| 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/>
<references/>


==Template==
==Skeleton==
<pre>
<pre>
{{infobox treasure
{{infobox treasure
|image       =  
|image         =  
|size         =  
|size           =  
|caption     =  
|caption       =  
|icon         =  
|icon           =  
|hoard_number =  
|hoard_number   =  
|ushoard_number =  
|ushoard_number =  
|euhoard_number =  
|euhoard_number =  
|series       =  
|jphoard_number =
|usseries     =  
|series         =  
|euseries     =  
|usseries       =  
|value       =  
|euseries       =
|weight       =  
|jpseries      =  
|max_pikmin   =  
|value         =
|location     =  
|sparklium      =  
|uslocation   =  
|weight         =  
|eulocation   =  
|max_pikmin     =  
|challenge   =  
|location       =  
|clash       =  
|uslocation     =  
|eulocation     =
|jplocation    =  
|challenge     =  
|clash         =
|fclash        =  
}}
}}
</pre>
</pre>


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