Template:Infobox enemy: Difference between revisions

From Pikmin Fanon
No edit summary
(I am about to break the wiki. Hold on tight!)
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: 27em; font-size: 82%; text-align: left; border-style: solid; border-width: 1px; border-color: grey"
{| class="infobox" align="right" style="width: 27em; 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;" | ''{{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;" {{!}} ''{{{enemyname|{{PAGENAME}} }}}''
{{!}} style = "width: 32px;" {{!}} [[File:{{{icon}}}|40px|{{#if:{{{dummyicon|}}}|The icon for this enemy hasn't yet been created.|The icon used to represent this enemy.}}]]
{{!}}} | ''{{{enemy_name|{{PAGENAME}} }}}'' }}
|-
|-
! colspan="2" style="background: #fff; text-align: center;" | {{#if:{{{image|}}}|[[Image:{{{image|}}}{{#if: {{{size|}}}|{{pipe}}{{{size}}}}}]]|}}
! colspan="2" style="background: #fff; text-align: center;" | {{#if:{{{image|}}}|[[Image:{{{image|}}}{{#if: {{{size|}}}|{{pipe}}{{{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="42%" style="background: #e6e9ff;" {{Pipe}} Scientific name
| width = "70%" | [[{{{family}}} family|{{{family}}}]]
| {{#if:{{{name|}}}|''{{{name|}}}''|Unknown}}
|-
|-
! width="30%" style="background: #e6e9ff;" | [[Area]]s
{{#if:{{{nofamily|}}}||! width="42%" style="background: #e6e9ff;" {{Pipe}} Family
| width = "70%" | {{{areas}}}{{#if:{{{underground|}}}|<br>
{{!}} {{#if:{{{nocat|}}}|{{{family}}}|{{#if:{{{family|}}}|[[{{{family}}} family|{{{family}}}]]{{#if:{{{af|}}}|&nbsp;{{tt|(assumed)|This 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.}}}}|Unknown}}}}}}
{{Pipe}}-
|-
! width="30%" style="background: #e6e9ff;" {{Pipe}} [[Cave{{Pipe}}Underground Areas]]
! width="42%" style="background: #e6e9ff;" {{Pipe}} [[Area]]s
{{Pipe}} width = "70%" {{Pipe}} {{{underground|}}}|}}{{#if:{{{challenge|}}}|<br>
{{!}} {{{areas|None}}}
{{Pipe}}-
|-
! width="30%" style="background: #e6e9ff;" {{Pipe}} [[Cave{{Pipe}}Challenge Mode Levels]]
! width="42%" style="background: #e6e9ff;" {{Pipe}} [[Cave]]s
{{Pipe}} width = "70%" {{Pipe}} {{{challenge|}}}|}}{{#if:{{{weight|}}}|<br>
{{!}} {{{caves|None}}}
{{Pipe}}-
|-
! width="30%" style="background: #e6e9ff;" {{Pipe}} Carry Weight
{{#if:{{{weight|}}}|! width="42%" style="background: #e6e9ff;" {{Pipe}} Carry Weight
{{Pipe}} width = "70%" {{Pipe}} {{{weight|}}}|}}{{#if:{{{weight1|}}}|<br>
{{!}} {{{weight|1}}}|}}
{{Pipe}}-
|-
! width="30%" style="background: #e6e9ff;" {{Pipe}} Carry Weight
{{#if:{{{maxpikmin|}}}|! width="42%" style="background: #e6e9ff;" {{Pipe}} Max. Carriers
{{Pipe}} width = "70%" {{Pipe}} {{{weight1|}}} in ''Pikmin''
{{!}} {{{maxpikmin|1}}}|}}
{{{weight2|}}} in ''Pikmin 2''|}}{{#if:{{{max_pikmin|}}}|<br>
|-
{{Pipe}}-
{{#if:{{{seeds|}}}|! width="42%" style="background: #e6e9ff;" {{Pipe}} Seed Worth
! width="30%" style="background: #e6e9ff;" {{Pipe}} Max. Carriers
{{!}} {{{seeds|1}}}|}}
{{Pipe}} width = "70%" {{Pipe}} {{{max_pikmin|}}} Pikmin|}}{{#if:{{{max_pikmin1|}}}|<br>
|-
{{Pipe}}-
{{#if:{{{value|}}}|! width="42%" style="background: #e6e9ff;" {{Pipe}} Poko Value
! width="30%" style="background: #e6e9ff;" {{Pipe}} Max. Carriers
{{!}} {{{value|1}}} [[Poko|Pokos]]|}}
{{Pipe}} width = "70%" {{Pipe}} {{{max_pikmin1|}}} Pikmin in ''Pikmin''
|-
{{{max_pikmin2|}}} Pikmin in ''Pikmin 2''|}}{{#if:{{{seeds|}}}|<br>
{{#if:{{{attacks|}}}|! width="42%" style="background: #e6e9ff;" {{Pipe}} Attacks
{{Pipe}}-
{{!}} {{{attacks|None}}}|}}
! width="30%" style="background: #e6e9ff;" {{Pipe}} Seed Worth
|-
{{Pipe}} width = "70%" {{Pipe}} {{{seeds|}}}|}}{{#if:{{{value|}}}|<br>
|}{{#if:{{{nocat|}}}||<includeonly>{{#if:{{{family|}}}|[[Category:{{{family}}} family]]|[[Category:Creatures with no known family]]}}{{#if:{{{af|}}}|[[Category:Enemies with assumed 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]]}}</includeonly>}}<noinclude>
{{Pipe}}-
! width="30%" style="background: #e6e9ff;" {{Pipe}} Value
{{Pipe}} width = "70%" {{Pipe}} {{{value|}}} [[Poko{{#ifeq:{{{value}}}|1||s}}]]|}}{{#if:{{{attacks|}}}|<br>
{{Pipe}}-
! width="30%" style="background: #e6e9ff;" {{Pipe}} Attacks
{{Pipe}} width = "70%" {{Pipe}} {{{attacks|}}}|}}
|}<includeonly>[[Category:Enemies]]
{{#ifeq:{{{family}}}|Pikmin|[[Category:Pikmin Family]]|{{#ifeq:{{{family}}}|Unknown|[[Category:Creatures with no known family]]|{{#ifeq:{{{family}}}|Unknown family|[[Category:Plants with no known family]]|[[Category:{{{family}}}s]]}}}}}}</includeonly><noinclude>
[[Category:Infobox templates|{{PAGENAME}}]]


{{clear}}
{{clear}}


==Use==
==Info==
<pre>{{infobox enemy                             *optional field
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.
*|image=image title including extension
 
*|size=image size
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]], [[:Category:Hey! Pikmin enemies|Hey! Pikmin enemies]], or the equivalent [[:Category:Vegetation|plant categories]].
|name=scientific name
 
|family=family name
==Parameters==
|areas=areas found in
{| class = "wikitable"
*|underground=caves found in
! Parameter || Mandatory || Default || Detailed description
*|challenge=Challenge Mode levels found in
|-
*|weight=weight                           [Use EITHER 'weight' OR
! pikmin1
*|weight1=weight in Pikmin               'weight1' and 'weight2']
| No ||  || If this enemy appears in ''Pikmin'', give this a value like "y".
*|weight2=weight in Pikmin 2
|-
*|max_pikmin=max. carriers                [Use EITHER 'max_pikmin' OR
! pikmin2
*|max_pikmin1=max. carriers in Pikmin    'max_pikmin1' and 'max_pikmin2']
| No ||  || Same as above, but ''Pikmin 2''.
*|max_pikmin2=max. carriers in Pikmin 2
|-
*|seeds=number of seeds released when returned to Onion
! pikmin3
*|value=value in Pokos
| No ||  || Same as above, but ''Pikmin 3''.
*|attacks=attacks, 'N/A' if none
|-
}}</pre></noinclude>
! heypik
| No ||  || Same as above, but ''Hey! Pikmin''.
|-
! pikadv
| No ||  || Same as above, but ''Pikmin Adventure''.
|-
! plant
| No ||  || If this is actually a plant or fungus (e.g. [[Pellet Posy]]), give this a value like "y".
|-
! enemyname
| 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.
|-
! dummyicon
| No ||  || If the icon for this enemy is a placeholder, give this a value like "y".
|-
! name
| No || Unknown || Scientific name.
|-
! family
| No || Unknown || Family name, without the word "family". If the family is unknown, omit. If nocat is defined, then nofamily should be also, if the family is unknown.
|-
! af
| No ||  || Assumed family. If the creature's family is not official, but rather, an assumption, give this a value, like "y".
|-
! areas
| No || None || Areas in which it appears.
|-
! caves
| No || None || Caves in which it appears.
|-
! weight
| No || 1 || The weight of the creature's body.
|-
! maxpikmin
| 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.
|-
! 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).
|}
 
<references />
 
==Skeleton==
<pre>{{infobox enemy
|pikmin1      =
|pikmin2    =
|pikmin3    =
|heypik  =
|pikadv      =
|plant      =
|enemyname  =
|image      =
|size        =
|caption    =
|image2      =
|image3      =
|imagetitle  =
|image2title =
|image3title =
|icon        =
|dummyicon =
|name        =
|family      =
|af          =
|areas      =
|caves        =
|weight      =
|maxpikmin =
|seeds       =
|value     =
|attacks     = 
|noicon    =
|nocat      =
|nofamily    =  
}}</pre>
[[Category:Infobox templates]]</noinclude>

Revision as of 20:18, 25 February 2020

Infobox enemy
width="42%" style="background: #e6e9ff;" Template:Pipe Scientific name Unknown
width="42%" style="background: #e6e9ff;" Template:Pipe Family Unknown
width="42%" style="background: #e6e9ff;" Template:Pipe Areas None
width="42%" style="background: #e6e9ff;" Template:Pipe Caves None

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.

Pages with this template are automatically categorized on the corresponding categories: Pikmin 1 enemies, Pikmin 2 enemies, Pikmin 3 enemies, Pikmin Adventure enemies, Hey! Pikmin enemies, or the equivalent plant categories.

Parameters

Parameter Mandatory Default Detailed description
pikmin1 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.
plant No If this is actually a plant or fungus (e.g. Pellet Posy), give this a value like "y".
enemyname 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.
dummyicon No If the icon for this enemy is a placeholder, give this a value like "y".
name No Unknown Scientific name.
family No Unknown Family name, without the word "family". If the family is unknown, omit. If nocat is defined, then nofamily should be also, if the family is unknown.
af No Assumed family. If the creature's family is not official, but rather, an assumption, give this a value, like "y".
areas No None Areas in which it appears.
caves No None Caves in which it appears.
weight No 1 The weight of the creature's body.
maxpikmin 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.
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

{{infobox enemy
|pikmin1      = 
|pikmin2     = 
|pikmin3     = 
|heypik  = 
|pikadv      =
|plant       = 
|enemyname  = 
|image       = 
|size        = 
|caption     = 
|image2      = 
|image3      = 
|imagetitle  = 
|image2title = 
|image3title = 
|icon        = 
|dummyicon = 
|name        = 
|family      = 
|af          = 
|areas       = 
|caves        = 
|weight      =
|maxpikmin =
|seeds       =
|value     =
|attacks     =  
|noicon     = 
|nocat       = 
|nofamily    = 
}}