Template:PkmnInfo: Difference between revisions
No edit summary |
m (just saving a wip i've had open for eons. hopefully i didn't leave anything unfinished.) |
||
Line 31: | Line 31: | ||
--></div><!-- | --></div><!-- | ||
--></div><!-- | --></div><!-- | ||
--><div style="display: inline-block; max-width: 393px; vertical-align: top;"><!-- | --><div style="display: inline-block; max-width: 393px; vertical-align: top;"><!-- | ||
-------- START TINY BOXES ----><!-- | -------- START TINY BOXES ----><!-- | ||
-------- EXP TO HATCH ----- | -------- EXP TO HATCH OR EVOLUTION REQUIREMENTS ----- | ||
--><div style="box-sizing: border-box; display: | --><div style="box-sizing: border-box; display: inline-block; vertical-align: top; margin: 3px; width: 125px;"><!-- | ||
--><div style="border: 1px solid #9EC690; background-color: #D2E8AF; color: #004000; border-radius: 6px 6px 0 0; font-size: 11pt; font-weight: bold; padding: 3px 4px 2px 4px;"><!-- | --><div style="border: 1px solid #9EC690; background-color: #D2E8AF; color: #004000; border-radius: 6px 6px 0 0; font-size: 11pt; font-weight: bold; padding: 3px 4px 2px 4px;"><!-- | ||
-->EXP to Hatch<!-- | -->{{#ifeq: {{{expHatch|}}} | 0 | Evolution Requirements | {{#if: {{{evoReq|}}} | Evolution Requirements | EXP to Hatch }} }}<!-- | ||
--></div><!-- | --></div><!-- | ||
--><div style="border: 1px solid #9EC690; border-width: 0 1px 1px 1px; border-radius: 0 0 6px 6px; background-color: #E2FFCD; padding: 2px 4px; box-sizing: border-box; min-height: 43px;"><!-- | --><div style="border: 1px solid #9EC690; border-width: 0 1px 1px 1px; border-radius: 0 0 6px 6px; background-color: #E2FFCD; padding: 2px 4px; box-sizing: border-box; min-height: 43px;"><!-- | ||
-->{{#if:{{{ | -->{{#ifeq: {{{expHatch|}}} | 0 | {{{evoReq|{{Missing|}}}}} | {{#if: {{{evoReq|}}} | Evolution Requirements | {{{expHatch|{{Missing|The amount of EXP required to hatch a(n) {{{pkmnName}}} Egg}}}}} }} }}<!-- | ||
{{Missing|The amount of EXP required to hatch a(n) {{{pkmnName}}} Egg}} | |||
--></div><!-- | --></div><!-- | ||
--></div><!-- | --></div><!-- | ||
Line 80: | Line 61: | ||
--></div><!-- | --></div><!-- | ||
--><div style="border: 1px solid #9EC690; border-width: 0 1px 1px 1px; border-radius: 0 0 6px 6px; background-color: #E2FFCD; padding: 2px 4px; box-sizing: border-box; min-height: 43px;"><!-- | --><div style="border: 1px solid #9EC690; border-width: 0 1px 1px 1px; border-radius: 0 0 6px 6px; background-color: #E2FFCD; padding: 2px 4px; box-sizing: border-box; min-height: 43px;"><!-- | ||
-->{{ | -->{{{gender|{{Missing|{{{pkmnName}}}'s gender ratio.}}}}}<!-- | ||
--></div><!-- | --></div><!-- | ||
--></div><!-- | --></div><!-- | ||
Line 111: | Line 92: | ||
--></div><!-- | --></div><!-- | ||
--></div><!-- | --></div><!-- | ||
-------- DEX INFO ----- | |||
--><div style="display: inline-block; vertical-align: top; box-sizing: content-box; max-width: 393px;"><!-- | |||
-------- EGG DESCRIPTION ----- | |||
--><div style="display: {{#if:{{{eggDesc|}}}|inline-block|{{#if:{{{expHatch|}}}|inline-block|none}}}}; margin: 3px; min-width: 150px;"><!-- | |||
--><div style="border: 1px solid #9EC690; background-color: #D2E8AF; color: #004000; border-radius: 6px 6px 0 0; font-size: 11pt; font-weight: bold; padding: 3px 4px 2px 4px; box-sizing: border-box;"><!-- | |||
-->Egg Description<!-- | |||
--></div><!-- | |||
--><div style="border: 1px solid #9EC690; border-width: 0 1px 1px 1px; background-color: #E2FFCD; padding: 2px 4px; border-radius: 0 0 6px 6px; box-sizing: border-box; text-align: left;"><!-- | |||
-->''{{#if:{{{expHatch|}}}|{{{eggDesc|{{Missing|{{{pkmnName}}}'s Egg Description.}}}}}|You shouldn't be able to see this.}}''<!-- | |||
--></div><!-- | |||
--></div><!-- | |||
-------- POKÉDEX ENTRY ----- | |||
--><div style="box-sizing: border-box; display: inline-block; vertical-align: {{#if:{{{eggDesc|}}}|bottom|top}}; margin: 3px;"><!-- | |||
--><div style="border: 1px solid #9EC690; background-color: #D2E8AF; color: #004000; font-size: 11pt; font-weight: bold; padding: 3px 4px 2px 4px; border-radius: 6px 6px 0 0; box-sizing: border-box;"><!-- | |||
-->Pokédex Entry<!-- | |||
--></div><!-- | |||
--><div style="border: 1px solid #9EC690; border-width: 0 1px 1px 1px; border-radius: 0 0 6px 6px; background-color: #E2FFCD; padding: 2px 4px; box-sizing: border-box; text-align: left;"><!-- | |||
-->''{{{dexEntry|{{Missing|{{{pkmnName}}}'s Pokédex Entry}}}}}''<!-- | |||
--></div><!-- | |||
--></div><!-- | |||
--></div><!-- | |||
--></div><!-- | |||
-------- END OF DEX INFO -----><!-- | |||
+ ETYMOLOGY + | + ETYMOLOGY + | ||
--><div style="display: {{#if:{{{etymology|}}}|inline-block|none}}; max-width: 387px; box-sizing: border-box; margin: 3px;"><!-- | --><div style="display: {{#if:{{{etymology|}}}|inline-block|none}}; max-width: 387px; box-sizing: border-box; margin: 3px;"><!-- |
Revision as of 03:44, 8 April 2017
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
Lunupine 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 |