Difference between revisions of "Template:Fish"
From PokéHeroes Wiki
Line 1: | Line 1: | ||
− | <includeonly><html><td style="text-align: center" class="fish</html>{{{1}}}<html>"><img src="http://pokeheroes.com/img/pokemon/bw_front/0</html>{{{2}}}<html>.png"><br><img src="http://pokeheroes.com/img/pokemon/bw_field/</html>{{{2}}}<html>.png"><i></html>{{{3}}}<html></i><br><hr><span class="fishrarity" | + | <includeonly><html><td style="text-align: center" class="fish</html>{{{1}}}<html>"><img src="http://pokeheroes.com/img/pokemon/bw_front/0</html>{{{2}}}<html>.png"><br><img src="http://pokeheroes.com/img/pokemon/bw_field/</html>{{{2}}}<html>.png"><i></html>{{{3}}}<html></i><br><hr><span class="fishrarity" style="font-weight: bold; text-transform: uppercase;"></html>{{{1}}}<html></span></td></html></includeonly> |
<noinclude> | <noinclude> | ||
Line 54: | Line 54: | ||
border-style: solid; | border-style: solid; | ||
} | } | ||
− | . | + | .fishvery_rare { |
background-color: #8CA0A0; | background-color: #8CA0A0; | ||
border-width: 1px; | border-width: 1px; | ||
Line 61: | Line 61: | ||
} | } | ||
</style> | </style> | ||
+ | <html> | ||
+ | <script> | ||
+ | $('span.fishrarity').each(function(){ | ||
+ | var content = $(this).html(); | ||
+ | content = content.replace(/_/ig,' '); | ||
+ | $(this).html(content); | ||
+ | }); | ||
+ | </script> | ||
+ | </html> | ||
<table class="fishingtable"><tr></html> | <table class="fishingtable"><tr></html> | ||
− | {{Fish|common|72|Tentacool}}{{Fish|uncommon|72|Tentacool}}{{Fish|rare|72|Tentacool}}{{Fish| | + | {{Fish|common|72|Tentacool}}{{Fish|uncommon|72|Tentacool}}{{Fish|rare|72|Tentacool}}{{Fish|very_rare|72|Tentacool}} |
<html></tr></table></html> | <html></tr></table></html> | ||
</noinclude> | </noinclude> |
Revision as of 03:04, 16 July 2016
This template was created for the Emera Beach-Article so we'd have an easy way to include all the Pokémon we can fish from there.
Usage
Pretty simple include:
{{{Fish|First parameter|Second Parameter|Third parameter}}}
- First parameter: Rarity.
- Second parameter: Pokémon PokéDex number (Without the 0 or the 1 for normal/shiny as the template would put it automatically.
- Third Parameter: Pokémon's name.
Available Rarities
Here are the ones that you can use right now. they'd also work as the Pokémon background color change, so try to not misspell them!
- Common.
- Uncommon.
- Rare.
- Veryrare (Use it without a space in the middle is it would break the code~).
Example
For this example I'm gonna use Tentacool:
{{Fish|common|72|Tentacool}}
{{Fish|uncommon|72|Tentacool}}
{{Fish|rare|72|Tentacool}}
{{Fish|veryrare|72|Tentacool}}
This would turn into:
![]() ![]() common |
![]() ![]() uncommon |
![]() ![]() rare |
![]() ![]() very_rare |