Template:Mv: Difference between revisions

for gifs
({{animated}} defaults if ani!=yes - all move images should either have {{anipng}} or {{animated}} now)
(for gifs)
Line 1: Line 1:
{{#ifeq:{{{ani|}}}|yes||{{#ifeq:{{FULLPAGENAME}}|Template:Mv||{{animated}}}}}}
<includeonly>{{#switch:{{{ani|}}}|yes|gif=|{{animated}}}}</includeonly>
{| style="border: 1px solid #C0C0C0; background-color:#FFFFCC; {{roundy|40px}}" align="center" width="100%"
{| style="border: 1px solid #C0C0C0; background-color:#FFFFCC; {{roundy|40px}}" align="center" width="100%"
|-
|-
| width="24px" style="{{roundy|90px}} background: #FFFFFF" | [[File:Bag TM {{{type|Unknown}}} Sprite.png]]
| width="24px" style="{{roundy|90px}} background: #FFFFFF" | [[File:Bag TM {{{type|Unknown}}} Sprite.png]]
| {{#ifeq:{{{1|None}}}|None||{{p|{{{1|Pikachu}}}}} using}} {{m|{{{2|Tackle}}}}} in {{#switch: {{{3|5}}}|5|bw={{bp|Pokémon Black and White Versions|Black and White}}|4={{bp|Pokémon Diamond and Pearl Versions|Diamond, Pearl}}, {{bp|Pokémon Platinum Version|Platinum}}, {{bp|Pokémon HeartGold and SoulSilver Versions|HeartGold and SoulSilver}}|dp={{bp|Pokémon Diamond and Pearl Versions|Diamond and Pearl}}|pt={{bp|Pokémon Platinum|Platinum}}|dppt={{bp|Pokémon Diamond and Pearl Versions|Diamond, Pearl}} and {{bp|Pokémon Platinum|Platinum}}|hgss|hs={{bp|Pokémon HeartGold and SoulSilver Versions|HeartGold and SoulSilver}}|3={{bp|Pokémon Ruby and Sapphire Versions|Ruby, Sapphire,}} {{bp|Pokémon Emerald Version|Emerald,}} {{bp|Pokémon FireRed and LeafGreen Versions|FireRed and LeafGreen}}|2={{bp|Pokémon Gold and Silver Versions|Gold, Silver}} and {{bp|Pokémon Crystal Version|Crystal}}|1={{bp|Pokémon Red and Blue Versions|Red,}} {{bp|Pokémon Red and Green Versions|Green,}} {{bp|Pokémon Blue Version (Japanese)|Blue,}} and {{bp|Pokémon Yellow Version|Yellow}}}}.
| {{#ifeq:{{{1|None}}}|None||{{p|{{{1|Pikachu}}}}} using}} {{m|{{{2|Tackle}}}}} in {{#switch: {{{3|5}}}|5|bw={{bp|Pokémon Black and White Versions|Black and White}}|4={{bp|Pokémon Diamond and Pearl Versions|Diamond, Pearl}}, {{bp|Pokémon Platinum Version|Platinum}}, {{bp|Pokémon HeartGold and SoulSilver Versions|HeartGold and SoulSilver}}|dp={{bp|Pokémon Diamond and Pearl Versions|Diamond and Pearl}}|pt={{bp|Pokémon Platinum|Platinum}}|dppt={{bp|Pokémon Diamond and Pearl Versions|Diamond, Pearl}} and {{bp|Pokémon Platinum|Platinum}}|hgss|hs={{bp|Pokémon HeartGold and SoulSilver Versions|HeartGold and SoulSilver}}|3={{bp|Pokémon Ruby and Sapphire Versions|Ruby, Sapphire,}} {{bp|Pokémon Emerald Version|Emerald,}} {{bp|Pokémon FireRed and LeafGreen Versions|FireRed and LeafGreen}}|2={{bp|Pokémon Gold and Silver Versions|Gold, Silver}} and {{bp|Pokémon Crystal Version|Crystal}}|1={{bp|Pokémon Red and Blue Versions|Red,}} {{bp|Pokémon Red and Green Versions|Green,}} {{bp|Pokémon Blue Version (Japanese)|Blue,}} and {{bp|Pokémon Yellow Version|Yellow}}}}.
|}{{#ifeq:{{{ani|}}}|yes|{{anipng}}|}}<noinclude>[[Category:Summary templates]]</noinclude><includeonly>[[Category:Moves (game)]]{{#ifeq:{{{1|None}}}|None||[[Category:{{{1|}}}]]}}{{#if:{{{target|}}}|[[Category:{{{target|}}}]]}}</includeonly>
|}{{#switch:{{{ani|}}}|yes={{anipng}}|gif=[[Category:Animated gif files]]}}<noinclude>[[Category:Summary templates]]</noinclude><includeonly>[[Category:Moves (game)]]{{#ifeq:{{{1|None}}}|None||[[Category:{{{1|}}}]]}}{{#if:{{{target|}}}|[[Category:{{{target|}}}]]}}</includeonly>