Template:Infobox enemy: Difference between revisions

From Pikmin Fanon
mNo edit summary
(Removed unnecessary fields and options, and made changes that will temporarily break numerous pages until rectified. See Template:Infobox info for more information.)
Line 1: Line 1:
{{#if:{{{noicon|}}}||{{#if:{{{nocat|}}}||{{game icons|p1={{{pikmin1|}}}|p2={{{pikmin2|}}}|p3={{{pikmin3|}}}|hp={{{heypik|}}}|pa={{{pikadv|}}}}}}}}}
{| class="infobox" align="right" style="width: 30em; font-size: 82%; text-align: left; border-style: solid; border-width: 2px; border-color: grey"
{| class="infobox" align="right" style="width: 30em; font-size: 82%; text-align: left; border-style: solid; border-width: 2px; border-color: grey"
! class="infoboxTitle" colspan="2" style="font-size: 140%; background: #ccf; text-align: center;" | {{#if:{{{icon|}}} |
! class="infoboxTitle" colspan="2" style="font-size: 140%; background: #ccf; text-align: center;" | {{#if:{{{icon|}}} |
  {{{!}} style = "min-width:100%;"
  {{{!}} style = "min-width:100%;"
  {{!}} style = "vertical-align: middle; padding-left: 32px;" {{!}} ''{{{enemyname|{{PAGENAME}} }}}''
  {{!}} style = "vertical-align: middle; padding-left: 32px;" {{!}} ''{{{customname|{{PAGENAME}} }}}''
  {{!}} style = "width: 32px;" {{!}} [[File:{{{icon|}}}|40px|The icon used to represent this enemy.]]
  {{!}} style = "width: 32px;" {{!}} [[File:{{{icon|}}}|40px|The icon used to represent this enemy.]]
  {{!}}} | ''{{{enemyname|{{PAGENAME}} }}}'' }}
  {{!}}} | ''{{{customname|{{PAGENAME}} }}}'' }}
|-
|-
{{#if:{{{image|}}}|{{!}} colspan="2" style="background: #fff; text-align:center" {{!}} [[File:{{{image|}}}{{#if:{{{size|}}}|{{pipe}}{{{size}}}}}]]|}}
{{#if:{{{image|}}}|{{!}} colspan="2" style="background: #fff; text-align:center" {{!}} [[File:{{{image|}}}{{#if:{{{size|}}}|{{pipe}}{{{size}}}}}]]|}}
Line 14: Line 13:
| {{#if:{{{name|}}}|''{{{name|}}}''|Unknown}}
| {{#if:{{{name|}}}|''{{{name|}}}''|Unknown}}
|-
|-
|-
! width="40%" style="background: #eef;" {{pipe}} Family
{{#if:{{{nofamily|}}}||! width="40%" style="background: #eef;" {{pipe}} Family
{{!}} {{#if:{{{family|}}}|{{{family}}} family|Unknown}}
{{!}} {{#if:{{{nocat|}}}|{{{family}}}|{{#if:{{{family|}}}|{{#if:{{{displayfam|}}}|[[{{{family}}} family|{{{displayfam}}}]]|[[{{{family}}} family|{{{family}}}]]}}{{#if:{{{af|}}}| {{tt|(assumed)|This canon creature's official family is not known but it can only be assumed that this is its family, given that it is so similar to other members.}}}}{{#if:{{{fanfam|}}}| {{tt|(unofficial)|This canon creature's family is fan-made or fan-given, and is not canonical or official.}}}}|Unknown}}}}}}
|-
|-
{{#if:{{{areas|}}}|! width="40%" style="background: #eef;" {{pipe}} [[Area]]s
{{#if:{{{areas|}}}|! width="40%" style="background: #eef;" {{pipe}} [[Area]]s
Line 36: Line 34:
{{!}} {{{seeds|1}}}|}}
{{!}} {{{seeds|1}}}|}}
|-
|-
{{#if:{{{value|}}}|! width="40%" style="background: #eef;" {{pipe}} Poko value
{{#if:{{{value|}}}|! width="40%" style="background: #eef;" {{pipe}} [[Poko]] value
{{!}} {{pokos|{{{value|1}}}}} }}
{{!}} {{pokos|{{{value|}}}}} }}
|-
{{#if:{{{value2|}}}|! width="40%" style="background: #eef;" {{pipe}} {{c|Pikmin 2|P2}} Poko value
{{!}} {{pokos|{{{value2|1}}}}} }}
|-
{{#if:{{{value3|}}}|! width="40%" style="background: #eef;" {{pipe}} {{c|Pikmin 3|P3}} Poko Value
{{!}} [[File:P3 Poko icon.png|10px|link=Poko]] [[File:P3 Soul icon.png|10px|link=pikipedia:Mission Mode]] × {{{value3|1}}} }}
|-
|-
{{#if:{{{sparklium|}}}|! width="40%" style="background: #eef;" {{pipe}} [[Sparklium]] value
{{#if:{{{sparklium|}}}|! width="40%" style="background: #eef;" {{pipe}} [[Sparklium]] value
Line 54: Line 46:
{{!}} {{{attacks|None}}}|}}
{{!}} {{{attacks|None}}}|}}
|-
|-
|}{{#if:{{{nocat|}}}||<includeonly>{{#if:{{{family|}}}|[[Category:{{{family}}} family]]|[[Category:Enemies with no known family]]}}{{#if:{{{af|}}}|[[Category:Enemies with assumed families]]}}{{#if:{{{fanfam|}}}|[[Category:Enemies with fan-made families]]}}{{#if:{{{pikmin1|}}}|[[Category:Pikmin 1 enemies]]}}{{#if:{{{pikmin2|}}}|[[Category:Pikmin 2 enemies]]}}{{#if:{{{pikmin3|}}}|[[Category:Pikmin 3 enemies]]}}{{#if:{{{heypik|}}}|[[Category:Hey! Pikmin enemies]]}}{{#if:{{{pikadv|}}}|[[Category:Pikmin Adventure enemies]]}}{{#if:{{{icon|}}}||[[Category:Enemies]]}}</includeonly>}}<noinclude>
|}<includeonly>{{#if:{{{icon|}}}||[[Category:Enemies]]}}</includeonly><noinclude>


{{clear}}
{{clear}}
Line 60: Line 52:
==Info==
==Info==
This template is to be used at the top of enemy pages. It places an information box on the top-right corner of the page.
This template is to be used at the top of enemy pages. It places an information box on the top-right corner of the page.
Pages with this template are automatically categorized on the corresponding categories: [[:Category:Pikmin 1 enemies|Pikmin 1 enemies]], [[:Category:Pikmin 2 enemies|Pikmin 2 enemies]], [[:Category:Pikmin 3 enemies|Pikmin 3 enemies]], [[:Category:Pikmin Adventure enemies|Pikmin Adventure enemies]], and [[:Category:Hey! Pikmin enemies|Hey! Pikmin enemies]].


==Parameters==
==Parameters==
Line 67: Line 57:
! Parameter || Mandatory || Default || Detailed description
! Parameter || Mandatory || Default || Detailed description
|-
|-
! pikmin1
! customname
| No ||  || If this enemy appears in ''Pikmin'', give this a value like "y".
|-
! pikmin2
| No ||  || Same as above, but ''Pikmin 2''.
|-
! pikmin3
| No ||  || Same as above, but ''Pikmin 3''.
|-
! heypik
| No ||  || Same as above, but ''Hey! Pikmin''.
|-
! pikadv
| No ||  || Same as above, but ''Pikmin Adventure''.
|-
! enemyname
| No || ''<nowiki>{{PAGENAME}}</nowiki>'' || If the name of the enemy is different from the title of the page, specify it here.
| No || ''<nowiki>{{PAGENAME}}</nowiki>'' || If the name of the enemy is different from the title of the page, specify it here.
|-
|-
Line 101: Line 76:
|-
|-
! family
! family
| No || Unknown || Family name, without the word "family". If the family is unknown, omit it. If nocat is defined, then nofamily should be also, if the family is unknown.
| No || Unknown || Family name, without the word "family". If the family is unknown, omit it.
|-
! displayfam
|No || || Displayed family name. If the enemy is part of a family but displaying the family with a different name is desired, type it here.
|-
! af
| No ||  || Assumed family. If the creature's family is not official, but rather, an assumption, give this a value, like "y".
|-
! fanfam
| No ||  || Fan-made family. If the creature's family is fan-made, give this a value, like "y".
|-
|-
! areas
! areas
Line 132: Line 98:
! value
! value
| No || 1 || How many [[Poko]]s the creature's body is worth.
| No || 1 || How many [[Poko]]s the creature's body is worth.
|-
! value2
| No || 1 || How many [[Poko]]s the creature's body is worth in ''{{c|Pikmin 2}}''.
|-
! value3
| No || 1 || How many [[Poko]]s the creature's body is worth in ''{{c|Pikmin 3}}''.
|-
|-
! sparklium
! sparklium
| No || 1 || How much sparklium the creature drops when defeated in ''{{c|Hey! Pikmin}}''.
| No || 1 || How much [[Sparklium]] the creature drops when defeated.
|-
|-
! health
! health
Line 147: Line 107:
! attacks
! attacks
| No || None || The creature's attacks.
| No || None || The creature's attacks.
|-
! noicon
| No ||  || Giving this a value like "y" disables the display of game icons, to avoid conflicts with other templates.
|-
! nocat
| No ||  || Giving this a value like "y" makes the template not auto-categorize the creature (for instance, for objects that aren't enemies, like eggs).
|-
! nofamily
| No ||  || Giving this a value like "y hides the family attribute (for instance, for objects that aren't enemies, like eggs).
|}
|}


==Skeleton==
==Skeleton==
<pre>{{infobox enemy
<pre>{{infobox enemy
|pikmin1=
|customname=
|pikmin2=
|pikmin3=
|heypik=
|pikadv=
|enemyname=
|image=
|image=
|size=
|size=
Line 172: Line 118:
|name=
|name=
|family=
|family=
|displayfam=
|af=
|fanfam=
|areas=
|areas=
|underground=
|underground=
Line 182: Line 125:
|seeds=
|seeds=
|value=
|value=
|value2=
|value3=
|sparklium=
|sparklium=
|health=
|health=
|attacks=
|attacks=
|noicon=
|nocat=
|nofamily=
}}</pre>
}}</pre>


[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]</noinclude>

Revision as of 21:16, 20 January 2022

Infobox enemy
width="40%" style="background: #eef;" Template:Pipe Scientific name Unknown
width="40%" style="background: #eef;" Template:Pipe Family Unknown

Info

This template is to be used at the top of enemy pages. 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 Dummy 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 levels in which it appears.
weight No 1 The weight of the creature's body. If this is being applied to a canon enemy, use its most up-to-date carry weight.
max_pikmin No 1 The maximum amount of individual Pikmin that can carry the enemy's body at once. If this is being applied to a canon enemy, use its most up-to-date max Pikmin count.
seeds No 1 How many seeds an Onion produces when it absorbs the enemy's body. If this is being applied to a canon enemy, use its most up-to-date seed count.
value No 1 How many Pokos the creature's body is worth.
sparklium No 1 How much Sparklium the creature drops when defeated.
health No 1 How much health the creature has.
attacks No None The creature's attacks.

Skeleton

{{infobox enemy
|customname=
|image=
|size=
|caption=
|icon=
|name=
|family=
|areas=
|underground=
|challenge=
|weight=
|max_pikmin=
|seeds=
|value=
|sparklium=
|health=
|attacks=
}}