Template:PkmnInfo/doc: Difference between revisions

From PokéFarm Q Official Wiki
Jump to navigation Jump to search
mNo edit summary
(Big update.)
Line 7: Line 7:
{{Note|The template does not display properly with undefined variables. As such, the example displayed has been filled with [[Lunupine]]'s information.}}
{{Note|The template does not display properly with undefined variables. As such, the example displayed has been filled with [[Lunupine]]'s information.}}
{{PkmnInfo
{{PkmnInfo
| head-element = div
| head-element = div <!-- Don't screw with this here or elsewhere. -->
<!--
| pkmnName   = Lunupine
    !IMPORTANT
| type1     = Dark
    The head-element is simply for displaying on the documentation
| expHatch   = 5,120
    so as to avoid adding unnecessarily to the table of contents.
| expGroup   = Medium-Fast (1,000,000)
    It should never be used elsewhere.
| gender     = 1 Male to 1 Female
-->
| eggGroup1 = Field
| pkmnName     = Lunupine
| colour1   = Black
| type1       = Dark
| colour2   = Blue
| expHatch     = 5,120
| body       = Quadruped
| expGroup     = Medium-Fast (1,000,000)
| stats     = {{BaseStats|63|73|50|94|62|120}}
| gender       = 1 Male to 1 Female
| dexEntry   = Lunupine let out melodic howls during the nights of a full moon. It is rarely seen out in the wild.
| eggGroup1   = Field
| nameOrigin = A combination of the Latin ''luna'', meaning moon, and "lupine", derived from the Latin ''lupinus'', meaning wolf.
| colour1     = Black
| colour2     = Blue
| body         = Quadruped
| eggDesc     = A black Egg with yellow marks that resemble a crescent moon. There's a strange vibe about it.
| dexEntry     = Lunupine let out melodic howls during the nights of a full moon. It is rarely seen out in the wild.
| nameOrigin   = A combination of the Latin ''luna'', meaning moon, and ''lupine'', meaning wolf.
}}
}}


Line 49: Line 43:
! style="vertical-align: top; text-align: left" | <h4 style="display: inline; font-weight: normal;"><code>type1</code></h4>
! style="vertical-align: top; text-align: left" | <h4 style="display: inline; font-weight: normal;"><code>type1</code></h4>
| The primary type of the Pokémon. Sometimes used in combination with [[#type2|<span style="font-family:monospace;font-size:initial">type2</span>]].
| The primary type of the Pokémon. Sometimes used in combination with [[#type2|<span style="font-family:monospace;font-size:initial">type2</span>]].
|-
! style="vertical-align: top; text-align: left" | <h4 style="display: inline; font-weight: normal;"><code>expHatch</code></h4>
| The amount of EXP required to hatch the Pokémon's Egg. If the Pokémon is not known to hatch from an Egg, this value should be set to <code>0</code>.
|-
|-
! style="vertical-align: top; text-align: left" | <h4 style="display: inline; font-weight: normal;"><code>expGroup</code></h4>
! style="vertical-align: top; text-align: left" | <h4 style="display: inline; font-weight: normal;"><code>expGroup</code></h4>
Line 79: Line 70:
=== Optional ===
=== Optional ===


The following parameters needn't necessarily be defined in all cases. That being said, if any of the following are applicable to the Pokémon in question, the parameters should be defined using the [[Template:Missing|<nowiki>{{Missing}}</nowiki>]] template.
The following parameters needn't necessarily be defined in all cases.


{| style="margin-left: 36px" |
{| style="margin-left: 36px" |
Line 92: Line 83:
! style="vertical-align: top; text-align: left" | <h4 style="display: inline; font-weight: normal;"><code>eggGroup2</code></h4>
! style="vertical-align: top; text-align: left" | <h4 style="display: inline; font-weight: normal;"><code>eggGroup2</code></h4>
| The secondary Egg Group of the Pokémon. Should always be used in combination with [[#eggGroup1|<span style="font-family:monospace;font-size:initial">eggGroup1</span>]].
| The secondary Egg Group of the Pokémon. Should always be used in combination with [[#eggGroup1|<span style="font-family:monospace;font-size:initial">eggGroup1</span>]].
|-
! style="vertical-align: top; text-align: left" | <h4 style="display: inline; font-weight: normal;"><code>eggDesc</code></h4>
| The Egg Description of the Pokémon. This should be the exact same text that appears in the Pokédex on PFQ. If left undefined while [[#expHatch|<span style="font-family:monospace;font-size:initial">expHatch</span>]] is not set to <code>0</code>, this will display as missing even if the Pokémon does not hatch from an Egg. Not to be confused with [[#dexEntry|<span style="font-family:monospace;font-size:initial">dexEntry</span>]].
|-
|-
! style="vertical-align: top; text-align: left" | <h4 style="display: inline; font-weight: normal;"><code>nameOrigin</code></h4>
! style="vertical-align: top; text-align: left" | <h4 style="display: inline; font-weight: normal;"><code>nameOrigin</code></h4>
| The origin of the Pokémon's name. Under normal circumstances this will likely only apply to [[Exclusive_Pokémon#Exclusives|Fakemon]], as other variants of other Pokémon typically will have the same etymology as their official counterpart(s). Information on potential design influences should not be given here.
| The origin of the Pokémon's name. Under normal circumstances this will likely only apply to [[Exclusive_Pokémon#Exclusives|Fakemon]], as other variants of other Pokémon typically will have the same name origin as their official counterpart(s). Information on potential design influences should not, under any circumstamces, be given here. If the name origin is applicable to the Pokémon in question and is unknown, the parameter should be defined using the [[Template:Missing|<nowiki>{{Missing}}</nowiki>]] template.
|}
|}

Revision as of 03:30, 25 December 2017

Usage

The {{PkmnInfo}} template is used in the "Pokédex Info" section of a Pokémon/evolutionary family's Wiki page. A separate template must be filled out for each member of the evolutionary family.

Example

Note: The template does not display properly with undefined variables. As such, the example displayed has been filled with Lunupine's information.
Lunupine
Lunupine
Shiny Lunupine
Albino Lunupine
Melanistic Lunupine

Lunupine let out melodic howls during the nights of a full moon. It is rarely seen out in the wild.

Type:
Genders: 1 Male to 1 Female
EXP group: Medium-Fast (1,000,000)
Egg group: Field
Colour: Black / Blue
Size: ???
Body style: Quadruped
HP
63
Attack
73
Defence
50
Special Attack
94
Special Defence
62
Speed
120
Total
462

Name origin: A combination of the Latin luna, meaning moon, and "lupine", derived from the Latin lupinus, meaning wolf.

Parameters

Required

The following parameters must be defined at all times. Failure to do so will result in the template displaying improperly.

pkmnName

This value is the bare minimum required for {{PkmnInfo}} to function properly. This should be the name of the Pokémon in question and should include the forme if applicable. In some cases defining fileName may be necessary for the Pokémon's image to display.
  • Example: pkmnName = Oricorio (Pointe Style)

Expected

The following parameters should always be defined, though they may be unavailable. If undefined, they will automatically be filled with a missing template. As such, if information is unavailable, do not fill these parameters with the {{Missing}} template, but instead leave them blank, as there is logic within the template based on whether or not a parameter is defined that has the potential to break the template if an unexpected value is used.

type1

The primary type of the Pokémon. Sometimes used in combination with type2.

expGroup

The EXP Group of the Pokémon. Should be the exact same string as in the Pokédex.
  • Example: expGroup = Medium-Fast (1,000,000)

gender

The gender ratio for the Pokémon. Should be the exact same string as in the Pokédex.
  • Example: gender = 1 Male to 3 Females

eggGroup1

The primary Egg group of the Pokémon. Sometimes used in combination with eggGroup2.

colour1

The normal Pokédex colour of the Pokémon.

colour2

The shiny Pokédex colour of the Pokémon.

body

The body style of the Pokémon.

dexEntry

The Pokédex Entry of the Pokémon. This should be the exact same text that appears in the Pokédex on PFQ. Not to be confused with eggDesc.

Optional

The following parameters needn't necessarily be defined in all cases.

fileName

If the file name of the Pokémon's image does not match pkmnName, set this parameter to the file name, excluding [[File:Pokémon_ and .png]].
  • Example: fileName = Oricorio Pointe

type2

The secondary type of the Pokémon. Should always be used in combination with type1.

eggGroup2

The secondary Egg Group of the Pokémon. Should always be used in combination with eggGroup1.

nameOrigin

The origin of the Pokémon's name. Under normal circumstances this will likely only apply to Fakemon, as other variants of other Pokémon typically will have the same name origin as their official counterpart(s). Information on potential design influences should not, under any circumstamces, be given here. If the name origin is applicable to the Pokémon in question and is unknown, the parameter should be defined using the {{Missing}} template.