Template:PkmnInfo: Difference between revisions
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
whitespace affecting the positioning of elements. | whitespace affecting the positioning of elements. | ||
--><div class="PkmnInfo"><{{{head-element|h6}}} style=" | --><div class="PkmnInfo" style="border: 2px solid #9EC690; width: 100%; margin: 8px 0; border-radius: 10px; background-color: #C1D091; "><{{{head-element|h6}}} style="font-size: 16pt; border-bottom: 2px solid #9EC690; background-color: #D2E8AF; color: #004000; padding: 0 4px; border-radius: 8px 8px 0 0; font-weight: bold; margin: 0;">{{{pkmnName}}}</{{{head-element|h6}}}><!-- | ||
----- MAIN CONTENT STYLING ----- | ----- MAIN CONTENT STYLING ----- | ||
--><div style="image-rendering: pixelated; image-rendering: -moz-crisp-images | --><div style="image-rendering: pixelated; image-rendering: -moz-crisp-images; border-radius: 6px; background-color: #C1D091; color: #004000; padding: 5px; box-sizing: border-box; text-align: center; border-radius: 8px;"><!-- | ||
----- /MAIN CONTENT STYLING ----- | ----- /MAIN CONTENT STYLING ----- | ||
--><div style="display: inline-block;"><!-- | --><div style="display: inline-block;"><!-- | ||
------ POKÉMON SPRITE BOX ------ | ------ POKÉMON SPRITE BOX ------ | ||
--><div style="display: inline-block; box-sizing: content-box; width: | --><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: | --><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;"><!-- | ||
--><div style="display: block; width: 100px; height: 40px; border-radius: 50%; box-sizing: border-box; border: solid #9EC690; border-width: 1px 3px 5px; background-color: #C1D091; position: absolute; bottom: | --><div style="display: block; width: 100px; height: 40px; border-radius: 50%; box-sizing: border-box; border: solid #9EC690; border-width: 1px 3px 5px; background-color: #C1D091; position: absolute; bottom: 11px;"></div><!-- | ||
--><div style="z-index: 1; position: relative; width: 0px; height: 0px; overflow: visible; padding: 75px 50px 25px | --><div style="z-index: 1; position: relative; width: 0px; height: 0px; overflow: visible; padding: 75px 50px 25px;"><!-- | ||
--><div style="position: absolute; transform: translateX(-50%) translateY(-75%);"><!-- | --><div style="position: absolute; transform: translateX(-50%) translateY(-75%);"><!-- | ||
-->[[File:Pokémon_{{#if:{{{fileName|}}}|{{{fileName}}}|{{{pkmnName}}}}}.png|alt={{{pkmnName}}}|{{{pkmnName}}}]]<!-- | -->[[File:Pokémon_{{#if:{{{fileName|}}}|{{{fileName}}}|{{{pkmnName}}}}}.png|alt={{{pkmnName}}}|{{{pkmnName}}}]]<!-- | ||
Line 22: | Line 22: | ||
--></div><!-- | --></div><!-- | ||
-------- TYPE BOX ----- | -------- TYPE BOX ----- | ||
--><div style="box-sizing: border-box; display: inline-block; vertical-align: top; margin: 0 3px 3px 3px; min-width: | --><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: #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|}}<!-- | ||
Line 33: | Line 33: | ||
-------- START TINY BOXES ----><!-- | -------- START TINY BOXES ----><!-- | ||
-------- EXP TO HATCH ----- | -------- EXP TO HATCH ----- | ||
--><div style="display: inline-flex; flex-wrap: wrap; align-items: stretch; justify-content: space-around; max-width: 390px; vertical-align: | --><div style="display: inline-flex; flex-wrap: wrap; align-items: stretch; justify-content: space-around; max-width: 390px; vertical-align: middle;"><!-- | ||
--><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: #E2FFCD; 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: #D2E8AF; color: #004000; border-radius: 5px 5px 0 0; font-size: 11pt; font-weight: bold; padding: 2px 0 0;">EXP to Hatch</div><!-- | ||
Line 52: | Line 52: | ||
--><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: #E2FFCD; 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: #D2E8AF; 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 | --><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> {{#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> {{#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: #E2FFCD; margin: 3px; width: 122px;"><!-- | ||
Line 87: | Line 87: | ||
--><div style="border-radius: 5px; background-color: #E2FFCD; padding: 2px 4px; text-align: left;">{{{etymology}}}</div><!-- | --><div style="border-radius: 5px; background-color: #E2FFCD; padding: 2px 4px; text-align: left;">{{{etymology}}}</div><!-- | ||
--></div><!-- | --></div><!-- | ||
--></div></div><!---- | --></div></div></div></div><!---- | ||
END OF TEMPLATE | END OF TEMPLATE | ||
--------------></includeonly><noinclude>{{Documentation}} | --------------></includeonly><noinclude>{{Documentation}} | ||
[[Category:Templates Under Construction]]</noinclude> | [[Category:Templates Under Construction]]</noinclude> |
Revision as of 19:52, 21 May 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 |