Template:Infobox upgrade: Difference between revisions

Updated to work for all upgrades.
m (Espyo moved page Template:Infobox collectible to Template:Infobox upgrade without leaving a redirect: Serving a greater purpose.)
(Updated to work for all upgrades.)
Line 1: Line 1:
{{#if:{{{noicons|}}}||{{game icons|pikmin3=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;" {{!}} ''{{{name|{{PAGENAME}}}}}''
  {{!}} style = "vertical-align: middle; padding-left: 32px;" {{!}} ''{{{name}}}''
  {{!}} style = "width: 32px;" {{!}} [[File:{{{icon}}}|Icon used to represent the collectible on the wiki.]]
  {{!}} style = "width: 32px;" {{!}} [[File:{{{icon}}}|Icon used to represent the upgrade on the wiki.]]
  {{!}}} | ''{{{name|{{PAGENAME}} }}}'' }}
  {{!}}} | ''{{{name}}}'' }}
|-
|-
| colspan="2" style="text-align: center;" | [[Image:{{{image}}}{{!}}{{{size|160px}}}]]
| colspan="2" style="text-align: center;" | [[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%;" | Games
| {{#if:{{{p2|}}}|{{p2}}{{#if:{{{p3|}}}|,  }}}}{{#if:{{{p3|}}}|{{p3}}}}
|-
! style="width: 30%;" | Location
! style="width: 30%;" | Location
| {{{area}}}
| {{{area}}}
|-
|-
{{#if:{{{treasure|}}}|! Associated treasure
{{!}} [[{{{treasure}}}]]
{{!}}- }}
! Weight
! Weight
| {{{weight}}}
| {{{weight}}}
Line 22: Line 27:
! Function
! Function
| {{{function}}}
| {{{function}}}
|}<includeonly>[[Category:Pikmin 3 collectibles]]</includeonly><noinclude>
|}<noinclude>


==Info==
==Info==
Place this at the top of [[Pikmin 3 collectibles|Pikmin 3 collectible]] articles or sections. This creates an information box with data about the object.
Place this on every [[upgrade]]'s section. This creates an information box with data about the upgrade.
 
Articles with this template are automatically categorized under [[:Category:Pikmin 3 collectibles]].


==Parameters==
==Parameters==
{| class = "wikitable"
{| class = "wikitable"
! Parameter || Mandatory || Default || Detailed description
! Parameter || Mandatory || Default || Detailed description
|-
! p2
| No ||  || ''Pikmin 2'' || If this upgrade appears in {{p2}}, give this a value, like "y".
|-
! p3
| No ||  || ''Pikmin 3'' || If this upgrade appears in {{p3}}, give this a value, like "y".
|-
|-
! icon
! icon
| No ||  || File name of the icon, with extension.
| No ||  || File name of the collectible's icon, with extension.
|-
|-
! name
! name
| '''Yes''' ||  || Name of the collectible.
| '''Yes''' ||  || Name of the upgrade.
|-
|-
! image
! image
Line 49: Line 58:
|-
|-
! area
! area
| '''Yes''' ||  || Area in which the collectible is found.
| '''Yes''' ||  || Area(s) in which the upgrade's collectible is found.
|-
! treasure
| No ||  || If it's a ''Pikmin 2'' upgrade, specify what treasure gives the ability here.
|-
|-
! weight
! weight
Line 58: Line 70:
|-
|-
! function
! function
| '''Yes''' ||  || Brief description of the object's function.
| '''Yes''' ||  || Brief description of the upgrade's function.
|-
! noicons
| No ||  || If this has a value, like "y", automatic {{tem|game icons}} are disabled.
|}
|}


==Skeleton==
==Skeleton==
<pre>
<pre>
{{infobox collectible
{{infobox upgrade
|p2          =
|p3          =
|icon        =  
|icon        =  
|name        =  
|name        =  
Line 73: Line 84:
|caption      =  
|caption      =  
|area        =  
|area        =  
|treasure    =
|weight      =  
|weight      =  
|max_carriers =  
|max_carriers =