Template talk:User Has Pokémon

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search

Usage

This usertag template identifies the user as an owner of a specified Pokémon, allowing the user to also specify image, form, and type color(s).

This template takes a maximum of five unnamed parameters and up to two named parameters, all optional with default (fallback) values.

{{User Has Pokémon|image filename|Pokémon|Type 1|Type 2|image size|article=|form=}}

Parameters

Unnamed parameters

These parameters, if supplied, must be provided in the following order:

  • image filename: name of PNG-format image file (without the .png file extension) portraying the desired Pokémon. Default: 001 (Gen-V Bulbasaur front sprite)
  • Pokémon: name of Pokémon species. Default: Bulbasaur (with a disguised link to Mew)
  • Type 1: Pokémon's primary Type; its color will be displayed on usertag's border (dark), text background (light), and text (dark), as well as image background if Type 2 is not specified. Default: ???
  • Type 2: Pokémon's secondary Type; its color will be displayed on usertag's image background. Default: same as Type 1 (if supplied; otherwise ???)
  • image size: desired size of Pokémon's image in pixels, expressed in any of the following formats (where mm and nn are 1- to 3-digit integer values):
    • mmpx: desired image width in pixels. (Recommended value is 60px, which is the default value when not specified.)
    • xnnpx: desired image height in pixels.
    • mmxnnpx: desired image width and height in pixels.

Named parameters

These parameters may be supplied in any order, but not before unnamed parameters (due to coding issues, any named parameter must be provided after any unnamed parameters have been supplied):

  • article= desired grammatical article (a, an, the) preceding the Pokémon species' name; to omit article in text, supply blank (null) value article=. Default: a
  • form= desired Pokémon form (gender, Shiny, Mega, etc.). Default: (none)

Examples

Template output Stand alone code Description
151.png This user has a Mew.
{{User Has Pokémon|151|Mew|Psychic}}
Mew tag with Gen-V front sprite and one Type color (Psychic)
251Celebi.png This user has a Celebi.
{{User Has Pokémon|251Celebi|Celebi|Psychic|Grass}}
Celebi tag with official Ken Sugimori artwork and two Type colors (Psychic and Grass)
251Celebi Dream.png This user has a Celebi.
{{User Has Pokémon|251Celebi Dream|Celebi|Grass|Psychic}}
Same as above, but with Pokémon Global Link artwork and Type colors swapped (for better contrast)
Shuffle385.png This user has a Jirachi.
{{User Has Pokémon|Shuffle385|Jirachi|Psychic|Steel|52px}}
Jirachi tag with Pokémon Shuffle icon (whose width has been reduced to 52 pixels)
490Manaphy.png This user has a Manaphy.
{{User Has Pokémon|490Manaphy|Manaphy|Water|Water|54px}}
Manaphy tag with artwork's width reduced to 54 pixels; note that here Type 1 (Water) must be either supplied twice or...
490Manaphy.png This user has a Manaphy.
{{User Has Pokémon|490Manaphy|Manaphy|Water||54px}}
...followed by a blank Type 2 before specifying image size (blank Type 2 becomes same as Type 1)
491.png This user has Darkrai.
{{User Has Pokémon|491|Darkrai|Dark|article=}}
Darkrai tag with Gen-V front sprite and article omitted
492 s.png This user has a Shiny Shaymin.
{{User Has Pokémon|492_s|Shaymin|Grass|form={{color2|{{grass color dark}}|Shiny Pokémon|Shiny}}}}
Shaymin tag with Shiny Gen-V front sprite
494Victini.png This user has an event Victini.
{{User Has Pokémon|494Victini|Victini|Fire|Psychic|x50px|article=an|form=event}}
Victini tag with 50-pixel-height Sugimori artwork, article "an", and word "event" supplied as a "form"
719Diancie Mega Dream.png This user has the Mega Diancie.
{{User Has Pokémon|719Diancie Mega Dream|Diancie|Fairy|Rock|form='''{{color2|{{fairy color dark}}|Mega Evolution|Mega}}'''|article=the}}
Diancie tag with Global Link Mega Evolution image and article "the"; form and article can be given in any order, yielding same result

SilSinn9801 currently writing documentation for this usertag

Please do not yet protect this template page until I am done writing usage documentation for it. Once I am done writing the usage guide (using the same guidelines traced by ForceFire and Tiddlywinks (talk) regarding unprotected templates), I will formally request this be protected to prevent anybody (other than its creator SnorlaxMonster) from recklessly editing the template itself and cause the server to stress out. --SilSinn (Pokémon Sun TID: 768426; Pokémon Ultra Moon TID: 123446) (talk) 02:30, 21 December 2018 (UTC)
UPDATE: usage guide done (without touching the rest of the template source), feel free to protect it as needed. --SilSinn (Pokémon Sun TID: 768426; Pokémon Ultra Moon TID: 123446) (talk) 05:39, 21 December 2018 (UTC)