Difference between revisions of "Template:Fish"
From PokéHeroes Wiki
m |
|||
(12 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <html><td style="text-align: center" class="fish{{{1}}}"><img src="http:// | + | <includeonly><html><td style="text-align: center" class="fish</html>{{{1}}}<html>"><img src="http://staticpokeheroes.com/img/pokemon/bw_front/0</html>{{{2}}}<html>.png"><br><img src="http://staticpokeheroes.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> | ||
+ | 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:<br> | ||
+ | <code><nowiki>{{{Fish|First parameter|Second Parameter|Third parameter}}}</nowiki></code> | ||
+ | *'''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:<br> | ||
+ | *<code><nowiki>{{Fish|common|72|Tentacool}}</nowiki></code> | ||
+ | *<code><nowiki>{{Fish|uncommon|72|Tentacool}}</nowiki></code> | ||
+ | *<code><nowiki>{{Fish|rare|72|Tentacool}}</nowiki></code> | ||
+ | *<code><nowiki>{{Fish|veryrare|72|Tentacool}}</nowiki></code> | ||
+ | *<code><nowiki>{{Fish|superrare|72|Tentacool}}</nowiki></code> | ||
+ | This would turn into: | ||
+ | <html> | ||
+ | <style> | ||
+ | .fishingtable > td { | ||
+ | border-width: 1px; | ||
+ | border-color: #3292C5; | ||
+ | border-style: solid; | ||
+ | } | ||
+ | |||
+ | .fishcommon { | ||
+ | background-color: #e0e7f1; | ||
+ | border-width: 1px; | ||
+ | border-color: #3292C5; | ||
+ | border-style: solid; | ||
+ | } | ||
+ | |||
+ | .fishuncommon { | ||
+ | background-color: #B3C4DB; | ||
+ | border-width: 1px; | ||
+ | border-color: #3292C5; | ||
+ | border-style: solid; | ||
+ | } | ||
+ | |||
+ | .fishrare { | ||
+ | background-color: #709DDB; | ||
+ | border-width: 1px; | ||
+ | border-color: #3292C5; | ||
+ | border-style: solid; | ||
+ | } | ||
+ | .fishvery_rare { | ||
+ | background-color: #8CA0A0; | ||
+ | border-width: 1px; | ||
+ | border-color: #3292C5; | ||
+ | border-style: solid; | ||
+ | .fishsuper_rare { | ||
+ | background-color: #647373; | ||
+ | border-width: 1px; | ||
+ | border-color: #3292C5; | ||
+ | border-style: solid; | ||
+ | } | ||
+ | } | ||
+ | </style> | ||
+ | <script> | ||
+ | $( document ).ready(function() { | ||
+ | $('span.fishrarity').each(function(){ | ||
+ | var content = $(this).html(); | ||
+ | content = content.replace(/_/ig,' '); | ||
+ | $(this).html(content); | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
+ | |||
+ | <table class="fishingtable"><tr></html> | ||
+ | {{Fish|common|72|Tentacool}}{{Fish|uncommon|72|Tentacool}}{{Fish|rare|72|Tentacool}}{{Fish|very_rare|72|Tentacool}}{{Fish|super_rare|72|Tentacool}} | ||
+ | <html></tr></table></html> | ||
+ | </noinclude> |
Latest revision as of 09:48, 23 November 2018
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}}
{{Fish|superrare|72|Tentacool}}
This would turn into:
Tentacool common |
Tentacool uncommon |
Tentacool rare |
Tentacool very_rare |
Tentacool super_rare |