Template:Infobox fruit: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
No edit summary
(Add a size to the icons since the new versions being uploaded now are not all the same size)
 
(38 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{#if:{{{noicons|}}}||{{game icons|pikmin3=y}}}}
{| class="infobox"
{| class="infobox" align="right" style="float: right; width: 25em; 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;" {{!}} ''{{{fruit_name|{{PAGENAME}} }}}''
  {{!}} style = "vertical-align: middle; padding-left: 32px;" {{!}} ''{{{fruit_name|{{PAGENAME}}}}} {{#if:{{{tclash|}}}|<br><span style="font-size: 80%;">(fruit)</span>}}''
  {{!}} style = "width: 32px;" {{!}} [[File:{{{icon}}}|Fruit File icon.]]
  {{!}} style = "width: 32px;" {{!}} [[File:{{{icon}}}|48px|Icon used to represent the fruit on the wiki.]]
  {{!}}} | ''{{{fruit_name|{{PAGENAME}} }}}'' }}
  {{!}}} | ''{{{fruit_name|{{PAGENAME}} }}} {{#if:{{{tclash|}}}|<br><span style="font-size: 80%;">(fruit)</span>}}'' }}
|-
|-
! colspan="2" style="background: #fff; text-align: center;" | {{#if:{{{image|}}}|[[Image:{{{image}}}{{!}}{{{size|160px}}}]]}}
| colspan="2" style="text-align: center;" | {{#if:{{{image|}}}|[[File:{{{image}}}{{!}}{{{size|160px}}}]]}}
|-
|-
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}}
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} }}
{{!}}- }}
! width="30%" style="background: #e6e9ff;" | Juice Amount
| width="70%" | {{{juice}}}
|-
|-
! width="30%" style="background: #e6e9ff;" | Value
! style="width: 30%;" | Juice amount
| width="70%" | {{{value}}}
| {{#if:{{{juicep|}}}|
{{{!}}
{{!}}Whole fruit:{{!!}}{{{juice}}}
{{!}}-
{{!}}Each part:{{!!}}{{{juicep}}}
{{!}}}| {{{juice}}} }}
{{#if:{{{value|}}} |
{{!}}-
! [[Mission Mode#Collect Treasure!|Mission Mode]] value
{{!}} {{#if:{{{valuep|}}}|
{{{!}}
{{!}}Whole fruit:{{!!}}{{pokos|{{{value}}}|y}}
{{!}}-
{{!}}Each part:{{!!}}{{pokos|{{{valuep}}}|y}}
{{!}}}| {{!}} {{pokos|{{{value}}}|y}} }} }}
|-
|-
! width="30%" style="background: #e6e9ff;" | Weight
! [[Weight]]
| width="70%" | {{{weight}}}
| {{#if:{{{weightp|}}}|
{{{!}}
{{!}}Whole fruit:{{!!}}{{{weight}}}
{{!}}-
{{!}}Each part:{{!!}}{{{weightp}}}
{{!}}}| {{{weight}}} }}
|-
|-
! width="30%" style="background: #e6e9ff;" | Max Carriers
! Max. [[Carry|carriers]]
| width="70%" | {{{max_pikmin}}}
| {{#if:{{{max_pikminp|}}}|
{{{!}}
{{!}}Whole fruit:{{!!}}{{{max_pikmin}}} ([[Carry#Winged Pikmin|normally]])
{{!}}-
{{!}}Each part:{{!!}}{{{max_pikminp}}} ([[Carry#Winged Pikmin|normally]])
{{!}}}| {{{max_pikmin}}} ([[Carry#Winged Pikmin|normally]]) }}
|-
|-
! width="30%" style="background: #e6e9ff;" | Location(s)
! Locations
| width="70%" | {{{location}}}
| {{{location}}}
|-
|-
! width="30%" style="background: #e6e9ff;" | Mission Mode Location(s)
! [[Mission Mode#Collect Treasure!|Mission Mode]] locations
| width="70%" | {{{mission_location}}}
| {{{mission|None}}}
|-
|-
! [[Bingo Battle]] locations
| {{{bingo|None}}}
|-
! [[Side Stories]] locations
| {{{sidestories|None}}}
|-
|}<includeonly>{{#if:{{{clash|}}}||{{game icons|pikmin3=y}}}} [[Category:Fruits]]</includeonly><noinclude>
{{clear}}
==Info==
Place this at the top of [[fruit]] articles. This will create an information box with data about the fruit.
Articles with this template are automatically categorized under [[:Category:Fruits]].
==Parameters==
{| class = "wikitable"
! Parameter || Mandatory || Default || Detailed description
|-
! image
| No ||  || Image name, with extension.
|-
! size
| No || 160px || Size of the image.
|-
! caption
| No ||  || Caption for the image, if needed.
|-
! icon
| No ||  || Name of the fruit's icon, from the [[Fruit File]], with extension.
|-
! juice<ref name="part">A parameter with the same name as this one, but ending with a "p" also exists. This is the value of each individual part that makes up the whole fruit.</ref>
| '''Yes''' ||  || Amount of juice the whole fruit provides.
|-
! value<ref name="part"/>
| No ||  || Mission Mode value for the whole fruit.
|-
! weight<ref name="part"/>
| '''Yes''' ||  || The whole fruit's weight.
|-
! max_pikmin<ref name="part"/>
| '''Yes''' ||  || Maximum number of carrier Pikmin for the whole fruit.
|-
! location
| '''Yes''' ||  || Areas it can be found on. Remember to add the links to the area articles too.
|-
! mission
| No || None || Mission Mode stages it can be found on. No fruits ever appear in Battle enemies!, so just link to the Collect treasure! section if it exists.
|-
! bingo
| No || None || Bingo Battle stages it can be found on.
|-
! sidestories
| No || None || Side Stories stages it can be found on.
|-
! clash
| No ||  || If this has a value, like "y", it avoids conflicts with other templates ({{tem|game icons}} clashing, or title clashing).
|-
! tclash
| No ||  || If this template shares a page with a treasure infobox template, give this a value, like "y".
|}
|}
<includeonly>[[Category:Fruits|{{PAGENAME}}]]</includeonly><noinclude>
{{clear}}


==Use==
<references/>
<pre>{{infobox fruit
 
|image             = image name with extension
==Skeleton==
|size             = image size (optional)
<pre>
|caption           = image caption (optional)
{{infobox fruit
|icon             = Fruit File icon
|image       =  
|juice             = amount of juice the fruit provides
|size       =  
|value             = value in Pokos (Mission mode only, optional)
|caption     =  
|weight           = weight
|icon       =  
|max_pikmin       = maximum number of carriers
|juice       =
|location         = location
|juicep      =  
|mission_location  = Mission Mode locations
|value       =
|noicons          = whether to disable display of game icons (to avoid conflicts with other templates)
|valuep      =  
}}</pre>
|weight     =
|weightp    =  
|max_pikmin =
|max_pikminp =  
|location   =
|mission    =
|bingo      =
|sidestories =
|clash      =  
|tclash      =  
}}
</pre>


[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>
[[Category:Information boxes]]</noinclude>

Latest revision as of 23:24, March 2, 2024

Infobox fruit
Juice amount {{{juice}}}
Weight {{{weight}}}
Max. carriers {{{max_pikmin}}} (normally)
Locations {{{location}}}
Mission Mode locations None
Bingo Battle locations None
Side Stories locations None

Info

Place this at the top of fruit articles. This will create an information box with data about the fruit.

Articles with this template are automatically categorized under Category:Fruits.

Parameters

Parameter Mandatory Default Detailed description
image No Image name, with extension.
size No 160px Size of the image.
caption No Caption for the image, if needed.
icon No Name of the fruit's icon, from the Fruit File, with extension.
juice[1] Yes Amount of juice the whole fruit provides.
value[1] No Mission Mode value for the whole fruit.
weight[1] Yes The whole fruit's weight.
max_pikmin[1] Yes Maximum number of carrier Pikmin for the whole fruit.
location Yes Areas it can be found on. Remember to add the links to the area articles too.
mission No None Mission Mode stages it can be found on. No fruits ever appear in Battle enemies!, so just link to the Collect treasure! section if it exists.
bingo No None Bingo Battle stages it can be found on.
sidestories No None Side Stories stages it can be found on.
clash No If this has a value, like "y", it avoids conflicts with other templates ({{game icons}} clashing, or title clashing).
tclash No If this template shares a page with a treasure infobox template, give this a value, like "y".
  1. ^ a b c d A parameter with the same name as this one, but ending with a "p" also exists. This is the value of each individual part that makes up the whole fruit.

Skeleton

{{infobox fruit
|image       = 
|size        = 
|caption     = 
|icon        = 
|juice       = 
|juicep      = 
|value       = 
|valuep      = 
|weight      = 
|weightp     = 
|max_pikmin  = 
|max_pikminp = 
|location    = 
|mission     =
|bingo       =
|sidestories =
|clash       = 
|tclash      = 
}}