Template:PkmnInfo: Difference between revisions
m (Testing font size stuff.) |
m (Undo.) |
||
Line 6: | Line 6: | ||
whitespace affecting the positioning of elements. | whitespace affecting the positioning of elements. | ||
--><div class="PkmnInfo"><{{{head-element|h6}}} style="width: 100%; font-size: | --><div class="PkmnInfo"><{{{head-element|h6}}} style="width: 100%; font-size: 16pt; border: 2px solid #9EC690; border-bottom-width: 0; background-color: #D2E8AF; color: #004000; padding: 4px; border-radius: 10px 10px 0 0; box-sizing: border-box; margin-top: 8px; font-weight: bold;">{{{pkmnName}}}</{{{head-element|h6}}}><!-- | ||
----- MAIN CONTENT STYLING ----- | ----- MAIN CONTENT STYLING ----- | ||
--><div style="image-rendering: pixelated; image-rendering: -moz-crisp-images; width: 100%; border: 2px solid #9EC690; border-radius: 0px 0px 8px 8px; background-color: #C1D091; color: #004000; padding: 5px; box-sizing: border-box; text-align: center; margin-bottom: 8px;"><!-- | --><div style="image-rendering: pixelated; image-rendering: -moz-crisp-images; width: 100%; border: 2px solid #9EC690; border-radius: 0px 0px 8px 8px; background-color: #C1D091; color: #004000; padding: 5px; box-sizing: border-box; text-align: center; margin-bottom: 8px;"><!-- | ||
Line 23: | Line 23: | ||
-------- TYPE BOX ----- | -------- TYPE BOX ----- | ||
--><div style="box-sizing: border-box; display: inline-block; vertical-align: top; margin: 0 3px 3px 3px; min-width: 130px;"><!-- | --><div style="box-sizing: border-box; display: inline-block; vertical-align: top; margin: 0 3px 3px 3px; min-width: 130px;"><!-- | ||
--><div style="border: 1px solid #9EC690; background-color: #D2E8AF; color: #004000; border-radius: 6px 6px 0 0; font-size: | --><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;"><!-- | ||
-->Type{{#if:{{{type2|}}}|s|}}<!-- | -->Type{{#if:{{{type2|}}}|s|}}<!-- | ||
--></div><!-- | --></div><!-- | ||
Line 35: | Line 35: | ||
-------- EGG DESCRIPTION ----- | -------- EGG DESCRIPTION ----- | ||
--><div style="display: {{#if:{{{eggDesc|}}}|inline-block|{{#if:{{{expHatch|}}}|inline-block|none}}}}; margin: 3px; min-width: 150px;"><!-- | --><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: | --><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<!-- | -->Egg Description<!-- | ||
--></div><!-- | --></div><!-- | ||
Line 44: | Line 44: | ||
-------- POKÉDEX ENTRY ----- | -------- POKÉDEX ENTRY ----- | ||
--><div style="box-sizing: border-box; display: inline-block; vertical-align: {{#if:{{{eggDesc|}}}|bottom|top}}; margin: 3px;"><!-- | --><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: | --><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<!-- | -->Pokédex Entry<!-- | ||
--></div><!-- | --></div><!-- | ||
Line 58: | Line 58: | ||
-------- EXP TO HATCH ----- | -------- EXP TO HATCH ----- | ||
--><div style="box-sizing: border-box; display: {{#if:{{{expHatch|}}}|inline-block|{{#if:{{{eggDesc|}}}|inline-block|none}}}}; vertical-align: top; margin: 3px; width: 125px;"><!-- | --><div style="box-sizing: border-box; display: {{#if:{{{expHatch|}}}|inline-block|{{#if:{{{eggDesc|}}}|inline-block|none}}}}; 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: | --><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<!-- | -->EXP to Hatch<!-- | ||
--></div><!-- | --></div><!-- | ||
Line 67: | Line 67: | ||
-------- EXP GROUP ----- | -------- EXP GROUP ----- | ||
--><div style="box-sizing: border-box; display: inline-block; vertical-align: top; margin: 3px; width: 125px;"><!-- | --><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: | --><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 Group<!-- | -->EXP Group<!-- | ||
--></div><!-- | --></div><!-- | ||
Line 76: | Line 76: | ||
-------- GENDER RATIO ----- | -------- GENDER RATIO ----- | ||
--><div style="box-sizing: border-box; display: inline-block; vertical-align: top; margin: 3px; width: 125px;"><!-- | --><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: | --><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;"><!-- | ||
-->Gender Ratio<!-- | -->Gender Ratio<!-- | ||
--></div><!-- | --></div><!-- | ||
Line 85: | Line 85: | ||
-------- EGG GROUP ----- | -------- EGG GROUP ----- | ||
--><div style="box-sizing: border-box; display: inline-block; vertical-align: top; margin: 3px; width: 125px;"><!-- | --><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: | --><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;"><!-- | ||
-->Egg Group{{#if:{{{eggGroup2|}}}|s|}}<!-- | -->Egg Group{{#if:{{{eggGroup2|}}}|s|}}<!-- | ||
--></div><!-- | --></div><!-- | ||
Line 94: | Line 94: | ||
-------- COLOUR ----- | -------- COLOUR ----- | ||
--><div style="box-sizing: border-box; display: inline-block; vertical-align: top; margin: 3px; width: 125px;"><!-- | --><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: | --><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;"><!-- | ||
-->Colour<!-- | -->Colour<!-- | ||
--></div><!-- | --></div><!-- | ||
Line 103: | Line 103: | ||
-------- BODY STYLE ----- | -------- BODY STYLE ----- | ||
--><div style="box-sizing: border-box; display: inline-block; vertical-align: top; margin: 3px; width: 125px;"><!-- | --><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: | --><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;"><!-- | ||
-->Body Style<!-- | -->Body Style<!-- | ||
--></div><!-- | --></div><!-- | ||
Line 114: | Line 114: | ||
--><hr style="display: {{#if:{{{etymology|}}}|block|none}}; border: none; background-color: #9EC690; width: 96%; height: 2px; border-radius: 1px; margin: 7px auto;"/><!-- | --><hr style="display: {{#if:{{{etymology|}}}|block|none}}; border: none; background-color: #9EC690; width: 96%; height: 2px; border-radius: 1px; margin: 7px auto;"/><!-- | ||
--><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;"><!-- | ||
--><div style="border: 1px solid #9EC690; background-color: #D2E8AF; color: #004000; border-radius: 6px 6px 0 0; font-size: | --><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;"><!-- | ||
-->Etymology<!-- | -->Etymology<!-- | ||
--></div><!-- | --></div><!-- |
Revision as of 20:44, 6 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 |