Template:PkmnInfo: Difference between revisions

From PokéFarm Q Official Wiki
Jump to navigation Jump to search
m (I promise I'm not an HTML noob lol)
No edit summary
Line 6: Line 6:
--><div class="PkmnInfo" style="border: 1px solid #cf8b54; width: 100%; margin: 8px 0; background-color: #fcfcfc; "><{{{head-element|h6}}} style="font-size: 16pt; background-color: #cf8b54; color: #ffffff; padding: 0 4px; font-weight: bold; margin: 0;">{{{pkmnName}}}</{{{head-element|h6}}}><!--
--><div class="PkmnInfo" style="border: 1px solid #cf8b54; width: 100%; margin: 8px 0; background-color: #fcfcfc; "><{{{head-element|h6}}} style="font-size: 16pt; background-color: #cf8b54; color: #ffffff; padding: 0 4px; font-weight: bold; margin: 0;">{{{pkmnName}}}</{{{head-element|h6}}}><!--
-----  MAIN CONTENT STYLING  -----
-----  MAIN CONTENT STYLING  -----
--><div style="border-radius: 6px; background-color: #C1D091; color: #004000; padding: 5px; box-sizing: border-box; text-align: center; border-radius: 8px;"><!--
--><div style="border-radius: 6px; background-color: #f0f0f0; color: #004000; padding: 5px; box-sizing: border-box; text-align: center; border-radius: 8px;"><!--
----- /MAIN CONTENT STYLING  -----
----- /MAIN CONTENT STYLING  -----
   --><div style="  display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; -ms-flex-wrap: wrap; flex-wrap: wrap; justify-content: center;"><!--
   --><div style="  display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; -ms-flex-wrap: wrap; flex-wrap: wrap; justify-content: center;"><!--
     ------  POKÉMON SPRITE BOX  ------
     ------  POKÉMON SPRITE BOX  ------
     --><div style="display: inline-block; box-sizing: content-box; width: 130px;"><!--
     --><div style="display: inline-block; box-sizing: content-box; width: 130px;"><!--
       --><div style="display: inline-block; width: 100px; background-color: #E2FFCD; height: 100px; border: 1px solid #9EC690; border-radius: 6px; padding: 11px; position: relative; box-sizing: content-box; overflow: hidden; margin: 3px; text-align: center; line-height: 100px;"><!--
       --><div style="display: inline-block; width: 100px; background-color: #ffffff; height: 100px; border: 1px solid #9EC690; border-radius: 6px; padding: 11px; position: relative; box-sizing: content-box; overflow: hidden; margin: 3px; text-align: center; line-height: 100px;"><!--
         --><div style=""><!--
         --><div style=""><!--
           --><div style=""><!--
           --><div style=""><!--
Line 20: Line 20:
       -------- TYPE BOX -----
       -------- TYPE BOX -----
       --><div style="box-sizing: border-box; display: inline-block; vertical-align: top; margin: 0 3px 3px 3px; min-width: 124px;"><!--
       --><div style="box-sizing: border-box; display: inline-block; vertical-align: top; margin: 0 3px 3px 3px; min-width: 124px;"><!--
         --><div style="border: 1px solid #9EC690; background-color: #D2E8AF; color: #004000; border-radius: 6px 6px 0 0; font-size: 11pt; font-weight: bold; padding: 1px 2px 0px 2px;"><!--
         --><div style="border: 1px solid #9EC690; background-color: #cf8b54; color: #004000; border-radius: 6px 6px 0 0; font-size: 11pt; font-weight: bold; padding: 1px 2px 0px 2px;"><!--
           -->Type{{#if:{{{type2|}}}|s|}}<!--
           -->Type{{#if:{{{type2|}}}|s|}}<!--
         --></div><!--
         --></div><!--
         --><div style="border: 1px solid #9EC690; border-width: 0 1px 1px 1px; border-radius: 0 0 6px 6px; background-color: #E2FFCD; padding: 0 4px 4px 4px;"><!--
         --><div style="border: 1px solid #9EC690; border-width: 0 1px 1px 1px; border-radius: 0 0 6px 6px; background-color: #ffffff; padding: 0 4px 4px 4px;"><!--
           -->{{#if:{{{type1|}}}|[[File:Type_{{{type1}}}.png]]{{#if:{{{type2|}}}|&nbsp;[[File:Type_{{{type2}}}.png]]|}}|{{Missing|{{{pkmnName}}}'s Type.}}}}<!--
           -->{{#if:{{{type1|}}}|[[File:Type_{{{type1}}}.png]]{{#if:{{{type2|}}}|&nbsp;[[File:Type_{{{type2}}}.png]]|}}|{{Missing|{{{pkmnName}}}'s Type.}}}}<!--
         --></div><!--
         --></div><!--
Line 31: Line 31:
     -------- EXP TO HATCH -----
     -------- EXP TO HATCH -----
     --><div style="display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; -ms-flex-wrap: wrap; flex-wrap: wrap; -webkit-box-align: stretch; -ms-flex-align: stretch; align-items: stretch; -ms-flex-pack: distribute; justify-content: space-around; max-width: 390px; vertical-align: top;"><!--
     --><div style="display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; -ms-flex-wrap: wrap; flex-wrap: wrap; -webkit-box-align: stretch; -ms-flex-align: stretch; align-items: stretch; -ms-flex-pack: distribute; justify-content: space-around; max-width: 390px; vertical-align: top;"><!--
       --><div style="border: 1px solid #9EC690; border-radius: 6px; background-color: #E2FFCD; margin: 3px; width: 122px;"><!--
       --><div style="border: 1px solid #9EC690; border-radius: 6px; background-color: #ffffff; margin: 3px; width: 122px;"><!--
         --><div style="border-bottom: 1px solid #9EC690; background-color: #D2E8AF; color: #004000; border-radius: 5px 5px 0 0; font-size: 11pt; font-weight: bold; padding: 2px 0 0;">EXP to Hatch</div><!--
         --><div style="border-bottom: 1px solid #9EC690; background-color: #cf8b54; color: #004000; border-radius: 5px 5px 0 0; font-size: 11pt; font-weight: bold; padding: 2px 0 0;">EXP to Hatch</div><!--
         --><div style="border-radius: 0 0 5px 5px; background-color: #E2FFCD; padding: 4px;">{{#ifeq: {{{expHatch|}}} | 0 | <span style="opacity:0.37;font-style:italic">Cannot be hatched.</span> | {{{expHatch|{{Missing|The amount of EXP required to hatch a(n) {{{pkmnName}}} Egg}}}}}}}</div><!--
         --><div style="border-radius: 0 0 5px 5px; background-color: #ffffff; padding: 4px;">{{#ifeq: {{{expHatch|}}} | 0 | <span style="opacity:0.37;font-style:italic">Cannot be hatched.</span> | {{{expHatch|{{Missing|The amount of EXP required to hatch a(n) {{{pkmnName}}} Egg}}}}}}}</div><!--
       --></div><!--
       --></div><!--
       --><div style="border: 1px solid #9EC690; border-radius: 6px; background-color: #E2FFCD; margin: 3px; width: 122px;"><!--
       --><div style="border: 1px solid #9EC690; border-radius: 6px; background-color: #ffffff; margin: 3px; width: 122px;"><!--
         --><div style="border-bottom: 1px solid #9EC690; background-color: #D2E8AF; color: #004000; border-radius: 5px 5px 0 0; font-size: 11pt; font-weight: bold; padding: 2px 0 0;">EXP Group</div><!--
         --><div style="border-bottom: 1px solid #9EC690; background-color: #cf8b54; color: #004000; border-radius: 5px 5px 0 0; font-size: 11pt; font-weight: bold; padding: 2px 0 0;">EXP Group</div><!--
         --><div style="border-radius: 0 0 5px 5px; background-color: #E2FFCD; padding: 4px;">{{{expGroup|{{Missing|{{{pkmnName}}}'s EXP group.}}}}}</div><!--
         --><div style="border-radius: 0 0 5px 5px; background-color: #ffffff; padding: 4px;">{{{expGroup|{{Missing|{{{pkmnName}}}'s EXP group.}}}}}</div><!--
       --></div><!--
       --></div><!--
       --><div style="border: 1px solid #9EC690; border-radius: 6px; background-color: #E2FFCD; margin: 3px; width: 122px;"><!--
       --><div style="border: 1px solid #9EC690; border-radius: 6px; background-color: #ffffff; margin: 3px; width: 122px;"><!--
         --><div style="border-bottom: 1px solid #9EC690; background-color: #D2E8AF; color: #004000; border-radius: 5px 5px 0 0; font-size: 11pt; font-weight: bold; padding: 2px 0 0;">Gender Ratio</div><!--
         --><div style="border-bottom: 1px solid #9EC690; background-color: #cf8b54; color: #004000; border-radius: 5px 5px 0 0; font-size: 11pt; font-weight: bold; padding: 2px 0 0;">Gender Ratio</div><!--
         --><div style="border-radius: 0 0 5px 5px; background-color: #E2FFCD; padding: 4px;">{{{gender|{{Missing|{{{pkmnName}}}'s gender ratio.}}}}}</div><!--
         --><div style="border-radius: 0 0 5px 5px; background-color: #ffffff; padding: 4px;">{{{gender|{{Missing|{{{pkmnName}}}'s gender ratio.}}}}}</div><!--
       --></div><!--
       --></div><!--
       --><div style="border: 1px solid #9EC690; border-radius: 6px; background-color: #E2FFCD; margin: 3px; width: 122px;">
       --><div style="border: 1px solid #9EC690; border-radius: 6px; background-color: #ffffff; margin: 3px; width: 122px;">
<div style="border-bottom: 1px solid #9EC690; background-color: #D2E8AF; color: #004000; border-radius: 5px 5px 0 0; font-size: 11pt; font-weight: bold; padding: 2px 0 0;">Egg Group{{#if:{{{eggGroup2|}}}|s|}}</div>
<div style="border-bottom: 1px solid #9EC690; background-color: #cf8b54; color: #004000; border-radius: 5px 5px 0 0; font-size: 11pt; font-weight: bold; padding: 2px 0 0;">Egg Group{{#if:{{{eggGroup2|}}}|s|}}</div>
<div style="border-radius: 0 0 5px 5px; background-color: #E2FFCD; padding: 4px;">{{#if:{{{eggGroup1|}}}|{{{eggGroup1}}}{{#if:{{{eggGroup2|}}}|<br />{{{eggGroup2}}}|}}|{{Missing|{{{pkmnName}}}'s Egg Group.}}}}</div><!--
<div style="border-radius: 0 0 5px 5px; background-color: #ffffff; padding: 4px;">{{#if:{{{eggGroup1|}}}|{{{eggGroup1}}}{{#if:{{{eggGroup2|}}}|<br />{{{eggGroup2}}}|}}|{{Missing|{{{pkmnName}}}'s Egg Group.}}}}</div><!--
       --></div><!--
       --></div><!--
       --><div style="border: 1px solid #9EC690; border-radius: 6px; background-color: #E2FFCD; margin: 3px; width: 122px;"><!--
       --><div style="border: 1px solid #9EC690; border-radius: 6px; background-color: #ffffff; margin: 3px; width: 122px;"><!--
         --><div style="border-bottom: 1px solid #9EC690; background-color: #D2E8AF; color: #004000; border-radius: 5px 5px 0 0; font-size: 11pt; font-weight: bold; padding: 2px 0 0;">Colour</div><!--
         --><div style="border-bottom: 1px solid #9EC690; background-color: #cf8b54; color: #004000; border-radius: 5px 5px 0 0; font-size: 11pt; font-weight: bold; padding: 2px 0 0;">Colour</div><!--
         --><div style="border-radius: 0 0 5px 5px; background-color: #E2FFCD;"><table style="display: inline-block; text-align: left;"><tr><td><span style="display: inline-block; width: 1em; height: 1em; vertical-align: text-top; border: 1px solid #9ec690; border-radius: 4px;{{#if: {{{colour1|}}} | background-color: {{{colour1}}} |}}"></span>&nbsp;{{#if:{{{colour1|}}}|{{{colour1}}}|{{Missing|{{{pkmnName}}}'s normal Pokédex Colour.}}}}</td></tr><tr><td><span style="display: inline-block; width: 1em; height: 1em; vertical-align: text-top; border: 1px solid #9ec690; border-radius: 4px;{{#if: {{{colour2|}}} | background-color: {{{colour2}}} |}}"></span>&nbsp;{{#if:{{{colour2|}}}|{{{colour2}}}|{{Missing|{{{pkmnName}}}'s Shiny Pokédex Colour.}}}}</td></tr></table></div><!--
         --><div style="border-radius: 0 0 5px 5px; background-color: #ffffff;"><table style="display: inline-block; text-align: left;"><tr><td><span style="display: inline-block; width: 1em; height: 1em; vertical-align: text-top; border: 1px solid #9ec690; border-radius: 4px;{{#if: {{{colour1|}}} | background-color: {{{colour1}}} |}}"></span>&nbsp;{{#if:{{{colour1|}}}|{{{colour1}}}|{{Missing|{{{pkmnName}}}'s normal Pokédex Colour.}}}}</td></tr><tr><td><span style="display: inline-block; width: 1em; height: 1em; vertical-align: text-top; border: 1px solid #9ec690; border-radius: 4px;{{#if: {{{colour2|}}} | background-color: {{{colour2}}} |}}"></span>&nbsp;{{#if:{{{colour2|}}}|{{{colour2}}}|{{Missing|{{{pkmnName}}}'s Shiny Pokédex Colour.}}}}</td></tr></table></div><!--
       --></div><!--
       --></div><!--
       --><div style="border: 1px solid #9EC690; border-radius: 6px; background-color: #E2FFCD; margin: 3px; width: 122px;"><!--
       --><div style="border: 1px solid #9EC690; border-radius: 6px; background-color: #ffffff; margin: 3px; width: 122px;"><!--
         --><div style="border-bottom: 1px solid #9EC690; background-color: #D2E8AF; color: #004000; border-radius: 5px 5px 0 0; font-size: 11pt; font-weight: bold; padding: 2px 0 0;">Body Style</div><!--
         --><div style="border-bottom: 1px solid #9EC690; background-color: #cf8b54; color: #004000; border-radius: 5px 5px 0 0; font-size: 11pt; font-weight: bold; padding: 2px 0 0;">Body Style</div><!--
         --><div style="border-radius: 0 0 5px 5px; background-color: #E2FFCD; padding: 4px;">{{#if:{{{body|}}}|[[File:Body_Style_{{{body}}}.png|{{{body}}}]]|{{Missing|{{{pkmnName}}}'s Body Style.}}}}</div><!--
         --><div style="border-radius: 0 0 5px 5px; background-color: #ffffff; padding: 4px;">{{#if:{{{body|}}}|[[File:Body_Style_{{{body}}}.png|{{{body}}}]]|{{Missing|{{{pkmnName}}}'s Body Style.}}}}</div><!--
       --></div><!--
       --></div><!--
     --></div><!--
     --></div><!--
Line 59: Line 59:
     --><div style="display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; vertical-align: top; box-sizing: content-box; max-width: 520px; flex-direction: column;"><!--
     --><div style="display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; vertical-align: top; box-sizing: content-box; max-width: 520px; flex-direction: column;"><!--
       -------- EGG DESCRIPTION -----
       -------- EGG DESCRIPTION -----
       --><div style="margin: 3px; border: 1px solid #9EC690; background-color: #E2FFCD; border-radius: 6px;"><!--
       --><div style="margin: 3px; border: 1px solid #9EC690; background-color: #ffffff; border-radius: 6px;"><!--
     --><div style="border-bottom: 1px solid #9EC690; background-color: #D2E8AF; color: #004000; border-radius: 5px 5px 0 0; font-size: 11pt; font-weight: bold; padding: 2px 0 0;"><!--
     --><div style="border-bottom: 1px solid #9EC690; background-color: #cf8b54; color: #004000; border-radius: 5px 5px 0 0; font-size: 11pt; font-weight: bold; padding: 2px 0 0;"><!--
       -->Egg Description<!--
       -->Egg Description<!--
     --></div><!--
     --></div><!--
     --><div style="border-radius: 5px; background-color: #E2FFCD; padding: 2px 4px; text-align: left;"><!--
     --><div style="border-radius: 5px; background-color: #ffffff; padding: 2px 4px; text-align: left;"><!--
       -->{{#ifeq: {{{expHatch|}}} | 0 | <span style="opacity:0.37">''This Pokémon is not known to hatch from an Egg.''</span> | {{{eggDesc| {{Missing|{{{pkmnName}}}'s Egg Description.}} }}} }}<!--
       -->{{#ifeq: {{{expHatch|}}} | 0 | <span style="opacity:0.37">''This Pokémon is not known to hatch from an Egg.''</span> | {{{eggDesc| {{Missing|{{{pkmnName}}}'s Egg Description.}} }}} }}<!--
     --></div><!--
     --></div><!--
   --></div><!--
   --></div><!--
       -------- POKÉDEX ENTRY -----
       -------- POKÉDEX ENTRY -----
       --><div style="margin: 3px; border: 1px solid #9EC690; background-color: #E2FFCD; border-radius: 6px;"><!--
       --><div style="margin: 3px; border: 1px solid #9EC690; background-color: #ffffff; border-radius: 6px;"><!--
     --><div style="border-bottom: 1px solid #9EC690; background-color: #D2E8AF; color: #004000; border-radius: 5px 5px 0 0; font-size: 11pt; font-weight: bold; padding: 2px 0 0;"><!--
     --><div style="border-bottom: 1px solid #9EC690; background-color: #cf8b54; color: #004000; border-radius: 5px 5px 0 0; font-size: 11pt; font-weight: bold; padding: 2px 0 0;"><!--
       -->Pokédex Entry<!--
       -->Pokédex Entry<!--
     --></div><!--
     --></div><!--
     --><div style="border-radius: 5px; background-color: #E2FFCD; padding: 2px 4px; text-align: left;"><!--
     --><div style="border-radius: 5px; background-color: #ffffff; padding: 2px 4px; text-align: left;"><!--
     -->{{{dexEntry| {{Missing|{{{pkmnName}}}'s Pokédex Entry.}} }}}<!--
     -->{{{dexEntry| {{Missing|{{{pkmnName}}}'s Pokédex Entry.}} }}}<!--
     --></div><!--
     --></div><!--
Line 78: Line 78:
   -------- END OF DEX INFO -----><!--
   -------- END OF DEX INFO -----><!--
   + ETYMOLOGY +
   + ETYMOLOGY +
   --><div style="margin: 3px; border: 1px solid #9EC690; background-color: #E2FFCD; border-radius: 6px; {{#if: {{{etymology|}}} | | display: none; }}"><!--
   --><div style="margin: 3px; border: 1px solid #9EC690; background-color: #ffffff; border-radius: 6px; {{#if: {{{etymology|}}} | | display: none; }}"><!--
     --><div style="border-bottom: 1px solid #9EC690; background-color: #D2E8AF; color: #004000; border-radius: 5px 5px 0 0; font-size: 11pt; font-weight: bold; padding: 2px 0 0;"><!--
     --><div style="border-bottom: 1px solid #9EC690; background-color: #cf8b54; color: #004000; border-radius: 5px 5px 0 0; font-size: 11pt; font-weight: bold; padding: 2px 0 0;"><!--
       -->Etymology<!--
       -->Etymology<!--
     --></div><!--
     --></div><!--
     --><div style="border-radius: 5px; background-color: #E2FFCD; padding: 2px 4px; text-align: left;">{{{etymology}}}</div><!--
     --><div style="border-radius: 5px; background-color: #ffffff; padding: 2px 4px; text-align: left;">{{{etymology}}}</div><!--
   --></div><!--
   --></div><!--
--></div></div></div></div><!----
--></div></div></div></div><!----

Revision as of 12:32, 17 November 2017

Oh, hey, so this is heavily under construction again.

Template Documentation

This documentation contains information on the template, including but not limited to, the usage, examples, and restrictions.

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.

Additionally, if the Wiki page in question includes a basic form that hatches from an Egg, an appropriately-filled EggInfo template should precede the first PkmnInfo template.

An understanding of the following template(s) are required to use the PkmnInfo template:

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
Type
EXP to Hatch
5,120
EXP Group
Medium-Fast (1,000,000)
Gender Ratio
1 Male to 1 Female
Egg Group
Field
Colour
 Black
 Blue
Body Style
Quadruped
Egg Description
???
Pokédex Entry
Lunupine let out melodic howls during the nights of a full moon. It is rarely seen out in the wild.
Etymology
{{{etymology}}}

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.

Size1

The height of the Pokémon.

Size2

The weight of the Pokémon.

body

The body style of the Pokémon.

stats

The base stats of the Pokémon, to be filled using the BaseStats template.

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 filename of the Pokémon's image does not match pkmnName, set this parameter to the filename, 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.

Edit: Template:PkmnInfo/doc