Template:Infobox plant: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
(New documentation style.)
(→‎Parameters: Documenting new ones)
Tag: Mobile edit
 
(41 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{#if:{{{noicons|}}}||{{game icons|pikmin={{{pikmin|}}}|pikmin2={{{pikmin2|}}}|pikmin3={{{pikmin3|}}}}}}}
{| class="infobox"
{| class="infobox" align="right" style="width: 27em; font-size: 82%; text-align: left; border-style: solid; border-width: 1px; border-color: grey"
! colspan="2" class="infoboxTitle" | {{#if:{{{icon|}}} |
! colspan="2" style="font-size: 140%; background: #ccf; text-align: center;" |
{{#if:{{{icon|}}} |
  {{{!}} style = "width:100%;"
  {{{!}} style = "width:100%;"
  {{!}} style = "vertical-align: middle; padding-left: 32px;" {{!}} ''{{{plant_name|{{PAGENAME}} }}}''
  {{!}} style = "vertical-align: middle; padding-left: 32px;" {{!}} ''{{{plant_name|{{PAGENAME}} }}}''
  {{!}} style = "width: 32px;" {{!}} [[File:{{{icon}}}|Piklopedia icon.]]
  {{!}} style = "width: 32px;" {{!}} [[File:{{{icon}}}|40px|{{#if:{{{custom_icon|}}}|Icon used to represent the plant on the wiki.|In-game icon.}}]]
  {{!}}} | ''{{{plant_name|{{PAGENAME}} }}}'' }}
  {{!}}} | ''{{{plant_name|{{PAGENAME}} }}}'' }}
|-
|-
! colspan="2" style="background: #fff; text-align: center;" | {{#if:{{{image|}}}|[[Image:{{{image}}}|{{{size|200px}}}]]|}}
| colspan="2" style="text-align: center;" | {{#if:{{{image|}}}|[[File:{{{image}}}|{{{size|200px}}}]]|}}
|-
|-
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}}
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}}
{{!}}- }}
{{!}}- }}
! width="30%" style="background: #e6e9ff;" | Appears in
! style="width: 30%;" | Appears in
| width="70%" | {{#if:{{{pikmin|}}}|[[Pikmin (game)|''Pikmin'']]{{#if:{{{pikmin2|}}}|, |{{#if:{{{pikmin3|}}}|, }}}}}}{{#if:{{{pikmin2|}}}|''[[Pikmin 2]]''{{#if:{{{pikmin3|}}}|, }}}}{{#if:{{{pikmin3|}}}|''[[Pikmin 3]]''}}
| {{#if:{{{pikmin|}}}|[[Pikmin (game)|''Pikmin'']]{{#if:{{{pikmin2|}}}{{{pikmin3|}}}{{{pikmin4|}}}{{{heypikmin|}}}{{{pikminadventure|}}}|, }}}}{{#if:{{{pikmin2|}}}|[[Pikmin 2|''Pikmin 2'']]{{#if:{{{pikmin3|}}}{{{pikmin4|}}}{{{heypikmin|}}}{{{pikminadventure|}}}|, }}}}{{#if:{{{pikmin3|}}}|[[Pikmin 3|''Pikmin 3'']]{{#if:{{{pikmin4|}}}{{{heypikmin|}}}{{{pikminadventure|}}}|, }}}}{{#if:{{{pikmin4|}}}|[[Pikmin 4|''Pikmin 4'']]{{#if:{{{heypikmin|}}}{{{pikminadventure|}}}|, }}}}{{#if:{{{heypikmin|}}}|[[Hey! Pikmin|''Hey! Pikmin'']]{{#if:{{{pikminadventure|}}}|, }}}}{{#if:{{{pikminadventure|}}}|[[Pikmin Adventure|''Pikmin Adventure'']]}}{{#if:{{{pikmin|}}}{{{pikmin2|}}}{{{pikmin3|}}}{{{heypikmin|}}}{{{pikminadventure|}}}{{{pikmin4|}}}||N/A}}
|-
|-
! width="30%" style="background: #e6e9ff;" | Scientific name
! Scientific name
| width = "70%" | {{#if:{{{name|}}}|''{{{name|}}}''|Unknown}}
| {{#if:{{{name|}}}|''{{{name|}}}''|Unknown}}
|-
|-
! width="30%" style="background: #e6e9ff;" | Family
{{#if:{{{nofamily|}}}||! Family
| width = "70%" | {{#if:{{{nocat|}}}|{{{family}}}|{{#if:{{{family|}}}|[[{{{family}}} family|{{{family}}}]]|Unknown}}}}
{{!}} {{#if:{{{nocat|}}}|{{{family}}}|{{#if:{{{family|}}}|[[{{{family}}} family|{{{family}}}]]{{#if:{{{af|}}}| {{tt|(assumed)|This plant's official family is not known, but it can only be assumed that this is its family, given that it is so similar to other members.}}}}|Unknown}}}}}}
|-
|-
! width="30%" style="background: #e6e9ff;" | [[Areas|<span style="color: #000;">Areas</span>]]
! [[Area]]s
| width = "70%" | {{{areas|None}}}
| {{{areas|None}}}
|-
|-
{{#if:{{{pikmin2|}}}|! width="30%" style="background: #e6e9ff;" {{!}} [[Cave{{!}}<span style="color: #000;">Underground areas</span>]]
{{#if:{{{pikmin2|{{{pikmin4|}}}}}}|! [[Cave]]s
{{!}} width = "70%" {{!}} {{{underground|None}}}
{{!}} {{{underground|None}}} }}
{{!}}-}}
|-
{{#if:{{{pikmin|{{{pikmin2|}}}}}}|! width="30%" style="background: #e6e9ff;" {{!}} [[Challenge Mode{{!}}<span style="color: #000;">Challenge Mode</span>]] levels
{{#if:{{{pikmin|{{{pikmin2|}}}}}}|! [[Challenge Mode (disambiguation)|Challenge Mode]] levels
{{!}} width = "70%" {{!}} {{{challenge|None}}}
{{!}} {{{challenge|None}}} }}
{{!}}-}}
|-
{{#if:{{{pikmin3|}}}|! width="30%" style="background: #e6e9ff;" {{!}} [[Mission Mode#Collect Treasure!|<span style="color: #000;">Collect Treasure!</span>]] levels
{{#if:{{{pikmin3|}}}|! [[Mission Mode#Collect Treasure!|Collect treasure!]] levels
{{!}} width = "70%" {{!}} {{{missionct|None}}}
{{!}} {{{missionct|None}}} }}
{{!}}-}}
|-
{{#if:{{{pikmin3|}}}|! width="30%" style="background: #e6e9ff;" {{!}} [[Mission Mode#Battle Enemies!|<span style="color: #000;">Battle Enemies!</span>]] levels
{{#if:{{{pikmin3|}}}|! [[Mission Mode#Battle Enemies!|Battle enemies!]] levels
{{!}} width = "70%" {{!}} {{{missionbe|None}}}
{{!}} {{{missionbe|None}}} }}
{{!}}-}}
|-
{{#if:{{{pikmin2|}}}|! width="30%" style="background: #e6e9ff;" {{!}} [[2-Player Battle{{!}}<span style="color: #000;">2-Player Battle levels</span>]]
{{#if:{{{pikmin3|}}}|! [[Side Stories|Side Story]] levels
{{!}} width = "70%" {{!}} {{{2p|None}}}
{{!}} {{{sidestories|None}}}}}
{{!}}-}}
|-
{{#if:{{{pikmin3|}}}|! width="30%" style="background: #e6e9ff;" {{!}} [[Bingo Battle|<span style="color: #000;">Bingo Battle</span>]] levels
{{#if:{{{pikmin4|}}}|! [[Dandori Challenge]] levels
{{!}} width = "70%" {{!}} {{{bingo|None}}}
{{!}} {{{dandori_c|None}}} }}
{{!}}-}}
|-
{{#if:{{{produce|}}}|! width="30%" style="background: #e6e9ff;" {{!}} [[Pikmin family{{!}}<span style="color: #000;">Pikmin produced</span>]]
{{#if:{{{pikmin2|}}}|! [[2-Player Battle]] levels
{{!}} width = "70%" {{!}} {{{produce}}} }}
{{!}} {{{2p|None}}} }}
{{#if:{{{pikmin2|}}}|{{!}}-
|-
! width="30%" style="background: #e6e9ff;" {{!}} [[Piklopedia]] #
{{#if:{{{pikmin3|}}}|! [[Bingo Battle]] levels
{{!}} width = "70%" {{!}} {{#if:{{{piklopedia|}}}|&#35;{{{piklopedia}}}|N/A}}
{{!}} {{{bingo|None}}} }}
}}
|-
|}<includeonly>{{#if:{{{family|}}}|[[Category:{{{family}}} family]]|[[Category:Plants with no known family]]}}{{#if:{{{pikmin|}}}
{{#if:{{{pikmin4|}}}|! [[Dandori Battle]] levels
|[[Category: Pikmin 1 plants]]}}{{#if:{{{pikmin2|}}}
{{!}} {{{dandori_b|None}}} }}
|[[Category: Pikmin 2 plants]]}}{{#if:{{{pikmin3|}}}
|-
|[[Category: Pikmin 3 plants]]}}</includeonly><noinclude>
{{#if:{{{produce|}}}|! [[Pikmin family|Pikmin]] produced
{{!}} {{{produce}}} }}
|}<includeonly>{{#if:{{{noicons|}}}||{{game icons|p={{{pikmin|}}}|p2={{{pikmin2|}}}|p3={{{pikmin3|}}}|p4={{{pikmin4|}}}|hp={{{heypikmin|}}}|pa={{{pikminadventure|}}}}}}} {{#if:{{{family|}}}|[[Category:{{{family}}} family]]|[[Category:Plants and fungi with no known family]]}}{{#if:{{{pikmin|}}}
|[[Category:Pikmin 1 vegetation]]}}{{#if:{{{pikmin2|}}}
|[[Category:Pikmin 2 vegetation]]}}{{#if:{{{pikmin3|}}}
|[[Category:Pikmin 3 vegetation]]}}{{#if:{{{pikmin4|}}}
|[[Category:Pikmin 4 vegetation]]}}{{#if:{{{heypikmin|}}}
|[[Category:Hey! Pikmin vegetation]]}}</includeonly><noinclude>


{{clear}}
{{clear}}
==Info==
==Info==
Place this at the top of [[plant]] articles. It creates an information box with data about the plant.
Place this at the top of [[plant]] and fungus articles. It creates an information box with data about the plant or fungus.


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]]).
Pages with this template are automatically categorized under the corresponding [[:Category:Families|family category]], and list of vegetation in the corresponding game(s) ([[:Category:Pikmin 1 vegetation]], [[:Category:Pikmin 2 vegetation]], [[:Category:Pikmin 3 vegetation]], [[:Category:Hey! Pikmin vegetation]]), [[:Category: Pikmin 4 vegetation]]).


==Parameters==
==Parameters==
Line 64: Line 69:
|-
|-
! pikmin
! pikmin
| No ||  || If this plant appears in ''Pikmin'', give this a value, like "y".
| No ||  || If this plant/fungus appears in ''Pikmin'', give this a value, like "y".
|-
|-
! pikmin2
! pikmin2
Line 71: Line 76:
! pikmin3
! pikmin3
| No ||  || Same as above, but ''Pikmin 3''.
| No ||  || Same as above, but ''Pikmin 3''.
|-
! pikmin4
| No ||  || Same as above, but ''Pikmin 4''.
|-
! heypikmin
| No ||  || Same as above, but ''Hey! Pikmin''.
|-
! pikminadventure
| No ||  || Same as above, but ''Pikmin Adventure''.
|-
|-
! image
! image
Line 82: Line 96:
|-
|-
! icon
! icon
| No ||  || If it has a Piklopedia icon, specify its filename on the wiki here.
| No ||  || If it has an icon, specify its filename on the wiki here.
|-
! custom_icon
| No ||  || If the icon was custom-made, give this a value, like "y". Otherwise, it's assumed to be the Piklopedia icon.
|-
|-
! name
! name
Line 97: Line 114:
|-
|-
! challenge
! challenge
| No || None || [[Challenge Mode]] levels in which it appears. This is both for ''Pikmin'' and ''Pikmin 2''.
| No || None || [[Challenge Mode (disambiguation)|Challenge Mode]] levels in which it appears. This is both for ''Pikmin'' and ''Pikmin 2''.
|-
|-
! missionct
! missionct
| No || None || Collect Treasure! levels in which it appears.
| No || None || Collect treasure! levels in which it appears.
|-
|-
! missionbe
! missionbe
| No || None || Battle Enemies! levels in which it appears.
| No || None || Battle enemies! levels in which it appears.
|-
! sidestories
| No || None || [[Side Stories|Side Story]] levels it appears in which it appears.
|-
! dandori_c
| No || None || [[Dandori Challenge]] levels in which it appears.
|-
|-
! 2p
! 2p
Line 110: Line 133:
! bingo
! bingo
| No || None || [[Bingo Battle]] levels in which it appears.
| No || None || [[Bingo Battle]] levels in which it appears.
|-
! dandori_b
| No || None || [[Dandori Battle]] levels in which it appears.
|-
|-
! produce
! produce
| No ||  || For Candypop Buds only &ndash; maximum Pikmin seeds produced (e.g.: "5 red").
| No ||  || For Candypop Buds only &ndash; maximum Pikmin seeds produced (e.g.: "5 red").
|-
! piklopedia
| No || N/A || Piklopedia number.
|-
|-
! plant_name
! plant_name
| No || ''<nowiki>{{PAGENAME}}</nowiki>'' || If the plant name differs from the page name, specify it here.
| No || ''<nowiki>{{PAGENAME}}</nowiki>'' || If the plant/fungus name differs from the page name, specify it here.
|-
|-
! noicons
! noicons  
| No ||  || If this has a value, like "y", disable auto {{tem|game icons}} (to avoid conflicts with other templates).
| No ||  || If this has a value, like "y", disable auto {{tem|game icons}} (to avoid conflicts with other templates).
|}
|}


==Template==
==Skeleton==
<pre>
<pre>
{{infobox plant
{{infobox plant
Line 130: Line 153:
|pikmin2    =  
|pikmin2    =  
|pikmin3    =  
|pikmin3    =  
|pikmin4    =
|heypikmin  =
|image      =  
|image      =  
|size        =  
|size        =  
|caption    =  
|caption    =  
|icon        =  
|icon        =  
|custom_icon =
|name        =  
|name        =  
|family      =  
|family      =  
Line 141: Line 167:
|missionct  =  
|missionct  =  
|missionbe  =  
|missionbe  =  
|sidestories =
|2p          =  
|2p          =  
|bingo      =  
|bingo      =  
|produce    =  
|produce    =  
|piklopedia  =
|plant_name  =  
|plant_name  =  
|noicons    =  
|noicons    =  
Line 150: Line 176:
</pre>
</pre>


[[Category:Infobox templates]]
[[Category:Information boxes]]</noinclude>
</noinclude>

Latest revision as of 16:06, September 20, 2023

Infobox plant
Appears in N/A
Scientific name Unknown
Family Unknown
Areas None

Info

Place this at the top of plant and fungus articles. It creates an information box with data about the plant or fungus.

Pages with this template are automatically categorized under the corresponding family category, and list of vegetation in the corresponding game(s) (Category:Pikmin 1 vegetation, Category:Pikmin 2 vegetation, Category:Pikmin 3 vegetation, Category:Hey! Pikmin vegetation), Category: Pikmin 4 vegetation).

Parameters

Parameter Mandatory Default Detailed description
pikmin No If this plant/fungus 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.
pikmin4 No Same as above, but Pikmin 4.
heypikmin No Same as above, but Hey! Pikmin.
pikminadventure No Same as above, but Pikmin Adventure.
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 an icon, specify its filename on the wiki here.
custom_icon No If the icon was custom-made, give this a value, like "y". Otherwise, it's assumed to be the Piklopedia icon.
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.
sidestories No None Side Story levels it appears in which it appears.
dandori_c No None Dandori Challenge 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.
dandori_b No None Dandori Battle levels in which it appears.
produce No For Candypop Buds only – maximum Pikmin seeds produced (e.g.: "5 red").
plant_name No {{PAGENAME}} If the plant/fungus 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).

Skeleton

{{infobox plant
|pikmin      = 
|pikmin2     = 
|pikmin3     = 
|pikmin4     =
|heypikmin   = 
|image       = 
|size        = 
|caption     = 
|icon        = 
|custom_icon = 
|name        = 
|family      = 
|areas       = 
|underground = 
|challenge   = 
|missionct   = 
|missionbe   = 
|sidestories = 
|2p          = 
|bingo       = 
|produce     = 
|plant_name  = 
|noicons     = 
}}