Template:Infobox object: Difference between revisions

From Pikmin Fanon
mNo edit summary
(Cleanup.)
 
Line 1: Line 1:
{|class="infobox" align="right" style="width: 20em; font-size: 82%; text-align: left; border-style: solid; border-width: 1px; border-color: grey"
{| class="infobox" align="right" style="width: 30em; background-color:#fff; font-size: 80%; text-align: left; border-style: solid; border-width: 2px; border-color: grey"
! colspan="2" style="font-size: 140%; background: #ccf; text-align: center;" | ''{{PAGENAME}}''
! class="infoboxTitle" colspan="2" style="font-size: 140%; background: #ccf; text-align: center;" | {{#if:{{{icon|}}} |
{{{!}} style = "min-width:100%;"
{{!}} style = "vertical-align: middle; padding-left: 32px;" {{!}} ''{{{customname|{{PAGENAME}} }}}''
{{!}} style = "width: 32px;" {{!}} [[File:{{{icon|}}}|40px|The icon used to represent this object.]]
{{!}}} | ''{{{customname|{{PAGENAME}} }}}'' }}
|-
|-
! colspan="2" style="background: #fff; text-align: center;" | {{#if:{{{image|}}}|[[File:{{{image}}}|{{{size|160px}}}]]}}
{{#if:{{{image|}}}|{{!}} colspan="2" style="background: #fff; text-align:center" {{!}} [[File:{{{image|}}}{{#if:{{{size|}}}|{{!}}{{{size}}}}}]]|}}
|-
|-
! style="background: #eef;" |Areas||{{{areas|None}}}
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} }}
|-
|-
{{#if:{{{underground|}}}|! style="background: #eef;" {{!}}Underground areas{{!}}{{!}}{{{underground}}}
{{#if:{{{areas|}}}|! width="40%" style="background: #eef;" {{!}} [[Area]]s
{{!}}-}}
{{!}} {{{areas|None}}}|}}
{{#if:{{{challenge|}}}|! style="background: #eef;" {{!}}Challenge Mode{{!}}{{!}}{{{challenge}}}
{{!}}-}}
! style="background: #eef;" |Type||{{{type}}}
|-
|-
! style="background: #eef;" |Class||{{{class}}}
{{#if:{{{underground|}}}|! width="40%" style="background: #eef;" {{!}} [[Cave]]s
{{!}} {{{underground|None}}}|}}
|-
|-
{{#if:{{{name|}}}|! style="background: #eef;" {{!}}Scientific name{{!}}{{!}}{{{name}}}
{{#if:{{{challenge|}}}|! width="40%" style="background: #eef;" {{!}} [[Challenge Mode]] stages
{{!}}-}}
{{!}} {{{challenge|}}}|}}
{{#if:{{{family|}}}|! style="background: #eef;" {{!}}family{{!}}{{!}}{{{family}}}
|-
{{!}}-}}
{{#if:{{{battle|}}}|! width="40%" style="background: #eef;" {{!}} [[Battle Mode]] stages
{{#if:{{{min|}}}|! style="background: #eef;" {{!}}Min. Required Pikmin{{!}}{{!}}{{{min}}}
{{!}} {{{battle|}}}|}}
{{!}}-}}
|-
{{#if:{{{max|}}}|! style="background: #eef;" {{!}}Max. Required Pikmin{{!}}{{!}}{{{max}}}
{{#if:{{{weight|}}}|! width="40%" style="background: #eef;" {{!}} Carry weight
{{!}}-}}
{{!}} {{{weight|1}}}|}}
! style="background: #eef;" |Function||{{{function}}}
|-
|}
{{#if:{{{max_pikmin|}}}|! width="40%" style="background: #eef;" {{!}} Max. carriers
<noinclude>[[Category:Infobox templates]]
{{!}} {{{max_pikmin|1}}}|}}
|}<noinclude>


{{clear}}
{{clear}}


{{todo|Decide if this template is necessary. If not, it should be marked for deletion.}}
==Info==
This template is to be used at the top of object or [[obstacle]] page sections. It places an information box on the top-right corner of the page.
 
==Parameters==
{| class = "wikitable"
! Parameter || Mandatory || Default || Detailed description
|-
! customname
| No || ''<nowiki>{{PAGENAME}}</nowiki>'' || If the name of the object is different from the title of the page, specify it here.
|-
! image
| No ||  || Image for the infobox, extension included.
|-
! size
| No ||  || The image's size.
|-
! caption
| No ||  || The image's caption, if needed.
|-
! icon
| No ||  || If the object has an icon, specify its image here, extension included. If the icon is a placeholder, place <nowiki>Obstacle icon.png</nowiki> here.
|-
! areas
| No || None || Areas in which it appears.
|-
! underground
| No || None || Caves in which it appears.
|-
! challenge
| No || None || Challenge Mode stages in which it appears.
|-
! challenge
| No || None || Battle Mode stages in which it appears.
|-
! weight
| No || 1 || The weight of the object.
|-
! max_pikmin
| No || 1 || The maximum amount of individual Pikmin that can carry the object at once.
|}
 
==Skeleton==
<pre>{{infobox enemy
|customname=
|image=
|size=
|caption=
|icon=
|areas=
|underground=
|challenge=
|battle=
|weight=
|max_pikmin=
}}</pre>


==Use==
[[Category:Infobox templates]]</noinclude>
<pre>{{Infobox object                            *optional field
*|image=image title including extension
*|size=image size
|areas=areas found in
*|underground=caves found in
*|challenge=Challenge Mode levels found in
|type=What sort of object it is, like a gate or hazard.
|class=what type of class it is, such as plant or man-made.
*|name=Scientific name (if it qualifies)
*|family=Family, (if it qualifies)
*|min=Minimum amount of Pikmin required
*|max=Maximum amount pikmin required
|function=What purpose the object serves.
}}</pre></noinclude>

Latest revision as of 13:24, 13 April 2024

Infobox object

Info

This template is to be used at the top of object or obstacle page sections. It places an information box on the top-right corner of the page.

Parameters

Parameter Mandatory Default Detailed description
customname No {{PAGENAME}} If the name of the object is different from the title of the page, specify it here.
image No Image for the infobox, extension included.
size No The image's size.
caption No The image's caption, if needed.
icon No If the object has an icon, specify its image here, extension included. If the icon is a placeholder, place Obstacle icon.png here.
areas No None Areas in which it appears.
underground No None Caves in which it appears.
challenge No None Challenge Mode stages in which it appears.
challenge No None Battle Mode stages in which it appears.
weight No 1 The weight of the object.
max_pikmin No 1 The maximum amount of individual Pikmin that can carry the object at once.

Skeleton

{{infobox enemy
|customname=
|image=
|size=
|caption=
|icon=
|areas=
|underground=
|challenge=
|battle=
|weight=
|max_pikmin=
}}