Template:PkmnInfo: Difference between revisions
(Oopsies.) |
(Required parameters, when undefined, will now autofill a {{Missing}} template.) |
||
Line 36: | Line 36: | ||
|colspan="2" style="border: 1px solid #9EC690; border-width: 0 1px 0 1px; background-color: #E2FFCD; padding: 2px 4px;"|"{{{eggDesc|}}}" | |colspan="2" style="border: 1px solid #9EC690; border-width: 0 1px 0 1px; background-color: #E2FFCD; padding: 2px 4px;"|"{{{eggDesc|}}}" | ||
|- | |- | ||
!colspan="2" style="border: 1px solid #9EC690; background-color: #D2E8AF; color: #004000; font-size: 11pt; border-radius: {{#if:{{{eggDesc|}}}|0|6px 6px 0 0}};"| | !colspan="2" style="border: 1px solid #9EC690; background-color: #D2E8AF; color: #004000; font-size: 11pt; border-radius: {{#if:{{{eggDesc|}}}|0|6px 6px 0 0}};"|Pokédex Entry | ||
|- | |- | ||
|colspan="2" style="border: 1px solid #9EC690; border-width: 0 1px 1px 1px; border-radius: 0 0 6px 6px; background-color: #E2FFCD; padding: 2px 4px;"|"{{{dexEntry|}}}" | |colspan="2" style="border: 1px solid #9EC690; border-width: 0 1px 1px 1px; border-radius: 0 0 6px 6px; background-color: #E2FFCD; padding: 2px 4px;"|"{{{dexEntry|{{Missing|{{{pkmnName}}}'s Pokédex Entry}}}}}" | ||
|- | |- | ||
|style="height: 10px; padding: 0;"| | |style="height: 10px; padding: 0;"| | ||
Line 44: | Line 44: | ||
!colspan="2" style="border: 1px solid #9EC690; background-color: #D2E8AF; color: #004000; border-radius: 6px 6px 0 0; font-size: 11pt;"|Type{{#if:{{{typeSecondary|}}}|s|{{#if:{{{typePrimary-alt|}}}|s|}}}} | !colspan="2" style="border: 1px solid #9EC690; background-color: #D2E8AF; color: #004000; border-radius: 6px 6px 0 0; font-size: 11pt;"|Type{{#if:{{{typeSecondary|}}}|s|{{#if:{{{typePrimary-alt|}}}|s|}}}} | ||
|- | |- | ||
|colspan="2" align="center" style="border: 1px solid #9EC690; border-width: 0 1px 1px 1px; border-radius: 0 0 6px 6px; background-color: #E2FFCD; padding: 2px 4px;"|<span style="width: {{#if:{{{pkmnName-alt|}}}|50%|100%}}; display: inline-block; vertical-align: middle;">[[File:Type_{{{typePrimary}}}.png]]{{#if:{{{typeSecondary|}}}| [[File:Type_{{{typeSecondary}}}.png]]}}{{#if:{{{typePrimary-alt|}}}|<span style="display: block; font-size: 9pt;">{{{pkmnName}}}</span>|}}</span>{{#if:{{{typePrimary-alt|}}}|<span style="width: 50%; display: inline-block; vertical-align: middle;">[[File:Type_{{{typePrimary-alt}}}.png]]{{#if:{{{typeSecondary-alt|}}}| [[File:Type_{{{typeSecondary-alt}}}.png]]}}{{#if:{{{pkmnName-alt|}}}|<span style="display: block; font-size: 9pt;">{{{pkmnName-alt}}}</span>}}</span>}} | |colspan="2" align="center" style="border: 1px solid #9EC690; border-width: 0 1px 1px 1px; border-radius: 0 0 6px 6px; background-color: #E2FFCD; padding: 2px 4px;"|{{#if: {{{typePrimary|}}}|<span style="width: {{#if:{{{pkmnName-alt|}}}|50%|100%}}; display: inline-block; vertical-align: middle;">[[File:Type_{{{typePrimary}}}.png]]{{#if:{{{typeSecondary|}}}| [[File:Type_{{{typeSecondary}}}.png]]}}{{#if:{{{typePrimary-alt|}}}|<span style="display: block; font-size: 9pt;">{{{pkmnName}}}</span>|}}</span>{{#if:{{{typePrimary-alt|}}}|<span style="width: 50%; display: inline-block; vertical-align: middle;">[[File:Type_{{{typePrimary-alt}}}.png]]{{#if:{{{typeSecondary-alt|}}}| [[File:Type_{{{typeSecondary-alt}}}.png]]}}{{#if:{{{pkmnName-alt|}}}|<span style="display: block; font-size: 9pt;">{{{pkmnName-alt}}}</span>}}</span>}}|{{Missing|{{{pkmnName}}}'s type.}}}} | ||
|- | |- | ||
|style="height: 10px; padding: 0;"| | |style="height: 10px; padding: 0;"| | ||
Line 52: | Line 52: | ||
|- | |- | ||
|align="center" style="width: 50%; border: 1px solid #9EC690; border-width: 0 1px 1px 1px; border-radius: 0 0 6px 6px; background-color: #E2FFCD; padding: 2px 4px; display: {{#if:{{{expHatch|}}}||none}};"|{{{expHatch}}} | |align="center" style="width: 50%; border: 1px solid #9EC690; border-width: 0 1px 1px 1px; border-radius: 0 0 6px 6px; background-color: #E2FFCD; padding: 2px 4px; display: {{#if:{{{expHatch|}}}||none}};"|{{{expHatch}}} | ||
|align="center" style="width: 50%; border: 1px solid #9EC690; border-width: 0 1px 1px 1px; border-radius: 0 0 6px 6px; background-color: #E2FFCD; padding: 2px 4px;" colspan="{{#if:{{{expHatch|}}}|1|2}}"|{{{expGroup}}} | |align="center" style="width: 50%; border: 1px solid #9EC690; border-width: 0 1px 1px 1px; border-radius: 0 0 6px 6px; background-color: #E2FFCD; padding: 2px 4px;" colspan="{{#if:{{{expHatch|}}}|1|2}}"|{{#if:{{{expGroup|}}}|{{{expGroup}}}|{{Missing|{{{pkmnName}}}'s EXP group.}}}} | ||
|- | |- | ||
|style="height: 4px; padding: 0;"| | |style="height: 4px; padding: 0;"| | ||
Line 60: | Line 60: | ||
|- | |- | ||
|align="center" style="width: 50%; border: 1px solid #9EC690; border-width: 0 1px 1px 1px; border-radius: 0 0 6px 6px; background-color: #E2FFCD; padding: 2px 4px;"|{{#if:{{{male|}}}|{{#if:{{{female|}}}|{{#ifeq:{{{female|}}}|0|{{#ifeq:{{{male|}}}|0|Genderless|All Male}}|{{#ifeq:{{{male|}}}|0|All Female|{{{male|}}} Male{{#ifeq:{{{male|}}}|1||s}} to {{{female|}}} Female{{#ifeq:{{{female|}}}|1||s}}}}}}|{{Missing|{{{pkmnName}}}'s gender ratio.}}}}|{{Missing|{{{pkmnName}}}'s gender ratio.}}}} | |align="center" style="width: 50%; border: 1px solid #9EC690; border-width: 0 1px 1px 1px; border-radius: 0 0 6px 6px; background-color: #E2FFCD; padding: 2px 4px;"|{{#if:{{{male|}}}|{{#if:{{{female|}}}|{{#ifeq:{{{female|}}}|0|{{#ifeq:{{{male|}}}|0|Genderless|All Male}}|{{#ifeq:{{{male|}}}|0|All Female|{{{male|}}} Male{{#ifeq:{{{male|}}}|1||s}} to {{{female|}}} Female{{#ifeq:{{{female|}}}|1||s}}}}}}|{{Missing|{{{pkmnName}}}'s gender ratio.}}}}|{{Missing|{{{pkmnName}}}'s gender ratio.}}}} | ||
|align="center" style="width: 50%; border: 1px solid #9EC690; border-width: 0 1px 1px 1px; border-radius: 0 0 6px 6px; background-color: #E2FFCD; padding: 2px 4px;"|{{{eggGroup1}}}{{#if:{{{eggGroup2|}}}| / {{{eggGroup2}}}|}} | |align="center" style="width: 50%; border: 1px solid #9EC690; border-width: 0 1px 1px 1px; border-radius: 0 0 6px 6px; background-color: #E2FFCD; padding: 2px 4px;"|{{#if:{{{eggGroup1|}}}|{{{eggGroup1}}}{{#if:{{{eggGroup2|}}}| / {{{eggGroup2}}}|}}|{{Missing|{{{pkmnName}}}'s Egg Group.}}}} | ||
|- | |- | ||
|style="height: 4px; padding: 0;"| | |style="height: 4px; padding: 0;"| | ||
Line 67: | Line 67: | ||
!style="width: 50%; border: 1px solid #9EC690; background-color: #D2E8AF; color: #004000; border-radius: 6px 6px 0 0; font-size: 11pt;"|Body Style | !style="width: 50%; border: 1px solid #9EC690; background-color: #D2E8AF; color: #004000; border-radius: 6px 6px 0 0; font-size: 11pt;"|Body Style | ||
|- | |- | ||
|align="center" style="width: 50%; border: 1px solid #9EC690; border-width: 0 1px 1px 1px; border-radius: 0 0 6px 6px; background-color: #E2FFCD; padding: 2px 4px;"|{{{colour1}}} / {{{colour2}}} | |align="center" style="width: 50%; border: 1px solid #9EC690; border-width: 0 1px 1px 1px; border-radius: 0 0 6px 6px; background-color: #E2FFCD; padding: 2px 4px;"|{{#if:{{{colour1|}}}|{{{colour1}}}|{{Missing|{{{pkmnName}}}'s normal Pokédex Colour.}}}} / {{#if:{{{colour2|}}}|{{{colour2}}}|{{Missing|{{{pkmnName}}}'s Shiny Pokédex Colour.}}}} | ||
|align="center" style="width: 50%; border: 1px solid #9EC690; border-width: 0 1px 1px 1px; border-radius: 0 0 6px 6px; background-color: #E2FFCD; padding: 2px 4px;"|{{#if:{{{body|}}}|[[File:Body_Style_{{{body}}}.png|{{{body}}}]]|{{Missing|{{{pkmnName}}}'s Body Style}}}} | |align="center" style="width: 50%; border: 1px solid #9EC690; border-width: 0 1px 1px 1px; border-radius: 0 0 6px 6px; background-color: #E2FFCD; padding: 2px 4px;"|{{#if:{{{body|}}}|[[File:Body_Style_{{{body}}}.png|{{{body}}}]]|{{Missing|{{{pkmnName}}}'s Body Style.}}}} | ||
|- | |- | ||
|style="height: 10px; padding: 0;"| | |style="height: 10px; padding: 0;"| |
Revision as of 18:00, 18 December 2016
- Note: The template does not display properly with undefined variables. As such, the example displayed has been filled with Lunupine's information.
- Note: Template will be catagorised and documented and all that good stuff once I'm done making major changes to it because I keep having new ideas, you feel?
Template Documentation This documentation contains information on the template, including but not limited to, the usage, examples, and restrictions. UsageThe 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
ParametersRequiredThe following parameters must be defined at all times. Failure to do so will result in the template displaying improperly.
ExpectedThe 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.
OptionalThe following parameters needn't necessarily be defined in all cases.
Edit: Template:PkmnInfo/doc |