Template:Infobox ship part: Difference between revisions
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> | ||
{{clear}} | {{clear}} | ||
== | ==Info== | ||
Place this at the top of [[ship part]] articles. This creates an information box with data about the ship part. | |||
| | |||
|size | 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 | |||
|weight | ==Parameters== | ||
|max_pikmin | {| class = "wikitable" | ||
|location | ! Parameter || Mandatory || Default || Detailed description | ||
|noicons | |- | ||
}}</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 = }}