Template:Infobox challenge: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(20 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{game icons|pikmin2=y}}
{| class="infobox"
{|class="infobox" align="right" style="width: 20em; font-size: 82%; text-align: left; border-style: solid; border-width: 1px; border-color: grey"
! colspan="4" class="infoboxTitle" | ''{{PAGENAME}}''
! colspan="4" style="font-size: 140%; background: #ccf; text-align: center;" | ''{{PAGENAME}}''
|-
|-
! colspan="4" style="background: #fff; text-align: center;" | [[Image:{{{image}}}|{{{size|250px}}}]]
| colspan="4" style="text-align: center;" | [[File:{{{image}}}|{{{size|250px}}}]]
|-
|-
{{#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;" | '''[[Ultra-bitter spray]]s''' || {{{bitter|0}}}
|-
|-
| style="background: #e6e9ff;" | '''[[Red Pikmin]]''' || {{#if:{{{redm|}}} | {{tt|{{{red|0}}} | {{#switch:{{{redm}}}|l=Leaf|b=Bud|f=Flower}} }} | {{{red|0}}} }}
! style="width: 40%;" | [[Sublevel]]s
| style="background: #e6e9ff;" | '''[[Ultra-spicy spray]]s''' || {{{spicy|0}}}
| style="width: 10%; padding-right: 8px;" | {{{sublevels}}}
! style="width: 40%;" | [[Ultra-bitter spray]]s
| style="width: 10%;" | {{{bitter|0}}}
|-
|-
| style="background: #e6e9ff;" | '''[[Yellow Pikmin]]''' || {{#if:{{{yellowm|}}} | {{tt|{{{yellow|0}}} | {{#switch:{{{yellowm}}}|l=Leaf|b=Bud|f=Flower}} }} | {{{yellow|0}}} }}
! [[Red Pikmin]]
| {{{red|0}}}
! [[Ultra-spicy spray]]s
| {{{spicy|0}}}
|-
! [[Yellow Pikmin]]
| {{{yellow|0}}}
| rowspan="5" colspan="2" style="padding-left: 8px;" | <center>{{Challenge grid|{{{gridcol}}}|{{{gridrow}}} }}</center>
| rowspan="5" colspan="2" style="padding-left: 8px;" | <center>{{Challenge grid|{{{gridcol}}}|{{{gridrow}}} }}</center>
|-
|-
| style="background: #e6e9ff;" | '''[[Blue Pikmin]]''' || {{#if:{{{bluem|}}} | {{tt|{{{blue|0}}} | {{#switch:{{{bluem}}}|l=Leaf|b=Bud|f=Flower}} }} | {{{blue|0}}} }}
! [[Blue Pikmin]]
| {{{blue|0}}}
|-
|-
| style="background: #e6e9ff;" | '''[[White Pikmin]]''' || {{#if:{{{whitem|}}} | {{tt|{{{white|0}}} | {{#switch:{{{whitem}}}|l=Leaf|b=Bud|f=Flower}} }} | {{{white|0}}} }}
! [[White Pikmin]]
| {{{white|0}}}
|-
|-
| style="background: #e6e9ff;" | '''[[Purple Pikmin]]''' || {{#if:{{{purplem|}}} | {{tt|{{{purple|0}}} | {{#switch:{{{purplem}}}|l=Leaf|b=Bud|f=Flower}} }} | {{{purple|0}}} }}
! [[Purple Pikmin]]
| {{{purple|0}}}
|-
|-
| style="background: #e6e9ff;" | '''[[Bulbmin]]''' || {{#if:{{{bulbminm|}}} | {{tt|{{{bulbmin|0}}} | {{#switch:{{{bulbminm}}}|l=Leaf|b=Bud|f=Flower}} }} | {{{bulmbin|0}}} }}
! [[Bulbmin]]
|}<includeonly>[[Category:Challenge Mode levels]]</includeonly><noinclude>
| {{{bulbmin|0}}}
[[Category:Infobox templates|{{PAGENAME}}]]
|}<includeonly>{{#if:{{{noicons|}}}||{{game icons|pikmin2=y}}}} [[Category:Pikmin 2 Challenge Mode levels]]</includeonly><noinclude>
{{todo|Change this infobox's style to match [[Template:Infobox mission]], mainly in terms of the starting Pikmin numbers.}}
{{clear}}
==Info==
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.
 
Articles with this template are automatically categorized under [[:Category:Pikmin 2 Challenge Mode levels]].
 
==Parameters==
{| class = "wikitable"
! 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.
|-
! bitter
| No || 0 || Starting number of ultra-bitter sprays.
|-
! spicy
| 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).
|}
 
==Skeleton==
<pre>
{{infobox challenge
|image    =
|size      =
|caption  =
|sublevels =
|red      =
|purple    =
|white    =
|yellow    =
|blue      =
|bulbmin  =
|bitter    =
|spicy    =
|gridcol  =
|gridrow  =
|noicons  =
}}
</pre>


==Use==
[[Category:Information boxes]]</noinclude>
<pre>{{infobox challenge
|image    = image title including extension
|size      = image size (optional)
|caption  = image caption (optional)
|sublevels = number of sublevels
|red      = number of Red Pikmin (optional, defaults to 0)
|redm      = Red maturity ("l", "b" or "f", omit if no Red Pikmin)
|purple    = number of purples
|purplem  = Purple maturity
|white    = number of whites
|whitem    = White maturity
|yellow    = number of yellows
|yellowm  = Yellow maturity
|blue      = number of blues
|bluem    = Blue maturity
|bulbmin  = number of Bulbmin
|bulmbinm  = Bulbmin maturity
|bitter    = number of Ultra-bitter sprays
|spicy    = number of Ultra-spicy sprays
|gridcol  = column number on the menu grid
|gridrow  = row number on the menu grid
}}</pre></noinclude>

Latest revision as of 09:50, September 14, 2022

Infobox challenge
[[File:{{{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

To do: Change this infobox's style to match Template:Infobox mission, mainly in terms of the starting Pikmin numbers.
Care to do so?

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:Pikmin 2 Challenge Mode levels.

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.
bitter No 0 Starting number of ultra-bitter sprays.
spicy 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).

Skeleton

{{infobox challenge
|image     = 
|size      = 
|caption   = 
|sublevels = 
|red       = 
|purple    = 
|white     = 
|yellow    = 
|blue      = 
|bulbmin   = 
|bitter    = 
|spicy     = 
|gridcol   = 
|gridrow   = 
|noicons   = 
}}