Template:Infobox upgrade: Difference between revisions

Added parameter for the Shipwreck Tale. I considered editing Template:Per-game field instead, but most differences are too small to justify another parameter there.
m (Espyo moved page Template:Infobox collectible to Template:Infobox upgrade without leaving a redirect: Serving a greater purpose.)
(Added parameter for the Shipwreck Tale. I considered editing Template:Per-game field instead, but most differences are too small to justify another parameter there.)
Tag: Mobile edit
 
(19 intermediate revisions by 4 users not shown)
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.|32px]]
  {{!}}} | ''{{{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%;" | Location
| {{{area}}}
|-
|-
! Weight
! style="width: 30%;" | Games
| {{{weight}}}
| {{#if:{{{p2|}}}|{{p2}}{{#if:{{{p3|}}}{{{p4|}}}|,  }}}}{{#if:{{{p3|}}}|{{p3}}{{#if:{{{p4|}}}|,  }}}}{{#if:{{{p4|}}}|{{p4}}}}
|-
! Max. carriers
| {{{max_carriers}}}
|-
|-
! Function
! Function
| {{{function}}}
| {{{function}}}
|}<includeonly>[[Category:Pikmin 3 collectibles]]</includeonly><noinclude>
|-
{{per-game field | n=How to obtain | v={{{requirements|}}} | v2={{{requirements2|}}} | v3={{{requirements3|}}} | v4={{{requirements4|}}}{{#if:{{{requirementsost|}}}|<br>[[Olimar's Shipwreck Tale]]: {{{requirementsost}}}}}}}
|}<noinclude>


{{clear}}
==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 [[gear]]'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 ||  || If this upgrade appears in {{p2}}, give this a value, like "y".
|-
! p3
| No ||  || If this upgrade appears in {{p3}}, give this a value, like "y".
|-
! p4
| No ||  || If this upgrade appears in {{p4}}, 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 48: Line 51:
| No ||  || Caption for the image, if needed.
| No ||  || Caption for the image, if needed.
|-
|-
! area
! function
| '''Yes''' ||  || Area in which the collectible is found.
| '''Yes''' ||  || Brief description of the upgrade's function.
|-
! requirements
| No ||  || What the player needs to do to get this, in brief. Only use this if it is the same in all games, or if it only exists in one game. (''Pikmin 4''{{'s}} main story and Olimar's Shipwreck Tale are treated as separate games here.)
|-
|-
! weight
! requirements2
| '''Yes''' ||  || The collectible's weight.
| No ||  || What the player needs to do to get this, in brief, in ''Pikmin 2''. Only use this if it is present in more games, and is not the same in all games.
|-
|-
! max_carriers
! requirements3
| '''Yes''' ||  || Maximum number of carrier Pikmin on the object.
| No ||  || What the player needs to do to get this, in brief, in ''Pikmin 3''. Only use this if it is present in more games, and is not the same in all games.
|-
|-
! function
! requirements4
| '''Yes''' ||  || Brief description of the object's function.
| No ||  || What the player needs to do to get this, in brief, in the main story of ''Pikmin 4''. Only use this if it is present in Olimar's Shipwreck Tale or other games, and is not the same in all games.
|-
|-
! noicons
! requirementsost
| No ||  || If this has a value, like "y", automatic {{tem|game icons}} are disabled.
| No ||  || What the player needs to do to get this, in brief, in Olimar's Shipwreck Tale. Only use this if it is not acquired the same way as in ''Pikmin 4''{{'s}} main story.
|}
|}


==Skeleton==
==Skeleton==
<pre>
<pre>
{{infobox collectible
{{infobox upgrade
|icon         =  
|p2              =
|name         =  
|p3              =
|image       =  
|p4              =
|size        =  
|icon           =  
|caption      =  
|name           =  
|area        =  
|image           =  
|weight      =  
|size           =
|max_carriers =  
|caption         =  
|function    =  
|function        =
|requirements    =  
|requirements2  =  
|requirements3  =  
|requirements4  =  
|requirementsost =
}}
}}
</pre>
</pre>


[[Category:Information boxes]]
[[Category:Information boxes]]</noinclude>
</noinclude>
1,167

edits