Difference between revisions of "Template:Sprites"

From PokeGen Wiki
Jump to navigation Jump to search
(allowing pokemonname as input)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{|class="wikitable"style="width:110px;height:96px;color:#f8f8ff;text-align:center;background-color:#4c4c4c;"
+
<includeonly>{|class="wikitable"style="width:100%;height:96px;color:#f8f8ff;text-align:center;background-color:#4c4c4c;"
| Normal  
+
|style="width:16%"|Normal
| Shiny
+
|style="width:16%"|Shiny  
| Midnight  
+
|style="width:17%"|Midnight  
| Snow
+
|style="width:17%"|Snow
| Golden
+
|style="width:17%"|Golden
| Dyna
+
|style="width:17%"|Dyna
|- style="background-color:#e5e5e5"
+
|- style="background-color:#e5e5e5;color:#4c4c4c"
|<img src= "http://pokegenrpg.com/images/pokemon/Normal/{{{num|0}}}.png">||<img src = "http://pokegenrpg.com/images/pokemon/Shiny/{{{num|0}}}.png">||<img src = "http://pokegenrpg.com/images/pokemon/Midnight/{{{num|0}}}.png">||<img src = "http://pokegenrpg.com/images/pokemon/Snow/{{{num|0}}}.png">||<img src = "http://pokegenrpg.com/images/pokemon/Golden/{{{num|0}}}.png">||<img src = "http://pokegenrpg.com/images/pokemon/Dyna/{{{num|0}}}.png">
+
|<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">
|}</includeonly>
+
|}
 +
[[Category:Pokémon]]
 +
</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></noinclude>
+
</pre>
 +
Example:
 +
 
 +
{{Sprites
 +
|pokname=Bulbasaur
 +
}}
 +
</noinclude>

Latest revision as of 13: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