Template:Infobox ship part: Difference between revisions
Jump to navigation
Jump to search
(Changed the display of the mandatory parameter, to explain better what it means.) |
(Undo: Now the word "no" is appearing at the start of ship part articles, which is not a good thing) Tag: Undo |
||
Line 12: | Line 12: | ||
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} }} | {{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} }} | ||
|- | |- | ||
{{#if:{{{ | {{#if:{{{pikmin3deluxe|}}}||! colspan="2" style="text-align:center" {{!}} This is {{#ifeq:{{{mandatory}}}|no|not }} a mandatory ship part.}} | ||
|- | |- | ||
! style="width: 30%;" | Weight | ! style="width: 30%;" | Weight | ||
Line 54: | Line 54: | ||
|- | |- | ||
! mandatory | ! mandatory | ||
| No || || "no" if the ship part is not | | No || || "no" if the ship part is not mandatory in ''Pikmin''. | ||
|- | |- | ||
! weight | ! weight |
Revision as of 01:21, March 20, 2022
Infobox ship part | |
---|---|
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. | |
icon | No | Icon image name, with extension. | |
pikmin1 | No | "y" if the infobox is for the part's appearance in Pikmin, but only if the part also appears in Pikmin 3 Deluxe. | |
pikmin3deluxe | No | "y" if the infobox is for the part's appearance in Pikmin 3 Deluxe. | |
mandatory | No | "no" if the ship part is not mandatory in Pikmin. | |
weight | Yes | Ship part's weight. | |
max_pikmin | Yes | Maximum number of carriers. | |
location | Yes | Area it is found in. | |
name | No | If the ship part's name differs from the page's name, specify it here. | |
noicons | No | If this has a value, like "y", auto {{game icons}} is disabled (to avoid conflicts with other templates). |
Skeleton
{{infobox ship part |image = |size = |caption = |icon = |pikmin1 = |pikmin3deluxe = |mandatory = |weight = |max_pikmin = |location = |name = |noicons = }}