Difference between revisions of "Template:Sprites"

From PokeGen Wiki
Jump to navigation Jump to search
(url to sites of the game is now related to a template for easy and quick change)
(allowing pokemonname as input)
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
 
|style="width:17%"|Dyna
 
|style="width:17%"|Dyna
 
|- style="background-color:#e5e5e5;color:#4c4c4c"
 
|- style="background-color:#e5e5e5;color:#4c4c4c"
|<img src= "http://{{GameURL}}/images/pokemon/Normal/{{{num|0}}}.png" alt="No Normal form available">||<img src = "http://{{GameURL}}/images/pokemon/Shiny/{{{num|0}}}.png" alt="No Shiny form available">||<img src = "http://{{GameURL}}/images/pokemon/Midnight/{{{num|0}}}.png" alt="No Midnight form available">||<img src = "http://{{GameURL}}/images/pokemon/Snow/{{{num|0}}}.png" alt="No Snow form available">||<img src = "http://{{GameURL}}/images/pokemon/Golden/{{{num|0}}}.png" alt="No Golden form available">||<img src = "http://{{GameURL}}/images/pokemon/Dyna/{{{num|0}}}.png" alt="No Dyna form available">
+
|<img src= "http://{{GameURL}}/images/pokemon/Normal/{{#if:{{{num|}}}|{{{num|0}}}|{{Converter/NameNum|{{{pokname|{{PAGENAME}}}}}}}}}.png" alt="No Normal form available">||<img src = "http://{{GameURL}}/images/pokemon/Shiny/{{#if:{{{num|}}}|{{{num|0}}}|{{Converter/NameNum|{{{pokname|{{PAGENAME}}}}}}}}}.png" alt="No Shiny form available">||<img src = "http://{{GameURL}}/images/pokemon/Midnight/{{#if:{{{num|}}}|{{{num|0}}}|{{Converter/NameNum|{{{pokname|{{PAGENAME}}}}}}}}}.png" alt="No Midnight form available">||<img src = "http://{{GameURL}}/images/pokemon/Snow/{{#if:{{{num|}}}|{{{num|0}}}|{{Converter/NameNum|{{{pokname|{{PAGENAME}}}}}}}}}.png" alt="No Snow form available">||<img src = "http://{{GameURL}}/images/pokemon/Golden/{{#if:{{{num|}}}|{{{num|0}}}|{{Converter/NameNum|{{{pokname|{{PAGENAME}}}}}}}}}.png" alt="No Golden form available">||<img src = "http://{{GameURL}}/images/pokemon/Dyna/{{#if:{{{num|}}}|{{{num|0}}}|{{Converter/NameNum|{{{pokname|{{PAGENAME}}}}}}}}}.png" alt="No Dyna form available">
 
|}
 
|}
 
[[Category:Pokémon]]
 
[[Category:Pokémon]]
 
</includeonly>
 
</includeonly>
 
<noinclude><pre>{{Sprites
 
<noinclude><pre>{{Sprites
|num=  (Pokegen dex number. Default: 0)
+
|num=  (Pokegen dex number. Default: 0, prioritized over pokname)
 +
|pokname=(name of the normal variant pokémon. can be used instead of num to obtain the sprites)
 
}}
 
}}
 
</pre>
 
</pre>
Line 18: Line 19:
  
 
{{Sprites
 
{{Sprites
|num=1
+
|pokname=Bulbasaur
}}</noinclude>
+
}}
 +
</noinclude>

Latest revision as of 14:13, 21 June 2024

{{Sprites
|num=  (Pokegen dex number. Default: 0, prioritized over pokname)
|pokname=(name of the normal variant pokémon. can be used instead of num to obtain the sprites)
}}

Example:

Normal Shiny Midnight Snow Golden Dyna
No Normal form available No Shiny form available No Midnight form available No Snow form available No Golden form available No Dyna form available