Template:PkmnSprite: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<noinclude> {{-start-}} '''pkmnSprite''' Renders a Pixelmon sprite (always shown at 32 px and with the “pixelated” class) that links to an arbitrary wiki page. * **1** – ''File name or path'' (everything after the “File:” prefix & including extension) e.g. `Pixelmon-pokemon-025_pikachu-all-base-none-sprite.png` * **2** – ''Page title'' to link to (defaults to first parameter without “.png”) <syntaxhighlight lang="text"> {{pkmnSprite|Pixelmon-pokemo...") |
No edit summary |
||
| Line 3: | Line 3: | ||
'''pkmnSprite''' | '''pkmnSprite''' | ||
Renders a Pixelmon sprite | Renders a Pixelmon sprite that links to a wiki page. | ||
that links to | |||
* **1** – | * **1 = file** – file name or path (after “File:” prefix) | ||
* **2 = page** – target page to link to (defaults to file-name without “.png”) | |||
* **2** – | * **3 = size** – *optional* thumbnail size in **px** (default **32**) | ||
Example: | |||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
{{pkmnSprite|Pixelmon-pokemon-025_pikachu-all-base-none-sprite.png|Pikachu}} | {{pkmnSprite | ||
| Pixelmon-pokemon-025_pikachu-all-base-none-sprite.png | |||
| Pikachu | |||
| 48 | |||
}} | |||
</syntaxhighlight> | </syntaxhighlight> | ||
{{-stop-}} | {{-stop-}} | ||
</noinclude> | </noinclude> | ||
<!-- ========================================================= --> | <!-- ========================================================= --> | ||
[[File:{{{1}}}| | [[File:{{{1}}}|{{{3|32}}}px|class=pixelated|link={{{2|{{#titleparts:{{{1}}}|1}}}}}]] | ||
Revision as of 00:42, 25 May 2025
Template:-start- pkmnSprite
Renders a Pixelmon sprite that links to a wiki page.
- **1 = file** – file name or path (after “File:” prefix)
- **2 = page** – target page to link to (defaults to file-name without “.png”)
- **3 = size** – *optional* thumbnail size in **px** (default **32**)
Example: <syntaxhighlight lang="text">
[[File: Pixelmon-pokemon-025_pikachu-all-base-none-sprite.png
| 48
px|class=pixelated|link= Pikachu
]]
</syntaxhighlight> Template:-stop-
[[File:{{{1}}}|32px|class=pixelated|link={{{1}}}]]