Template:Infobox treasure series: Difference between revisions

added manual parameters for image and title. additionally, switchables for multiple versions.
(adjusted cats)
(added manual parameters for image and title. additionally, switchables for multiple versions.)
 
(32 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{| class="infobox" align="right" style="width: 20em; 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;" | ''{{{series_name}}}''
! colspan="2" class="infoboxTitle"| ''{{{series_name|{{PAGENAME}}}}}''
|-
|-
! style="background: #e6e9ff;" | Theme || {{{theme}}}
| colspan="2" style="text-align: center;" | {{#if:{{{image2|}}}|{{switchable
|{{{imagetitle}}} |[[File:{{{image}}}|{{{size|270px}}}]]
|{{{image2title}}} |[[File:{{{image2}}}|{{{size|270px}}}]]
|{{{image3title|}}} |[[File:{{{image3|}}}|{{{size|270px}}}]]
}} |[[File:{{{image}}}|{{{size|270px}}}]]}}  
|-
|-
! style="background: #e6e9ff;" | [[Treasure Hoard]] Numbers || {{{hoard_start}}} - {{{hoard_end}}}
{{!}} colspan="2" style="text-align:center" {{!}} The [[Hocotate Ship]]'s announcement.
|-
|-
! style="background: #e6e9ff;" | Treasures || {{{treasures}}}
! style="width: 30%;" | Theme
| {{{theme}}}
|-
|-
! style="background: #e6e9ff;" | Total Value || {{{total_value}}} [[poko]]s
! [[Treasure Hoard]] numbers
| {{{numbers}}}
|-
|-
! style="background: #e6e9ff;" | Total Weight || {{{total_weight}}}
! Treasures
| {{{treasures}}}
|-
|-
! style="background: #e6e9ff;" | Locations || {{{locations}}}
! Locations
|}<includeonly>[[Category:Treasures|*]][[Category:{{{series_name}}}| ]]</includeonly><noinclude>
| {{{locations}}}
[[Category:Templates|{{PAGENAME}}]]
|}<includeonly>{{#if:{{{noicons|}}}||{{game icons|p2=y}}}} [[Category:{{{series_name|{{PAGENAME}}}}}| ]][[Category:Treasure Series]]</includeonly><noinclude>
</noinclude>
 
{{clear}}
==Info==
Place this at the top of ''Pikmin 2'' treasure series articles. This creates an information box with data about the series.
 
Articles with this template are automatically categorized under [[:Category:Treasure Series]], as well as the first article on the corresponding series' category.
 
==Parameters==
{| class = "wikitable"
! Parameter || Mandatory || Default || Detailed description
|-
! series_name
| '''No''' ||  || If the name of the series is different from the title of the page, specify it here.
|-
! image
| '''yes''' ||  || Image for the infobox, extension included.
|-
! size
| '''No''' || 270 || The image's size.
|-
! image*
| '''No''' ||  || Secondary or tertiary image. Replace the asterisk with the number 2 or 3. Useful for series with different names between versions.
|-
! image*title
| '''No''' ||  || Primary, secondary or tertiary image's title. Replace the asterisk with the number 2 or 3 (or with nothing, for the primary image).
|-
! theme
| '''Yes''' ||  || The theme of the objects in the series.
|-
! hoard
| '''Yes''' ||  || Treasure Hoard number span (e.g.: 123 - 145).
|-
! treasures
| '''Yes''' ||  || List of treasures.
|-
! locations
| '''Yes''' ||  || Locations (areas and caves) these treasures are found on. All [[region]]s included.
|-
! noicons
| No ||  || If this has a value, like "y", disables auto {{tem|game icons}} (to avoid conflicts with other templates).
|}
 
==Skeleton==
<pre>
{{infobox treasure series
|series_name =
|image      =
|image2      =
|image3      =
|imagetitle  =
|image2title =
|image3title =
|theme      =
|hoard      =
|treasures  =
|locations  =
|noicons    =
}}
</pre>
 
[[Category:Information boxes]]</noinclude>