Template:Infobox ship part: Difference between revisions

Added icon.
(New documentation style.)
(Added icon.)
Line 1: Line 1:
{{#if:{{{noicons|}}}||<includeonly>{{game icons|pikmin=y}}</includeonly>}}
{{#if:{{{noicons|}}}||<includeonly>{{game icons|pikmin=y}}</includeonly>}}
{| class="infobox" align="right" style="width: 24em; font-size: 82%; text-align: left; border-style: solid; border-width: 1px; border-color: grey"
{| class="infobox" align="right" style="width: 24em; font-size: 82%; text-align: left; border-style: solid; border-width: 1px; border-color: grey"
! colspan="2" style="font-size: 140%; background: #ccf; text-align: center;" | ''{{{name}}}''
! colspan="2" style="font-size: 140%; background: #ccf; text-align: center;" |
{{#if:{{{icon|}}} |
{{{!}} style = "min-width:100%;"
{{!}} style = "vertical-align: middle; padding-left: 32px;" {{!}} ''{{{name|{{PAGENAME}} }}}''
{{!}} style = "width: 32px;" {{!}} [[File:{{{icon}}}|40px|Icon used to represent the enemy on the wiki.]]
{{!}}} | ''{{{name|{{PAGENAME}} }}}'' }}
|-
|-
! colspan="2" style="background: #fff; text-align: center;" | {{#if:{{{image|}}}|[[Image:{{{image|}}}{{pipe}}{{{size|160px}}}]]}}
! colspan="2" style="background: #fff; text-align: center;" | {{#if:{{{image|}}}|[[Image:{{{image|}}}{{pipe}}{{{size|160px}}}]]}}
Line 34: Line 39:
! caption
! caption
| No ||  || Caption for the image, if needed.
| No ||  || Caption for the image, if needed.
|-
! icon
| No ||  || Icon image name, with extension.
|-
|-
! mandatory
! mandatory
Line 46: Line 54:
! location
! location
| '''Yes''' ||  || Area it is found in.
| '''Yes''' ||  || Area it is found in.
|-
! name
| No ||  || If the ship part's name differs from the page's name, specify it here.
|-
|-
! noicons
! noicons