Template:PkmnInfo: Difference between revisions
No edit summary |
No edit summary |
||
(20 intermediate revisions by 3 users not shown) | |||
Line 4: | Line 4: | ||
whitespace affecting the positioning of elements. | whitespace affecting the positioning of elements. | ||
--><div class="PkmnInfo" style="border: 1px solid #c0c0c0; width: | --><div class="PkmnInfo" style="border: 1px solid #c0c0c0; max-width: 900px; margin: 0.5em auto;"><!-- | ||
--><div style=" | --><{{{head-element|h3}}} style="color: #ffffff; padding: 4px; background-color: #cf8b54; margin-top: 0; font-size: 1.2em; font-weight: bold;">{{{pkmnName}}}</{{{head-element|h3}}}><div style="padding: 4px; background-color: #ffffff;"><!-- | ||
--><div class="sprites-container" style="text-align: center;"><!-- | |||
--><div style="display: inline-block; width: 100px; background-color: #ffffff; height: 100px; border: 1px solid #c0c0c0; padding: 4px; position: relative; box-sizing: content-box; overflow: hidden; margin: 0 3px 3px; text-align: center; line-height: 100px;"><!-- | |||
-->[[File:{{{filename|{{{pkmnName}}}}}}.png|alt={{{pkmnName}}}|{{{pkmnName}}}]]<!-- | |||
--></div><!-- | |||
-->[[File: | --><div style="display: inline-block; width: 100px; background-color: #ffffff; height: 100px; border: 1px solid #c0c0c0; padding: 4px; position: relative; box-sizing: content-box; overflow: hidden; margin: 0 3px 3px; text-align: center; line-height: 100px;"><!-- | ||
-->[[File:Shiny_{{{filename|{{{pkmnName}}}}}}.png|alt=Shiny {{{pkmnName}}}|Shiny {{{pkmnName}}}]]<!-- | |||
--></div><!-- | --></div><!-- | ||
--><div style="display: inline-block; width: 100px; background-color: #ffffff; height: 100px; border: 1px solid #c0c0c0; padding: 4px; position: relative; box-sizing: content-box; overflow: hidden; margin: 0 3px 3px; text-align: center; line-height: 100px;"><!-- | |||
-->[[File:Albino_{{{filename|{{{pkmnName}}}}}}.png|alt=Albino {{{pkmnName}}}|Albino {{{pkmnName}}}]]<!-- | |||
--></div><!-- | --></div><!-- | ||
--><div style="border: 1px solid #c0c0c0; | |||
--><div style="display: inline-block; width: 100px; background-color: #ffffff; height: 100px; border: 1px solid #c0c0c0; padding: 4px; position: relative; box-sizing: content-box; overflow: hidden; margin: 0 3px 3px; text-align: center; line-height: 100px;"><!-- | |||
-->[[File:Melanistic_{{{filename|{{{pkmnName}}}}}}.png|alt=Melanistic {{{pkmnName}}}|Melanistic {{{pkmnName}}}]]<!-- | |||
--></div><!-- | --></div><!-- | ||
--></div><!-- END SPRITE LIST | |||
--><p>{{#if:{{{dexEntry|}}}|<i>{{{dexEntry}}}</i>|<span class="explain" title>This information is currently missing. Help us by adding {{{pkmnName}}}'s Pokédex Entry.[[Category:Pages with Missing Information]]</span>}}</p><!-- | |||
--><div style="width: 50%; min-width: 262px; display: inline-block; vertical-align: top; margin: 4px 0;"><!-- | |||
--><div style="margin-bottom: 2px;"><b style="display: inline-block; width: 85px;">Type{{#if:{{{type2|}}}|s|}}:</b> {{#if:{{{type1|}}}|[[File:Type_{{{type1}}}.png]]{{#if:{{{type2|}}}| [[File:Type_{{{type2}}}.png]]|}}|{{Missing|{{{pkmnName}}}'s Type(s).}}}}</div><!-- | |||
--><div style="margin-bottom: 2px;"><b style="display: inline-block; width: 85px;">Genders:</b> {{#if:{{{gender|}}}|{{{gender}}}|{{Missing|{{{pkmnName}}}'s Gender Ratio.}}}}</div><!-- | |||
--><div style="margin-bottom: 2px;"><b style="display: inline-block; width: 85px;">EXP group:</b> {{#if:{{{expGroup|}}}|{{{expGroup}}}|{{Missing|{{{pkmnName}}}'s EXP group.}}}}</div><!-- | |||
--><div style="margin-bottom: 2px;"><b style="display: inline-block; width: 85px;">Egg group:</b> {{#if:{{{eggGroup1|}}}|{{{eggGroup1}}}{{#if:{{{eggGroup2|}}}|  / {{{eggGroup2}}}|}}|{{Missing|{{{pkmnName}}}'s Egg group(s).}}}}</div><!-- | |||
--><div style="margin-bottom: 2px;"><b style="display: inline-block; width: 85px;">Colour:</b> <span style="display: inline-block; width: 1em; height: 1em; vertical-align: text-top; border: 1px solid #c0c0c0; border-radius: 4px; background-color: {{{colour1|transparent}}};"></span> {{#if:{{{colour1|}}}|{{{colour1}}}|{{Missing|{{{pkmnName}}}'s colour.}}}} / <span style="display: inline-block; width: 1em; height: 1em; vertical-align: text-top; border: 1px solid #c0c0c0; border-radius: 4px; background-color: {{{colour2|transparent}}};"></span> {{#if:{{{colour2|}}}|{{{colour2}}}|{{Missing|{{{pkmnName}}}'s shiny colour.}}}}</div><!-- | |||
--><div style="margin-bottom: 2px;"><b style="display: inline-block; width: 85px;">Size:</b> {{#if:{{{Size1|}}}|{{{Size1}}}{{#if:{{{Size2|}}}|  / {{{Size2}}}|}}|{{Missing|{{{pkmnName}}}'s Size(s).}}}}</div><!-- | |||
--><div style="margin-bottom: 2px;"><b style="display: inline-block; width: 85px;">Body style:</b> {{#if:{{{body|}}}|[[File:Body_Style_{{{body}}}.png|{{{body}}}]]|{{Missing|{{{pkmnName}}}'s Body Style.}}}}</div><!-- | |||
--></div><!-- | --></div><!-- | ||
--></div></div></div><!---- | -->{{#if:{{{stats|}}}|{{{stats}}}|<div style="width: 50%; box-sizing: border-box; min-width: 262px; display: inline-block; vertical-align: top; margin: 4px 0; text-align: center; border: 1px dotted;">This information is currently missing.<br />Help us by adding {{{pkmnName}}}'s base stats.[[Category:Pages with Missing Information]]</div>}}<!-- | ||
-->{{#if:{{{nameOrigin|}}}|<hr style="margin: 16px 0;" /><b>Name origin: </b> {{{nameOrigin}}}|}}<!-- | |||
--></div></div><!---- | |||
END OF TEMPLATE | END OF TEMPLATE | ||
--------------></includeonly><noinclude>{{Documentation}} | --------------></includeonly><noinclude>{{Documentation}} | ||
[[Category:Wiki Templates]]</noinclude> | [[Category:Wiki Templates]]</noinclude> |
Latest revision as of 02:33, 28 November 2023
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 Lunupine let out melodic howls during the nights of a full moon. It is rarely seen out in the wild. Genders: 1 Male to 1 Female EXP group: Medium-Fast (1,000,000) Egg group: Field Colour: Black / Blue Size: 1.4m / 40.0kg Name origin: A combination of the Latin luna, meaning moon, and "lupine", derived from the Latin lupinus, meaning wolf. 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 |