Template:Infobox enemy: Difference between revisions

From Pikmin Fanon
m (Template:Infobox enemy moved to Template:Infobox Enemy: Just noticed the e isn't capitalized.)
mNo edit summary
 
(124 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{| class="infobox" align="right" style="width: 27em; 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 enemy.]]
{{!}}} | ''{{{customname|{{PAGENAME}} }}}'' }}
|-
|-
! colspan="2" style="background: #fff; text-align: center;" | {{#if:{{{image|}}}|[[Image:{{{image|}}}{{pipe}}{{{size}}}]]|}}
{{#if:{{{image|}}}|{{!}} colspan="2" style="background: #fff; text-align:center" {{!}} [[File:{{{image|}}}{{#if:{{{size|}}}|{{!}}{{{size}}}}}]]|}}
|-
|-
! width="30%" style="background: #e6e9ff;" | Scientific Name
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} }}
| width = "70%" | '''''{{{name}}}'''''
|-
|-
! width="30%" style="background: #e6e9ff;" | Family
! width="40%" style="background: #eef;" {{!}} Scientific name
| width = "70%" | {{{family}}}
| {{#if:{{{name|}}}|''{{{name|}}}''|Unknown}}
|-
|-
! width="30%" style="background: #e6e9ff;" | [[Areas|<font style="color:black">Areas</font>]]
! width="40%" style="background: #eef;" {{!}} Family
| width = "70%" | {{{areas}}}{{#if:{{{underground|}}}|<br>
{{!}} {{#if:{{{family|}}}|{{{family}}}|Unknown}}
{{Pipe}}-
|-
! width="30%" style="background: #e6e9ff;" {{Pipe}} [[Cave{{Pipe}}<font style="color:black">Underground Areas</font>]]
{{#if:{{{areas|}}}|! width="40%" style="background: #eef;" {{!}} [[Area]]s
{{Pipe}} width = "70%" {{Pipe}} {{{underground|}}}|}}{{#if:{{{challenge|}}}|<br>
{{!}} {{{areas|None}}}|}}
{{Pipe}}-
|-
! width="30%" style="background: #e6e9ff;" {{Pipe}} [[Cave{{Pipe}}<font style="color:black">Challenge Mode Levels</font>]]
{{#if:{{{underground|}}}|! width="40%" style="background: #eef;" {{!}} [[Cave]]s
{{Pipe}} width = "70%" {{Pipe}} {{{challenge|}}}|}}{{#if:{{{weight|}}}|<br>
{{!}} {{{underground|None}}}|}}
{{Pipe}}-
|-
! width="30%" style="background: #e6e9ff;" {{Pipe}} Carry Weight
{{#if:{{{challenge|}}}|! width="40%" style="background: #eef;" {{!}} [[Challenge Mode]] stages
{{Pipe}} width = "70%" {{Pipe}} {{{weight|}}}|}}{{#if:{{{weight1|}}}|<br>
{{!}} {{{challenge|}}}|}}
{{Pipe}}-
|-
! width="30%" style="background: #e6e9ff;" {{Pipe}} Carry Weight
{{#if:{{{battle|}}}|! width="40%" style="background: #eef;" {{!}} [[Battle Mode]] stages
{{Pipe}} width = "70%" {{Pipe}} {{{weight1|}}} in Pikmin 1
{{!}} {{{battle|}}}|}}
{{{weight2|}}} in Pikmin 2|}}{{#if:{{{max_pikmin|}}}|<br>
|-
{{Pipe}}-
{{#if:{{{weight|}}}|! width="40%" style="background: #eef;" {{!}} Carry weight
! width="30%" style="background: #e6e9ff;" {{Pipe}} Max. Carriers
{{!}} {{{weight|1}}}|}}
{{Pipe}} width = "70%" {{Pipe}} {{{max_pikmin|}}} Pikmin|}}{{#if:{{{max_pikmin1|}}}|<br>
|-
{{Pipe}}-
{{#if:{{{max_pikmin|}}}|! width="40%" style="background: #eef;" {{!}} Max. carriers
! width="30%" style="background: #e6e9ff;" {{Pipe}} Max. Carriers
{{!}} {{{max_pikmin|1}}}|}}
{{Pipe}} width = "70%" {{Pipe}} {{{max_pikmin1|}}} Pikmin in Pikmin 1
|-
{{{max_pikmin2|}}} Pikmin in Pikmin 2|}}{{#if:{{{seeds|}}}|<br>
{{#if:{{{seeds|}}}|! width="40%" style="background: #eef;" {{!}} Seed worth
{{Pipe}}-
{{!}} {{{seeds|1}}}|}}
! width="30%" style="background: #e6e9ff;" {{Pipe}} Seed Worth
|-
{{Pipe}} width = "70%" {{Pipe}} {{{seeds|}}}|}}{{#if:{{{value|}}}|<br>
{{#if:{{{value|}}}|! width="40%" style="background: #eef;" {{!}} [[Poko]] value
{{Pipe}}-
{{!}} {{pokos|{{{value|}}}}} }}
! width="30%" style="background: #e6e9ff;" {{Pipe}} <font style="color:black">Treasure Value</font>
|-
{{Pipe}} width = "70%" {{Pipe}} {{{value|}}} [[poko{{#ifeq:{{{value}}}|1||s}}]]|}}{{#if:{{{attacks|}}}|<br>
{{#if:{{{sparklium|}}}|! width="40%" style="background: #eef;" {{!}} [[Sparklium]] value
{{Pipe}}-
{{!}} {{sparklium|{{{sparklium|1}}}}} }}
! width="30%" style="background: #e6e9ff;" {{Pipe}} Attacks
|-
{{Pipe}} width = "70%" {{Pipe}} {{{attacks|}}}|}}
{{#if:{{{drops|}}}|! width="40%" style="background: #eef;" {{!}} Drops
|}<includeonly>{{#ifeq:{{{family}}}|Pikmin|[[Category:Pikmin species]]|{{#ifeq:{{{family}}}|Unknown|[[Category:Creatures with no known family]]|{{#ifeq:{{{family}}}|Unknown family|[[Category:Plants with no known family]]|[[Category:{{{family}}}s]]}}}}}}</includeonly><noinclude>
{{!}} {{{drops|N/A}}}|}}
[[Category:Infobox templates|{{PAGENAME}}]]
|-
 
{{#if:{{{health|}}}|! width="40%" style="background: #eef;" {{!}} Health
{{!}} {{{health|1}}}|}}
|-
{{#if:{{{weakness|}}}|! width="40%" style="background: #eef;" {{!}} Weaknesses
{{!}} {{{weakness|None}}}|}}
|-
{{#if:{{{resistance|}}}|! width="40%" style="background: #eef;" {{!}} Resistances
{{!}} {{{resistance|None}}}|}}
|-
{{#if:{{{attacks|}}}|! width="40%" style="background: #eef;" {{!}} Attacks
{{!}} {{{attacks|None}}}|}}
|}<includeonly>{{#if:{{{nocat|}}}||[[Category:Enemies]]}}</includeonly><noinclude>


{{clear}}


==Info==
This template is to be used at the top of enemy 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 enemy 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 enemy has an icon, specify its image here, extension included. If the icon is a placeholder, place <nowiki>Enemy icon.png</nowiki> here.
|-
! name
| Yes || Unknown || Scientific name.
|-
! family
| No || Unknown || Family name, without the word "family". If the family is unknown, omit it.
|-
! 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 creature's body.
|-
! max_pikmin
| No || 1 || The maximum amount of individual Pikmin that can carry the enemy's body at once.
|-
! seeds
| No || 1 || How many seeds an Onion produces when it absorbs the enemy's body.
|-
! value
| No || 1 || How many [[Poko]]s the creature's body is worth.
|-
! sparklium
| No || 1 || How much [[Sparklium]] the creature drops when defeated.
|-
! drops
| No || N/A || Special items the enemy drops upon death.
|-
! health
| No || 1 || How much health the creature has.
|-
! weakness
| No || None || [[Hazard]]s the enemy may be susceptible to.
|-
! resistance
| No || None || Hazards the enemy may be resistant to.
|-
! attacks
| No || None || The creature's attacks.
|-
! nocat
| No ||  || Giving this a value like "y" makes the template not auto-categorize the enemy.
|}


==Skeleton==
<pre>{{infobox enemy
|customname=
|image=
|size=
|caption=
|icon=
|name=
|family=
|areas=
|underground=
|challenge=
|battle=
|weight=
|max_pikmin=
|seeds=
|value=
|sparklium=
|drops=
|health=
|weakness=
|resistance=
|attacks=
|nocat=y
}}</pre>


 
[[Category:Infobox templates]]</noinclude>
 
 
==Use==
<pre>{{infobox enemy                            *optional field
*|image=image title including extension
*|size=image size
|name=scientific name
|family=family name
|areas=areas found in
*|underground=caves found in
*|challenge=Challenge Mode levels found in
*|weight=weight                          [Use EITHER 'weight' OR
*|weight1=weight in Pikmin 1              'weight1' and 'weight2']
*|weight2=weight in Pikmin 2
*|max_pikmin=max. carriers                [Use EITHER 'max_pikmin' OR
*|max_pikmin1=max. carriers in Pikmin 1    'max_pikmin1' and 'max_pikmin2']
*|max_pikmin2=max. carriers in Pikmin 2
*|seeds=number of seeds released when returned to Onion
*|value=value in Pokos
*|attacks=attacks, 'N/A' if none</pre></noinclude>
{{clear}}

Latest revision as of 14:03, 23 April 2024

Infobox enemy
Scientific name Unknown
Family Unknown

Info

This template is to be used at the top of enemy 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 enemy 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 enemy has an icon, specify its image here, extension included. If the icon is a placeholder, place Enemy icon.png here.
name Yes Unknown Scientific name.
family No Unknown Family name, without the word "family". If the family is unknown, omit it.
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 creature's body.
max_pikmin No 1 The maximum amount of individual Pikmin that can carry the enemy's body at once.
seeds No 1 How many seeds an Onion produces when it absorbs the enemy's body.
value No 1 How many Pokos the creature's body is worth.
sparklium No 1 How much Sparklium the creature drops when defeated.
drops No N/A Special items the enemy drops upon death.
health No 1 How much health the creature has.
weakness No None Hazards the enemy may be susceptible to.
resistance No None Hazards the enemy may be resistant to.
attacks No None The creature's attacks.
nocat No Giving this a value like "y" makes the template not auto-categorize the enemy.

Skeleton

{{infobox enemy
|customname=
|image=
|size=
|caption=
|icon=
|name=
|family=
|areas=
|underground=
|challenge=
|battle=
|weight=
|max_pikmin=
|seeds=
|value=
|sparklium=
|drops=
|health=
|weakness=
|resistance=
|attacks=
|nocat=y
}}