Template:Infobox ship part: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
(Style.)
(Tweaked so Ionium Jet doesn't display the P1 icon)
Tag: Mobile edit
 
(30 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{#if:{{{noicons|}}}||<includeonly>{{game icons|pikmin=y}}</includeonly>}}
{| class="infobox"
{| class="infobox"
! colspan="2" class="infoboxTitle" | {{#if:{{{icon|}}} |
! colspan="2" class="infoboxTitle" | {{#if:{{{icon|}}} |
{{{!}} style = "min-width:100%;"
{{{!}} style = "min-width:100%;"
  {{!}} style = "vertical-align: middle; padding-left: 32px;" {{!}} ''{{{name|{{PAGENAME}} }}}''
  {{!}} style = "vertical-align: middle; padding-left: 32px;" {{!}} ''{{{name|{{PAGENAME}} }}}''{{#if:{{{pikmin1|}}}|<br><small>(''Pikmin'')</small>}}{{#if:{{{pikmin3deluxe|}}}|<br><small>(''Pikmin 3 Deluxe'')</small>}}{{#if:{{{pikmin4|}}}|<br><small>(''Pikmin 4'')</small>}}
  {{!}} 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}} }}}''{{#if:{{{pikmin1|}}}|<br><small>(''Pikmin'')</small>}}{{#if:{{{pikmin3deluxe|}}}|<br><small>(''Pikmin 3 Deluxe'')</small>}}} }}
|-
|-
| colspan="2" style="text-align: center;" | {{#if:{{{image|}}}|[[Image:{{{image|}}}{{pipe}}{{{size|250x250px}}}]]}}
| colspan="2" style="text-align: center;" | {{#if:{{{image|}}}|[[File:{{{image|}}}{{!}}{{{size|250x250px}}}]]}}
|-
|-
{{#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.
|-
|-
! style="width: 30%;" | Weight
{{#if:{{{pikmin3deluxe|}}}{{{pikmin4|}}}||! colspan="2" style="text-align:center" {{!}} This ship part is {{#ifeq:{{{mandatory}}}|no|not }} required for the S.S. Dolphin to [[Pikmin (game)#Endings|escape the planet]].}}
|-
! style="width: 30%;" | [[Weight]]
| {{{weight}}}
| {{{weight}}}
{{#if:{{{max_pikmin|}}}|{{!}}-
|-
! Max. carriers
{{#if:{{{max_pikmin|}}}|! Max. [[Carry|carriers]]
{{!}} {{{max_pikmin|}}} Pikmin}}
{{!}} {{{max_pikmin|}}} Pikmin}}
|-
|-
! Location
! {{#if:{{{pikmin3deluxe|}}}|Mission|Location}}
| [[{{{location}}}]]
| {{#if:{{{pikmin4|}}}||[[{{{location}}}]]}}{{#if:{{{pikmin4|}}}|{{{location}}}}}
|}<includeonly>[[Category:Ship parts]]{{#ifeq:{{{mandatory}}}|no|[[Category:Optional ship parts]]|[[Category:Mandatory ship parts]]}}</includeonly><noinclude>
|}<includeonly>
{{#if:{{{noicons|}}}||{{#if:{{{pikmin3deluxe|}}}{{{pikmin4|}}}||{{game icons|p=y}}}}}}{{#if:{{{noicons|}}}||{{#if:{{{pikmin3deluxe|}}}|{{game icons|p3=y}}|}}}}{{#if:{{{noicons|}}}||{{#if:{{{pikmin4|}}}|{{game icons|p4=y}}|}}}}[[Category:Ship parts]]</includeonly><noinclude>


{{clear}}
{{clear}}
Line 27: Line 27:
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]], as well as either [[:Category:Mandatory ship parts]] or [[:Category:Optional ship parts]].
Articles with this template are automatically categorized under [[:Category:Ship parts]].


==Parameters==
==Parameters==
Line 44: Line 44:
! icon
! icon
| No ||  || Icon image name, with extension.
| No ||  || Icon image name, with extension.
|-
! pikmin1
| No ||  || "y" if the infobox is for the part's appearance in {{p1}}, but only if the part also appears in {{p3d}} or {{p4}}.
|-
! pikmin3deluxe
| No ||  || "y" if the infobox is for the part's appearance in ''Pikmin 3 Deluxe''.
|-
! pikmin4
| No ||  || "y" if the infobox is for the part's appearance in ''Pikmin 4''.
|-
|-
! 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 in ''Pikmin''.
|-
|-
! weight
! weight
Line 55: Line 64:
|-
|-
! location
! location
| '''Yes''' ||  || Area it is found in.
| '''Yes''' ||  || Area it is found in. Needs to be linked manually for ship parts in ''Pikmin 4''.
|-
|-
! name
! name
Line 64: Line 73:
|}
|}


==Template==
==Skeleton==
<pre>
<pre>
{{infobox ship part
{{infobox ship part
|image       =  
|image         =  
|size       =  
|size         =  
|caption     =  
|caption       =  
|icon       =  
|icon         =
|mandatory   =  
|pikmin1      =
|weight     =  
|pikmin3deluxe =
|max_pikmin =  
|pikmin4      =
|location   =  
|mandatory     =  
|name       =  
|weight       =  
|noicons     =  
|max_pikmin   =  
|location     =  
|name         =  
|noicons       =  
}}
}}
</pre>
</pre>


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

Latest revision as of 06:01, February 21, 2024

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.

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 or Pikmin 4.
pikmin3deluxe No "y" if the infobox is for the part's appearance in Pikmin 3 Deluxe.
pikmin4 No "y" if the infobox is for the part's appearance in Pikmin 4.
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. Needs to be linked manually for ship parts in Pikmin 4.
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 = 
|pikmin4       =
|mandatory     = 
|weight        = 
|max_pikmin    = 
|location      = 
|name          = 
|noicons       = 
}}