Template:Infobox ship part: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
(Categorized mandatory and optional parts.)
(New documentation style.)
Line 14: Line 14:
|-
|-
! style="background: #e6e9ff;" | Location || [[{{{location}}}]]
! style="background: #e6e9ff;" | Location || [[{{{location}}}]]
|}<includeonly>{{#ifeq:{{{mandatory}}}|no|[[Category:Optional ship parts]]|[[Category:Mandatory ship parts]]}}</includeonly><noinclude>
|}<includeonly>[[Category:Ship parts]]{{#ifeq:{{{mandatory}}}|no|[[Category:Optional ship parts]]|[[Category:Mandatory ship parts]]}}</includeonly><noinclude>
[[Category:Infobox templates|{{PAGENAME}}]]
 
{{clear}}
{{clear}}
==Use==
==Info==
<pre>{{infobox ship part
Place this at the top of [[ship part]] articles. This creates an information box with data about the ship part.
|image      = image name with extension
 
|size       = image size (optional)
Articles with this template are automatically categorized under [[:Category:Ship parts]], as well as either [[:Category:Mandatory ship parts]] or [[:Category:Optional ship parts]].
|mandatory   = 'yes' or 'no'
 
|weight     = weight
==Parameters==
|max_pikmin  = maximum number of carriers
{| class = "wikitable"
|location   = area found in
! Parameter || Mandatory || Default || Detailed description
|noicons     = whether to disable display of game icons (to avoid conflicts with other templates)
|-
}}</pre></noinclude>
! image
| No ||  || Image name, with extension.
|-
! size
| No || 160px || Image size.
|-
! caption
| No ||  || Caption for the image, if needed.
|-
! mandatory
| '''Yes''' ||  || "yes" or "no", according to whether the ship part is mandatory or not.
|-
! weight
| '''Yes''' ||  || Ship part's weight.
|-
! max_pikmin
| '''Yes''' || || Maximum number of carriers.
|-
! location
| '''Yes''' ||  || Area it is found in.
|-
! noicons
| No ||  || If this has a value, like "y", auto {{tem|game icons}} is disabled (to avoid conflicts with other templates).
|}
 
==Template==
<pre>
{{infobox ship part
|image      =
|size        =
|caption    =
|mandatory  =
|weight      =
|max_pikmin  =
|location    =
|noicons    =
}}
</pre>
 
[[Category:Infobox templates]]
</noinclude>

Revision as of 08:41, October 28, 2014

{{{name}}}
This is a mandatory ship part.
Weight {{{weight}}}
Location [[{{{location}}}]]

Info

Place this at the top of ship part articles. This creates an information box with data about the ship part.

Articles with this template are automatically categorized under Category:Ship parts, as well as either Category:Mandatory ship parts or Category:Optional ship parts.

Parameters

Parameter Mandatory Default Detailed description
image No Image name, with extension.
size No 160px Image size.
caption No Caption for the image, if needed.
mandatory Yes "yes" or "no", according to whether the ship part is mandatory or not.
weight Yes Ship part's weight.
max_pikmin Yes Maximum number of carriers.
location Yes Area it is found in.
noicons No If this has a value, like "y", auto {{game icons}} is disabled (to avoid conflicts with other templates).

Template

{{infobox ship part
|image       = 
|size        = 
|caption     = 
|mandatory   = 
|weight      = 
|max_pikmin  = 
|location    = 
|noicons     = 
}}