Difference between revisions of "Template:SingleSprite"

From PokeGen Wiki
Jump to navigation Jump to search
(alright that broke nothing, next up this weird approach)
(if else instead of alt)
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
|style="width:16%"|{{{2|Normal}}}
 
|style="width:16%"|{{{2|Normal}}}
 
|- style="background-color:#e5e5e5;color:#4c4c4c"
 
|- style="background-color:#e5e5e5;color:#4c4c4c"
|<img style="position: relative;z-index:2;"src="http://{{GameURL}}/images/pokemon/{{{2|Normal}}}/{{{1|0}}}.png"alt="No {{{2|Normal}}} form available" "><img style="z-index:0;position:absolute;left: 50%;transform: translate(-50%, 0);" src="http://{{GameURL}}/images/{{{3|}}}.png"alt=""><br />{{{4|}}}
+
|<img style="position: relative;z-index:2;"src="http://{{GameURL}}/images/pokemon/{{{2|Normal}}}/{{#iferror: {{#expr: 1+{{{1|0}}} }} | {{Converter/NameNum|{{{1|0}}}}}| {{{1|0}}}}}.png"alt="No {{{2|Normal}}} form available">{{#if:{{{3|}}}|<img style="z-index:0;position:absolute;left: 50%;transform: translate(-50%, 0);" src="http://{{GameURL}}/images/{{{3|}}}.png"alt="">}}<br />{{{4|{{#iferror: {{#expr: 1+{{{1|0}}} }} | {{{1|0}}}|}}}}}
 
|}
 
|}
  
Line 15: Line 15:
 
{{SingleSprite|251|Midnight|Gen_X}}
 
{{SingleSprite|251|Midnight|Gen_X}}
 
{{SingleSprite|251|Shiny|Gen_X|Celebi}}
 
{{SingleSprite|251|Shiny|Gen_X|Celebi}}
 +
{{SingleSprite|Celebi|Normal|TeraFire}}
 
</noinclude>
 
</noinclude>

Latest revision as of 09:00, 14 March 2025

{{SingleSprite|number|trait|aura(purified), Gen_X(x gendered)|name/note}}

Example:

{{SingleSprite|1|Dyna|aura}}
Dyna
No Dyna form available


More Examples:

Golden
No Golden form available


Snow
No Snow form available


Midnight
No Midnight form available


Shiny
No Shiny form available
Celebi


Normal
No Normal form available
Celebi