Template:Infobox ship part: Difference between revisions

Tweaked so Ionium Jet doesn't display the P1 icon
m (Text replacement - "{{clear}} ==Info==" to "{{clear}} ==Info==")
(Tweaked so Ionium Jet doesn't display the P1 icon)
Tag: Mobile edit
(12 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{#if:{{{noicons|}}}||<includeonly>{{#if:{{{pikmin3deluxe|}}}||{{#if:{{{pikmin1|}}}|{{game icons|p=y|p3=y}}|{{game icons|p=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}} }}}''{{#if:{{{pikmin1|}}}|<br><span style="font-size: 80%;">(''Pikmin'')</span>}}{{#if:{{{pikmin3deluxe|}}}|<br><span style="font-size: 80%;">(''Pikmin 3 Deluxe'')</span>}}
  {{!}} 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}} }}}''{{#if:{{{pikmin1|}}}|<br><small>(''Pikmin'')</small>}}{{#if:{{{pikmin3deluxe|}}}|<br><span style="font-size: 80%;">(''Pikmin 3 Deluxe'')</span>}} }}
  {{!}}} | ''{{{name|{{PAGENAME}} }}}''{{#if:{{{pikmin1|}}}|<br><small>(''Pikmin'')</small>}}{{#if:{{{pikmin3deluxe|}}}|<br><small>(''Pikmin 3 Deluxe'')</small>}}} }}
|-
|-
| colspan="2" style="text-align: center;" | {{#if:{{{image|}}}|[[File:{{{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}}} }}
|-
|-
{{#if:{{{pikmin3deluxe|}}}||! 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]].}}
{{#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]]
! style="width: 30%;" | [[Weight]]
Line 21: Line 19:
|-
|-
! {{#if:{{{pikmin3deluxe|}}}|Mission|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 28: 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 47: Line 46:
|-
|-
! pikmin1
! pikmin1
| No ||  || "y" if the infobox is for the part's appearance in {{p1}}, but only if the part also appears in {{p3d}}.
| 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
! pikmin3deluxe
| No ||  || "y" if the infobox is for the part's appearance in ''Pikmin 3 Deluxe''.
| 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
Line 62: 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 80: Line 82:
|pikmin1      =  
|pikmin1      =  
|pikmin3deluxe =  
|pikmin3deluxe =  
|pikmin4      =
|mandatory    =  
|mandatory    =  
|weight        =  
|weight        =