Template:Spr: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
[[Image:Spr {{{2|4p}}} {{{1|001}}}{{{3|}}}{{{4|}}}.{{{5|png}}}]]<noinclude>
[[File:Spr_{{#switch: {{{2|Platinum}}}|Red and Green|Green=1g|Red and Blue|Red|Blue=1b|Yellow=1y|Gold=2g|Silver=2s|Crystal=2c|Ruby and Sapphire|Ruby|Sapphire=3r|FireRed and LeafGreen|FireRed|LeafGreen=3f|Emerald=3e|Diamond and Pearl|Diamond|Pearl=4d|Platinum=4p|HeartGold and SoulSilver|HeartGold|SoulSilver=4h}}_{{{1|001}}}{{#switch: {{{3|none}}}|male=_m|female=_f|shiny=_s|male shiny=_m_s|female shiny=_f_s}}.{{#switch: {{{2|Platinum}}}|Crystal|Emerald=gif|png}}]]<noinclude>


'''HOW TO USE THIS TEMPLATE:'''
'''HOW TO USE THIS TEMPLATE:'''


Essentially, you can use it like this: <code><nowiki>{{Spr|ndex|spriteset code|qualifier #1|qualifier #2|file extension}}</nowiki></code>. Both qualifiers, as well as the file extension, are not required, and default to nothing entered. Spriteset code is the code which has been devised to organize the sprites. A chart to decipher the different codes is below:
This template is called with inputs of National Dex number, game version, and if the sprite in question is to be the male, female, shiny, male shiny, or female shiny. If it is just the plain sprite, do not bother with the third parameter.


{| border=1 align="center" style="background: #fff; border:1px solid #000; border-collapse:collapse;"
Essentially, you can use it like this: <code><nowiki>{{Spr|ndex|game|gender/shininess}}</nowiki></code> For example, calling the various version mascots in their own sprites:
|- style="background: #C0C0FF;"
 
! Code
{{Spr|006|Red}}{{Spr|003|Green}}{{Spr|009|Blue}}{{Spr|025|Yellow}}{{Spr|250|Gold}}{{Spr|249|Silver}}{{Spr|245|Crystal}}{{Spr|383|Ruby}}{{Spr|382|Sapphire}}{{Spr|006|FireRed}}{{Spr|003|LeafGreen}}{{Spr|384|Emerald}}{{Spr|483|Diamond}}{{Spr|484|Pearl}}{{Spr|487O|Platinum}}{{Spr|250|HeartGold}}{{Spr|249|SoulSilver}}\
! Game
 
|- align="center"
PLEASE NOTE: To call the Japanese Red and Green sprites the game must be "Green" or "Red and Green"; "Red" calls the sprites from the English Red and Blue and Japanese Blue.
| 1g
| {{2v2|Red|Green}}
|- align="center"
| 1b
| {{2v2|Red|Blue}}
|- align="center"
| 1y
| {{v2|Yellow}}
|- align="center"
| 2g
| {{v2|Gold}}
|- align="center"
| 2s
| {{v2|Silver}}
|- align="center"
| 2c
| {{v2|Crystal}}
|- align="center"
| 3r
| {{2v2|Ruby|Sapphire}}
|- align="center"
| 3f
| {{2v2|FireRed|LeafGreen}}
|- align="center"
| 3e
| {{v2|Emerald}}
|- align="center"
| 4d
| {{2v2|Diamond|Pearl}}
|- align="center"
| 4p
| {{v2|Platinum}}
|- align="center"
| 4h
| {{2v2|HeartGold|SoulSilver}}
|}
<br clear"all">
Default for this is 4d, Diamond and Pearl sprites. Qualifier #1 and qualifier #2 are extras just for the shiny sprites, gender differences, and the like. The file extension defaults to png, but if it is a sprite from Crystal or Emerald, it will need to be a gif. For coding reasons, when a sprite from these games is called, it needs to have no entries for the two qualifiers, most often, though a shininess qualifier will be needed for Crystal and Emerald to call the shiny sprite. Suicune's Crystal Version sprite is called with <code><nowiki>{{Spr|245|2c|||gif}}</nowiki></code>, resulting in {{Spr|245|2c|||gif}}.
[[Category:Link templates]]</noinclude>
[[Category:Link templates]]</noinclude>
55,887

edits