Template:Infobox ship part: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
m (Text replacement - "]] </noinclude>" to "]]</noinclude>")
(Gave it a Pikmin 3 Deluxe option.)
Line 1: Line 1:
{{#if:{{{noicons|}}}||<includeonly>{{game icons|pikmin=y}}</includeonly>}}
{{#if:{{{noicons|}}}||<includeonly>{{game icons|p=y}}{{#if:{{{pikmin3deluxe|}}}|{{game icons|p3=y}}}}
</includeonly>}}
{| class="infobox"
{| class="infobox"
! colspan="2" class="infoboxTitle" | {{#if:{{{icon|}}} |
! colspan="2" class="infoboxTitle" | {{#if:{{{icon|}}} |
Line 11: Line 12:
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} }}
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} }}
|-
|-
! colspan="2" style="text-align:center" | This is {{#ifeq:{{{mandatory}}}|no|not }} a mandatory ship part.
{{#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 19: Line 20:
{{!}} {{{max_pikmin|}}} Pikmin}}
{{!}} {{{max_pikmin|}}} Pikmin}}
|-
|-
! Location
! {{#if:{{{pikmin3deluxe|}}}|Mission|Location}}
| [[{{{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>


{{clear}}
{{clear}}
==Info==
==Info==
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.
Line 44: Line 46:
! icon
! icon
| No ||  || Icon image name, with extension.
| No ||  || Icon image name, with extension.
|-
! pikmin3deluxe
| No ||  || "y" if the infobox is for the part's appearance in {{p3d}}.
|-
|-
! mandatory
! mandatory
| '''Yes''' ||  || "yes" or "no", according to whether the ship part is mandatory or not.
| No ||  || "no" if the ship part is not mandatory and for {{p}}.
|-
|-
! weight
! weight
Line 67: Line 72:
<pre>
<pre>
{{infobox ship part
{{infobox ship part
|image       =  
|image         =  
|size       =  
|size         =  
|caption     =  
|caption       =  
|icon       =  
|icon         =
|mandatory   =  
|pikmin3deluxe =
|weight     =  
|mandatory     =  
|max_pikmin =  
|weight       =  
|location   =  
|max_pikmin   =  
|name       =  
|location     =  
|noicons     =  
|name         =  
|noicons       =  
}}
}}
</pre>
</pre>


[[Category:Information boxes]]</noinclude>
[[Category:Information boxes]]</noinclude>

Revision as of 17:00, November 24, 2020

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.
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 and for 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          = 
|pikmin3deluxe =
|mandatory     = 
|weight        = 
|max_pikmin    = 
|location      = 
|name          = 
|noicons       = 
}}