Template:Infobox ship part: Difference between revisions
Jump to navigation
Jump to search
m (Sizes.) |
(Style.) |
||
Line 1: | Line 1: | ||
{{#if:{{{noicons|}}}||<includeonly>{{game icons|pikmin=y}}</includeonly>}} | {{#if:{{{noicons|}}}||<includeonly>{{game icons|pikmin=y}}</includeonly>}} | ||
{| class="infobox | {| class="infobox" | ||
! colspan="2" | ! colspan="2" class="infoboxTitle" | {{#if:{{{icon|}}} | | ||
{{#if:{{{icon|}}} | | {{{!}} style = "min-width:100%;" | ||
{{!}} style = "vertical-align: middle; padding-left: 32px;" {{!}} ''{{{name|{{PAGENAME}} }}}'' | {{!}} style = "vertical-align: middle; padding-left: 32px;" {{!}} ''{{{name|{{PAGENAME}} }}}'' | ||
{{!}} style = "width: 32px;" {{!}} [[File:{{{icon}}}|40px|Icon used to represent the ship part on the wiki.]] | {{!}} style = "width: 32px;" {{!}} [[File:{{{icon}}}|40px|Icon used to represent the ship part on the wiki.]] | ||
{{!}}} | ''{{{name|{{PAGENAME}} }}}'' }} | {{!}}} | ''{{{name|{{PAGENAME}} }}}'' }} | ||
|- | |- | ||
| colspan="2" style="text-align: center;" | {{#if:{{{image|}}}|[[Image:{{{image|}}}{{pipe}}{{{size|250x250px}}}]]}} | |||
|- | |- | ||
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} | {{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} | ||
Line 14: | Line 13: | ||
! colspan="2" style="text-align:center" | This is {{#ifeq:{{{mandatory}}}|no|not }} a mandatory ship part. | ! colspan="2" style="text-align:center" | This is {{#ifeq:{{{mandatory}}}|no|not }} a mandatory ship part. | ||
|- | |- | ||
! style=" | ! style="width: 30%;" | Weight | ||
{{#if:{{{max_pikmin|}}}|{{ | | {{{weight}}} | ||
! | {{#if:{{{max_pikmin|}}}|{{!}}- | ||
! Max. carriers | |||
{{!}} {{{max_pikmin|}}} Pikmin}} | |||
|- | |- | ||
! | ! Location | ||
| [[{{{location}}}]] | |||
|}<includeonly>[[Category:Ship parts]]{{#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> | ||
Revision as of 12:52, November 11, 2014
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. | |
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. | |
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). |
Template
{{infobox ship part |image = |size = |caption = |icon = |mandatory = |weight = |max_pikmin = |location = |name = |noicons = }}