Template:Infobox object: Difference between revisions
From Pikmin Fanon
mNo edit summary |
(Cleanup.) |
||
Line 1: | Line 1: | ||
{|class="infobox" align="right" style="width: | {| 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|}}}|{{!}} colspan="2" style="background: #fff; text-align:center" {{!}} [[File:{{{image|}}}{{#if:{{{size|}}}|{{!}}{{{size}}}}}]]|}} | ||
|- | |- | ||
! style=" | {{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} }} | ||
|- | |- | ||
{{#if:{{{ | {{#if:{{{areas|}}}|! width="40%" style="background: #eef;" {{!}} [[Area]]s | ||
{{!}} {{{areas|None}}}|}} | |||
|- | |- | ||
! style="background: #eef;" | {{#if:{{{underground|}}}|! width="40%" style="background: #eef;" {{!}} [[Cave]]s | ||
{{!}} {{{underground|None}}}|}} | |||
|- | |- | ||
{{#if:{{{ | {{#if:{{{challenge|}}}|! width="40%" style="background: #eef;" {{!}} [[Challenge Mode]] stages | ||
{{!}} {{{challenge|}}}|}} | |||
{{#if:{{{ | |- | ||
{{#if:{{{battle|}}}|! width="40%" style="background: #eef;" {{!}} [[Battle Mode]] stages | |||
{{#if:{{{ | {{!}} {{{battle|}}}|}} | ||
|- | |||
{{#if:{{{ | {{#if:{{{weight|}}}|! width="40%" style="background: #eef;" {{!}} Carry weight | ||
{{!}} {{{weight|1}}}|}} | |||
|- | |||
|} | {{#if:{{{max_pikmin|}}}|! width="40%" style="background: #eef;" {{!}} Max. carriers | ||
<noinclude> | {{!}} {{{max_pikmin|1}}}|}} | ||
|}<noinclude> | |||
{{clear}} | {{clear}} | ||
{{ | ==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> | |||
[[Category:Infobox templates]]</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= }}