Template:Infobox plant: Difference between revisions

From Pikipedia, the Pikmin wiki
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{{Pipe}}<span style="color: #000;">Underground areas</span>]]
{{#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;" | [[Challenge Mode|<span style="color: #000;">Challenge Mode</span>]] levels
{{#if:{{{pikmin|{{{pikmin2|}}}}}}|! width="30%" style="background: #e6e9ff;" {{!}} [[Challenge Mode{{!}}<span style="color: #000;">Challenge Mode</span>]] levels
| width = "70%" | {{{challenge|None}}}
{{!}} width = "70%" {{!}} {{{challenge|None}}}
|-
{{!}}-}}
{{#if:{{{pikmin2|}}}|! width="30%" style="background: #e6e9ff;" {{Pipe}} [[2-Player Battle{{Pipe}}<span style="color: #000;">2-Player Battle levels</span>]]
{{#if:{{{pikmin3|}}}|! width="30%" style="background: #e6e9ff;" {{!}} [[Mission Mode#Collect Treasure!|<span style="color: #000;">Collect Treasure!</span>]] levels
{{Pipe}} width = "70%" {{Pipe}} {{{2p|None}}}
{{!}} width = "70%" {{!}} {{{missionct|None}}}
{{Pipe}}-}}
{{!}}-}}
{{#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|}}}|{{Pipe}}-
{{#if:{{{pikmin2|}}}|{{!}}-
! width="30%" style="background: #e6e9ff;" {{Pipe}} [[Piklopedia]] #
! width="30%" style="background: #e6e9ff;" {{!}} [[Piklopedia]] #
{{Pipe}} width = "70%" {{Pipe}} {{#if:{{{piklopedia|}}}|&#35;{{{piklopedia}}}|N/A}}
{{!}} width = "70%" {{!}} {{#if:{{{piklopedia|}}}|&#35;{{{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}}
==Use==
==Info==
<pre>{{Infobox plant
Place this at the top of [[plant]] articles. It creates an information box with data about the plant.
|pikmin     = if it appears in Pikmin, give this parameter a value, like y
 
|pikmin2     = ditto, but for Pikmin 2
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     = ditto, but for Pikmin 3
 
|plant_name = if the name differs from the page name, specify it here
==Parameters==
|image      = the image name, including the extension
{| class = "wikitable"
|size       = the image's size, in pixels (optional)
! Parameter || Mandatory || Default || Detailed description
|caption     = the image's caption (optional)
|-
|icon       = if it has a Piklopedia icon, specify its filename on the wiki here
! pikmin
|name       = scientific name
| No ||  || If this plant appears in ''Pikmin'', give this a value, like "y".
|family     = family name (omit if unknown)
|-
|areas       = areas in which it appears
! pikmin2
|underground = caves in which it appears
| No ||  || Same as above, but ''Pikmin 2''.
|challenge   = Challenge Mode levels in which it appears
|-
|2p         = 2-Player Battle levels in which it appears
! pikmin3
|produce     = Candypop Buds only: maximum Pikmin seeds produced (e.g. '5 red')
| No ||  || Same as above, but ''Pikmin 3''.
|piklopedia = Piklopedia number, leave empty if N/A
|-
|noicons     = whether to disable display of game icons (to avoid conflicts with other templates)
! 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 &ndash; 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|{{PAGENAME}}]]
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Revision as of 09: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     = 
}}