Template:Infobox ship part: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Fixed the P3D context trying to categorize the article.) |
||
Line 20: | Line 20: | ||
! {{#if:{{{pikmin3deluxe|}}}|Mission|Location}} | ! {{#if:{{{pikmin3deluxe|}}}|Mission|Location}} | ||
| [[{{{location}}}]] | | [[{{{location}}}]] | ||
|}<includeonly>{{#if:{{{noicons|}}}||{{#if:{{{pikmin3deluxe|}}}||{{#if:{{{pikmin1|}}}|{{game icons|p=y|p3=y}}|{{game icons|p=y}}}}}}}} [[Category:Ship parts]]{{#ifeq:{{{mandatory}}}|no|[[Category:Optional ship parts]]|[[Category:Mandatory ship parts]]}}</includeonly><noinclude> | |}<includeonly>{{#if:{{{noicons|}}}||{{#if:{{{pikmin3deluxe|}}}||{{#if:{{{pikmin1|}}}|{{game icons|p=y|p3=y}}|{{game icons|p=y}}}}}}}} [[Category:Ship parts]]{{#if:{{{pikmin1|}}}|{{#ifeq:{{{mandatory}}}|no|[[Category:Optional ship parts]]|[[Category:Mandatory ship parts]]}}}}</includeonly><noinclude> | ||
{{clear}} | {{clear}} | ||
Line 26: | Line 26: | ||
Place this at the top of [[ship part]] articles. This creates an information box with data about the ship part. | 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]], | Articles with this template are automatically categorized under [[:Category:Ship parts]]. If it's used in the context of ''Pikmin'', it also categorizes the article under either [[:Category:Mandatory ship parts]] or [[:Category:Optional ship parts]]. | ||
==Parameters== | ==Parameters== |
Revision as of 10:41, March 5, 2023
Infobox ship part | |
---|---|
This ship part is required for the S.S. Dolphin to escape the planet. | |
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. If it's used in the context of Pikmin, it also categorizes the article under 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 = }}