Template:Infobox plant: Difference between revisions
Jump to navigation
Jump to search
(New family naming scheme.) |
(New documentation style.) |
||
Line 8: | Line 8: | ||
{{!}}} | ''{{{plant_name|{{PAGENAME}} }}}'' }} | {{!}}} | ''{{{plant_name|{{PAGENAME}} }}}'' }} | ||
|- | |- | ||
! colspan="2" style="background: #fff; text-align: center;" | {{#if:{{{image|}}}|[[Image:{{{image}}}|{{{size}}}]]|}} | ! colspan="2" style="background: #fff; text-align: center;" | {{#if:{{{image|}}}|[[Image:{{{image}}}|{{{size|200px}}}]]|}} | ||
|- | |- | ||
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} | {{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} | ||
Line 24: | Line 24: | ||
| width = "70%" | {{{areas|None}}} | | width = "70%" | {{{areas|None}}} | ||
|- | |- | ||
{{#if:{{{pikmin2|}}}|! width="30%" style="background: #e6e9ff;" {{!}} [[Cave{{ | {{#if:{{{pikmin2|}}}|! width="30%" style="background: #e6e9ff;" {{!}} [[Cave{{!}}<span style="color: #000;">Underground areas</span>]] | ||
{{!}} width = "70%" {{!}} {{{underground|None}}} | {{!}} width = "70%" {{!}} {{{underground|None}}} | ||
{{!}}-}} | {{!}}-}} | ||
! width="30%" style="background: #e6e9ff;" | {{#if:{{{pikmin|{{{pikmin2|}}}}}}|! width="30%" style="background: #e6e9ff;" {{!}} [[Challenge Mode{{!}}<span style="color: #000;">Challenge Mode</span>]] levels | ||
| width = "70%" | {{{ | {{!}} width = "70%" {{!}} {{{challenge|None}}} | ||
{{!}}-}} | |||
{{#if:{{{pikmin2|}}}|! width="30%" style="background: #e6e9ff;" {{ | {{#if:{{{pikmin3|}}}|! width="30%" style="background: #e6e9ff;" {{!}} [[Mission Mode#Collect Treasure!|<span style="color: #000;">Collect Treasure!</span>]] levels | ||
{{ | {{!}} width = "70%" {{!}} {{{missionct|None}}} | ||
{{ | {{!}}-}} | ||
{{#if:{{{pikmin3|}}}|! width="30%" style="background: #e6e9ff;" {{!}} [[Mission Mode#Battle Enemies!|<span style="color: #000;">Battle Enemies!</span>]] levels | |||
{{!}} width = "70%" {{!}} {{{missionbe|None}}} | |||
{{!}}-}} | |||
{{#if:{{{pikmin2|}}}|! width="30%" style="background: #e6e9ff;" {{!}} [[2-Player Battle{{!}}<span style="color: #000;">2-Player Battle levels</span>]] | |||
{{!}} width = "70%" {{!}} {{{2p|None}}} | |||
{{!}}-}} | |||
{{#if:{{{pikmin3|}}}|! width="30%" style="background: #e6e9ff;" {{!}} [[Bingo Battle|<span style="color: #000;">Bingo Battle</span>]] levels | |||
{{!}} width = "70%" {{!}} {{{bingo|None}}} | |||
{{!}}-}} | |||
{{#if:{{{produce|}}}|! width="30%" style="background: #e6e9ff;" {{!}} [[Pikmin family{{!}}<span style="color: #000;">Pikmin produced</span>]] | {{#if:{{{produce|}}}|! width="30%" style="background: #e6e9ff;" {{!}} [[Pikmin family{{!}}<span style="color: #000;">Pikmin produced</span>]] | ||
{{!}} width = "70%" {{!}} {{{produce}}} }} | {{!}} width = "70%" {{!}} {{{produce}}} }} | ||
{{#if:{{{pikmin2|}}}|{{ | {{#if:{{{pikmin2|}}}|{{!}}- | ||
! width="30%" style="background: #e6e9ff;" {{ | ! width="30%" style="background: #e6e9ff;" {{!}} [[Piklopedia]] # | ||
{{ | {{!}} width = "70%" {{!}} {{#if:{{{piklopedia|}}}|#{{{piklopedia}}}|N/A}} | ||
}} | }} | ||
|}<includeonly>{{#if:{{{family|}}}|[[Category:{{{family}}} family]]|[[Category:Plants with no known family]]}}{{#if:{{{pikmin|}}} | |}<includeonly>{{#if:{{{family|}}}|[[Category:{{{family}}} family]]|[[Category:Plants with no known family]]}}{{#if:{{{pikmin|}}} | ||
Line 45: | Line 54: | ||
{{clear}} | {{clear}} | ||
== | ==Info== | ||
Place this at the top of [[plant]] articles. It creates an information box with data about the plant. | |||
|pikmin | |||
|pikmin2 | Pages with this template are automatically categorized under the corresponding [[:Category:Families|family category]], and list of plants in the corresponding game(s) ([[:Category:Pikmin 1 plants]], [[:Category:Pikmin 2 plants]], [[:Category:Pikmin 3 plants]]). | ||
|pikmin3 | |||
| | ==Parameters== | ||
| | {| class = "wikitable" | ||
|size | ! Parameter || Mandatory || Default || Detailed description | ||
|caption | |- | ||
|icon | ! pikmin | ||
|name | | No || || If this plant appears in ''Pikmin'', give this a value, like "y". | ||
|family | |- | ||
|areas | ! pikmin2 | ||
|underground | | No || || Same as above, but ''Pikmin 2''. | ||
|challenge | |- | ||
|2p | ! pikmin3 | ||
|produce | | No || || Same as above, but ''Pikmin 3''. | ||
|piklopedia | |- | ||
|noicons | ! image | ||
}}</pre> | | No || || The image name, including extension. | ||
|- | |||
! size | |||
| No || 200px || The image's size. | |||
|- | |||
! caption | |||
| No || || The image's caption, if needed. | |||
|- | |||
! icon | |||
| No || || If it has a Piklopedia icon, specify its filename on the wiki here. | |||
|- | |||
! name | |||
| No || Unknown || Scientific name. | |||
|- | |||
! family | |||
| No || Unknown || Family name. Omit if unknown. | |||
|- | |||
! areas | |||
| No || None || Areas in which it appears. | |||
|- | |||
! underground | |||
| No || None || Caves in which it appears. | |||
|- | |||
! challenge | |||
| No || None || [[Challenge Mode]] levels in which it appears. This is both for ''Pikmin'' and ''Pikmin 2''. | |||
|- | |||
! missionct | |||
| No || None || Collect Treasure! levels in which it appears. | |||
|- | |||
! missionbe | |||
| No || None || Battle Enemies! levels in which it appears. | |||
|- | |||
! 2p | |||
| No || None || [[2-Player Battle]] levels in which it appears. | |||
|- | |||
! bingo | |||
| No || None || [[Bingo Battle]] levels in which it appears. | |||
|- | |||
! produce | |||
| No || || For Candypop Buds only – maximum Pikmin seeds produced (e.g.: "5 red"). | |||
|- | |||
! piklopedia | |||
| No || N/A || Piklopedia number. | |||
|- | |||
! plant_name | |||
| No || ''<nowiki>{{PAGENAME}}</nowiki>'' || If the plant name differs from the page name, specify it here. | |||
|- | |||
! noicons | |||
| No || || If this has a value, like "y", disable auto {{tem|game icons}} (to avoid conflicts with other templates). | |||
|} | |||
==Template== | |||
<pre> | |||
{{infobox plant | |||
|pikmin = | |||
|pikmin2 = | |||
|pikmin3 = | |||
|image = | |||
|size = | |||
|caption = | |||
|icon = | |||
|name = | |||
|family = | |||
|areas = | |||
|underground = | |||
|challenge = | |||
|missionct = | |||
|missionbe = | |||
|2p = | |||
|bingo = | |||
|produce = | |||
|piklopedia = | |||
|plant_name = | |||
|noicons = | |||
}} | |||
</pre> | |||
[[Category:Infobox templates | [[Category:Infobox templates]] | ||
</noinclude> | </noinclude> |
Revision as of 08:34, October 28, 2014
Infobox plant | |
---|---|
Appears in | |
Scientific name | Unknown |
Family | Unknown |
Areas | None |
Info
Place this at the top of plant articles. It creates an information box with data about the plant.
Pages with this template are automatically categorized under the corresponding family category, and list of plants in the corresponding game(s) (Category:Pikmin 1 plants, Category:Pikmin 2 plants, Category:Pikmin 3 plants).
Parameters
Parameter | Mandatory | Default | Detailed description |
---|---|---|---|
pikmin | No | If this plant appears in Pikmin, give this a value, like "y". | |
pikmin2 | No | Same as above, but Pikmin 2. | |
pikmin3 | No | Same as above, but Pikmin 3. | |
image | No | The image name, including extension. | |
size | No | 200px | The image's size. |
caption | No | The image's caption, if needed. | |
icon | No | If it has a Piklopedia icon, specify its filename on the wiki here. | |
name | No | Unknown | Scientific name. |
family | No | Unknown | Family name. Omit if unknown. |
areas | No | None | Areas in which it appears. |
underground | No | None | Caves in which it appears. |
challenge | No | None | Challenge Mode levels in which it appears. This is both for Pikmin and Pikmin 2. |
missionct | No | None | Collect Treasure! levels in which it appears. |
missionbe | No | None | Battle Enemies! levels in which it appears. |
2p | No | None | 2-Player Battle levels in which it appears. |
bingo | No | None | Bingo Battle levels in which it appears. |
produce | No | For Candypop Buds only – maximum Pikmin seeds produced (e.g.: "5 red"). | |
piklopedia | No | N/A | Piklopedia number. |
plant_name | No | {{PAGENAME}} | If the plant name differs from the page name, specify it here. |
noicons | No | If this has a value, like "y", disable auto {{game icons}} (to avoid conflicts with other templates). |
Template
{{infobox plant |pikmin = |pikmin2 = |pikmin3 = |image = |size = |caption = |icon = |name = |family = |areas = |underground = |challenge = |missionct = |missionbe = |2p = |bingo = |produce = |piklopedia = |plant_name = |noicons = }}