Pikmin 2 icon.png

Template:Infobox challenge: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
m (New cat.)
(New documentation style.)
Line 1: Line 1:
{{#if:{{{noicons|}}}||{{game icons|pikmin2=y}}}}
{{#if:{{{noicons|}}}||{{game icons|pikmin2=y}}}}
{|class="infobox" align="right" style="width: 20em; font-size: 82%; text-align: left; border-style: solid; border-width: 1px; border-color: grey"
{|class="infobox" align="right" style="width: 260px; font-size: 82%; text-align: left; border-style: solid; border-width: 1px; border-color: grey"
! colspan="4" style="font-size: 140%; background: #ccf; text-align: center;" | ''{{PAGENAME}}''
! colspan="4" style="font-size: 140%; background: #ccf; text-align: center;" | ''{{PAGENAME}}''
|-
|-
Line 7: Line 7:
{{#if:{{{caption|}}}|{{!}} colspan="4" style="text-align:center" {{!}} {{{caption}}}
{{#if:{{{caption|}}}|{{!}} colspan="4" style="text-align:center" {{!}} {{{caption}}}
{{!}}- }}
{{!}}- }}
| style="background: #e6e9ff;" | '''[[Sublevel]]s''' || style="padding-right: 8px;" | {{{sublevels|0}}}
| style="background: #e6e9ff;" | '''[[Sublevel]]s''' || style="padding-right: 8px;" | {{{sublevels}}}
| style="background: #e6e9ff;" | '''[[Ultra-Bitter Spray]]s''' || {{{bitter|0}}}
| style="background: #e6e9ff;" | '''[[Ultra-Bitter Spray]]s''' || {{{bitter|0}}}
|-
|-
Line 24: Line 24:
| style="background: #e6e9ff;" | '''[[Bulbmin]]''' || {{#if:{{{bulbminm|}}} | {{tt|{{{bulbmin|0}}} | {{#switch:{{{bulbminm}}}|l=Leaf|b=Bud|f=Flower}} }} | {{{bulmbin|0}}} }}
| style="background: #e6e9ff;" | '''[[Bulbmin]]''' || {{#if:{{{bulbminm|}}} | {{tt|{{{bulbmin|0}}} | {{#switch:{{{bulbminm}}}|l=Leaf|b=Bud|f=Flower}} }} | {{{bulmbin|0}}} }}
|}<includeonly>[[Category:Challenge Mode levels]][[Category:Pikmin 2 Challenge Mode]]</includeonly><noinclude>
|}<includeonly>[[Category:Challenge Mode levels]][[Category:Pikmin 2 Challenge Mode]]</includeonly><noinclude>
[[Category:Infobox templates|{{PAGENAME}}]]


==Use==
==Info==
<pre>{{infobox challenge
Place this template at the top of [[Challenge Mode (Pikmin 2)|''Pikmin 2'' Challenge Mode]] level articles. This will place an information box with data about the level.
|image     = image title including extension
 
|size     = image size (optional)
Articles with this template are automatically categorized under [[:Category:Challenge Mode levels]] and [[:Category:Pikmin 2 Challenge Mode]].
|caption  = image caption (optional)
 
|sublevels = number of sublevels
==Parameters==
|red       = number of Red Pikmin (optional, defaults to 0)
{| class = "wikitable"
|redm     = Red maturity ("l", "b" or "f", omit if no Red Pikmin)
! Parameter || Mandatory || Default || Detailed description
|purple    = number of purples
|-
|purplem  = Purple maturity
! image
|white    = number of whites
| '''Yes''' ||  || Image title, including extension.
|whitem    = White maturity
|-
|yellow    = number of yellows
! size
|yellowm  = Yellow maturity
| No || 250px || Image size.
|blue      = number of blues
|-
|bluem    = Blue maturity
! sublevels
|bulbmin  = number of Bulbmin
| '''Yes''' ||  || Number of sublevels.
|bulmbinm = Bulbmin maturity
|-
|bitter   = number of Ultra-Bitter Sprays
! red
|spicy    = number of Ultra-spicy sprays
| No || 0 || Number of starting red Pikmin.
|gridcol   = column number on the menu grid
|-
|gridrow   = row number on the menu grid
! white
|noicons   = whether to disable display of game icons (to avoid conflicts with other templates)
| No || 0 || Same as above, but purples.
}}</pre></noinclude>
|-
! yellow
| No || 0 || Same as above, but yellows.
|-
! blue
| No || 0 || Same as above, but blues.
|-
! bulbmin
| No || 0 || Same as above, but Bulbmin.
|-
! redm
| No ||  || Maturity of the starting red Pikmin. "l" for leaf, "b" for bud, and "f" for flower.
|-
! purplem
| No ||  || Same as above, but purples.
|-
! whitem
| No ||  || Same as above, but whites.
|-
! yellowm
| No ||  || Same as above, but yellows.
|-
! bluem
| No ||  || Same as above, but blues.
|-
! bulbminm
| No ||| Same as above, but Bulbmin.
|-
! bitter
| No || 0 || Starting number of Ultra-Bitter Sprays.
|-
! spciy
| No || 0 || Starting number of Ultra-Spicy Sprays.
|-
! gridcol
| '''Yes''' ||  || Column number on the menu grid.
|-
! gridrow
| '''Yes''' ||  || Row number on the menu grid.
|-
! noicons
| No ||  || If this has a value, like "y", it disables display of game icons (to avoid conflicts with other templates).
|}
 
==Template==
<pre>
{{infobox challenge
|image    =
|size      =
|caption  =
|sublevels =
|red      =
|purple    =
|white    =
|yellow    =
|blue      =
|bulbmin  =
|redm      =
|purplem  =
|whitem    =
|yellowm  =
|bluem    =
|bulmbinm  =
|bitter    =
|spicy    =
|gridcol  =
|gridrow  =
|noicons  =
}}
</pre>
 
[[Category:Infobox templates]]
</noinclude>

Revision as of 13:07, October 20, 2014

Infobox challenge
[[Image:{{{image}}}|250px]]
Sublevels {{{sublevels}}} Ultra-Bitter Sprays 0
Red Pikmin 0 Ultra-spicy sprays 0
Yellow Pikmin 0
P2 challenge mode flower.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
P2 challenge mode dot.png
Blue Pikmin 0
White Pikmin 0
Purple Pikmin 0
Bulbmin 0

Info

Place this template at the top of Pikmin 2 Challenge Mode level articles. This will place an information box with data about the level.

Articles with this template are automatically categorized under Category:Challenge Mode levels and Category:Pikmin 2 Challenge Mode.

Parameters

Parameter Mandatory Default Detailed description
image Yes Image title, including extension.
size No 250px Image size.
sublevels Yes Number of sublevels.
red No 0 Number of starting red Pikmin.
white No 0 Same as above, but purples.
yellow No 0 Same as above, but yellows.
blue No 0 Same as above, but blues.
bulbmin No 0 Same as above, but Bulbmin.
redm No Maturity of the starting red Pikmin. "l" for leaf, "b" for bud, and "f" for flower.
purplem No Same as above, but purples.
whitem No Same as above, but whites.
yellowm No Same as above, but yellows.
bluem No Same as above, but blues.
bulbminm No Same as above, but Bulbmin.
bitter No 0 Starting number of Ultra-Bitter Sprays.
spciy No 0 Starting number of Ultra-Spicy Sprays.
gridcol Yes Column number on the menu grid.
gridrow Yes Row number on the menu grid.
noicons No If this has a value, like "y", it disables display of game icons (to avoid conflicts with other templates).

Template

{{infobox challenge
|image     = 
|size      = 
|caption   = 
|sublevels = 
|red       = 
|purple    = 
|white     = 
|yellow    = 
|blue      = 
|bulbmin   = 
|redm      = 
|purplem   = 
|whitem    = 
|yellowm   = 
|bluem     = 
|bulmbinm  = 
|bitter    = 
|spicy     = 
|gridcol   = 
|gridrow   = 
|noicons   = 
}}