Template:MSP/GO: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(testing 4 digits)
(splitting documentation off)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span style="position:relative; width:{{{size|60}}}px; height:{{{size|60}}}px; display:inline-block">{{#ifeq: {{{lucky|no}}}|yes|<span style="position:absolute; left:0; top:0;">[[Image:GO Lucky background.png|{{{size|60}}}px|link=]]</span>}}<span style="position:relative; left:0; top:0;">[[Image:GO{{{1|0000}}}{{{form|}}}.png|{{{size|60}}}px|link={{{2|Missingno.}}} (Pokémon)#Pokémon GO|{{{2|Missingno.}}} {{#if: {{{3|}}}|({{{3|}}})}}]]</span><span style="text-align:left; vertical-align:top; position:absolute; left:0; top:0;">{{#ifeq: {{{shiny|no}}}|yes|[[File:ShinyGOStar.png|{{#iferror: {{#expr: floor({{{size|60}}}/3)}}|20}}px|link=Shiny Pokémon (GO)|Shiny]]}}</span><span style="text-align:left; vertical-align:bottom; position:absolute; left:0; bottom:0;">{{#if: {{{how|}}}{{{how-image|}}}|[[File:{{#switch:{{{how|}}}|trade=GO Traded icon.png|event=GO Event icon.png|evolve=GO Evolution icon.png|egg=GO Hatched icon.png|mega=GO Mega icon.png|{{{how-image|None.png}}}}}|{{#iferror: {{#expr: floor({{{size|60}}}/3)}}|20}}px|link={{#switch:{{{how|}}}|trade=Trade (GO){{!}}Trade|event=List of Pokémon with form differences (GO)#Event Pokémon{{!}}Event Pokémon|egg=List of Eggs in Pokémon GO{{!}}Egg|evolve=Evolution#Pokémon GO{{!}}Evolve|mega=Mega Evolution (GO){{!}}Mega Evolution|{{{how-link|}}}}}]]|{{#ifeq: {{{shadow|no}}}|yes|[[File:GO Shadow icon.png|{{#iferror: {{#expr: floor({{{size|60}}}/3)}}|20}}px|link=Shadow Pokémon (GO)|Shadow]]|{{#ifeq: {{{purified|no}}}|yes|[[File:GO Purified icon.png|{{#iferror: {{#expr: floor({{{size|60}}}/3}})|20}}px|link=Shadow Pokémon (GO)|Purified]]}}}}}}</span></span><noinclude>
<includeonly><span style="position:relative; width:{{{size|60}}}px; height:{{{size|60}}}px; display:inline-block">{{#ifeq: {{{lucky|no}}}|yes|<span style="position:absolute; left:0; top:0;">[[Image:GO Lucky background.png|{{{size|60}}}px|link=]]</span>}}<span style="position:relative; left:0; top:0;">[[Image:GO{{{1|0000}}}{{{form|}}}.png|{{{size|60}}}px|link={{{2|Missingno.}}} (Pokémon)#Pokémon GO|{{{2|Missingno.}}} {{#if: {{{3|}}}|({{{3|}}})}}]]</span><span style="text-align:left; vertical-align:top; position:absolute; left:0; top:0;">{{#ifeq: {{{shiny|no}}}|yes|[[File:ShinyGOStar.png|{{#iferror: {{#expr: floor({{{size|60}}}/3)}}|20}}px|link=Shiny Pokémon (GO)|Shiny]]}}</span><span style="text-align:left; vertical-align:bottom; position:absolute; left:0; bottom:0;">{{#if: {{{how|}}}{{{how-image|}}}|[[File:{{#switch:{{{how|}}}|trade=GO Traded icon.png|event=GO Event icon.png|evolve=GO Evolution icon.png|egg=GO Hatched icon.png|mega=GO Mega icon.png|{{{how-image|None.png}}}}}|{{#iferror: {{#expr: floor({{{size|60}}}/3)}}|20}}px|link={{#switch:{{{how|}}}|trade=Trade (GO){{!}}Trade|event=List of Pokémon with form differences (GO)#Event Pokémon{{!}}Event Pokémon|egg=List of Eggs in Pokémon GO{{!}}Egg|evolve=Evolution#Pokémon GO{{!}}Evolve|mega=Mega Evolution (GO){{!}}Mega Evolution|{{{how-link|}}}}}]]|{{#ifeq: {{{shadow|no}}}|yes|[[File:GO Shadow icon.png|{{#iferror: {{#expr: floor({{{size|60}}}/3)}}|20}}px|link=Shadow Pokémon (GO)|Shadow]]|{{#ifeq: {{{purified|no}}}|yes|[[File:GO Purified icon.png|{{#iferror: {{#expr: floor({{{size|60}}}/3}})|20}}px|link=Shadow Pokémon (GO)|Purified]]}}}}}}</span></span></includeonly><noinclude>
{{documentation}}
 
[[Category:Link templates]]
[[Category:Link templates]]
</noinclude>
</noinclude>

Latest revision as of 03:35, 11 December 2023



Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)

This template is used to display a Pokémon model image, with additional options.

Template fields

  • field 1 (natdex number) - The Pokémon's National Pokédex number. This should be in a 4-digit format.
  • field 2 (Pokémon name) - The name of the Pokémon, to allow linking to its species page.
  • field 3 (displayed form name) (optional) - The form name to be displayed in a tooltip when hovering over the image.
  • size (optional) - The size of the image in pixels. Defaults to 60.
  • form (optional) - A short signifier for the Pokémon's form, so the correct image is displayed.
    • For example: A for Alolan Raticate, Cl for Clone Pikachu, Fall2019 for Fall 2019 Bulbasaur.
    • For shininess, use _s. For female, use _f.
    • If unsure, check this archives category for all valid file names: Category:GO models. File names are usually in the format GO(natdex)(form).png.
  • how (optional) - Display an icon for the acquisition method (e.g., `trade`, `event`, `evolve`) in the bottom-left.
    • how-image (optional) - Manually override the displayed image for the `how` input.
  • shadow (optional) - Set to `yes` to display a bottom-left shadow icon.
    • purified (optional) - Set to `yes` to display a bottom-left purified icon.
  • lucky (optional) - Set to `yes` to display a lucky background.

Examples

{{MSP/GO|0001|Bulbasaur|Shadow|form=_s|size=80|shiny=yes|shadow=yes}}

Bulbasaur (Shadow)ShinyShadow