Template:Catch/entry6: Difference between revisions

From The Pokemon Insurgence Wiki
No edit summary
(Add method to prevent invalid links when trade request accepts a category such as "Any Dragon-type Pokemon")
 
(4 intermediate revisions by 2 users not shown)
Line 9: Line 9:
{| width="100%" style="background:transparent;"
{| width="100%" style="background:transparent;"
|-
|-
| width="30px" | {{#switch: {{{5|Grass}}}|Grass=[[File:BW Grass Sp.png|Grass]]|Surf=[[File:BW Surf {{#switch: {{#expr: {{#time: s}} mod 2}}|0=M|1=F}}.png|Surfing]]|Cave=[[File:BW Cave.png|Cave]]|Fish Old=[[File:Bag Old Rod Sprite.png|Old Rod]]|Fish Good=[[File:Bag Good Rod Sprite.png|Good Rod]]|Fish Super|Fishing=[[File:Bag Super Rod Sprite.png|Super Rod]]|Sand=[[File:BW Sand.png|Sand]]|Rock Smash=[[File:I Rock Smash.png]]|Interact=[[File:I Interact.png]]|Broadcast Mission 1=[[File:I Camera.png]]|Broadcast Mission 2=[[File:I Camera.png]]|Scientist Mission 1=[[File:I Scientist.png]]|Dark=[[File:BW Dark Grass Sp.png|Dark grass]]|Rustling=[[File:BW Rustling Grass Sp.png|Rustling grass]]|Dust=[[File:BW Dust Cloud.png|Dust cloud]]|Shadow=[[File:BW Flying Pokémon Shadow.png|Flying Pokémon's shadow]]|Rippling=[[File:BW Rippling Water.png|Rippling water]]|Seaweed=[[File:I_Seaweed.png]]|Rough=[[File:BW Rough.png]]|Building=[[File:BW Door.png|Building]]|Fake|Gift=[[File:Poké Ball.png|Gift]]|Starter=[[File:None.png|Starter Pokémon]]|Swarm=???|Grotto=[[File:B2W2 Grotto Spring.png|Hidden Grotto]]|Puddle=[[File:BW Puddle.png|Puddle]]|Tall grass=[[File:BW Long Grass Sp.png]]|Dark tall grass=[[File:BW Dark Long Grass Sp.png]]|Egg=[[File:Egg.png|Egg]]|Purchase=[[File:Coin Case.png|Purchase]]|Dome=[[File:Bag Dome Fossil Sprite.png|Dome Fossil]]|Helix=[[File:Bag Helix Fossil Sprite.png|Helix Fossil]]|Amber=[[File:Bag Old Amber Sprite.png|Old Amber]]|Root=[[File:Bag Root Fossil Sprite.png|Root Fossil]]|Claw=[[File:Bag Claw Fossil Sprite.png|Claw Fossil]]|Skull=[[File:Bag Skull Fossil Sprite.png|Skull Fossil]]|Armor=[[File:Bag Armor Fossil Sprite.png|Armor Fossil]]|Cover=[[File:Bag Cover Fossil Sprite.png|Cover Fossil]]|Plume=[[File:Bag Plume Fossil Sprite.png|Plume Fossil]]|Jaw=[[File:None.png|24px|Jaw Fossil]]|Sail=[[File:None.png|24px|Sail Fossil]]|Trade=[[File:{{{tradenum|000}}}.png|40px|{{{tradenum|000}}}|link={{{tradename|Missingno.}}} (Pokémon)]]|Special=[[File:Premier Ball.png|Premier Ball]]|[[File:None.png|20px|{{{5|Whatever}}}]]}}
| width="30px" | {{#switch: {{{5|Grass}}}|Grass=[[File:BW Grass Sp.png|Grass|link=]]|Surf=[[File:BW Surf {{#switch: {{#expr: {{#time: s}} mod 2}}|0=M|1=F}}.png|Surfing|link=]]|Cave=[[File:BW Cave.png|Cave|link=]]|Fish Old=[[File:Bag Old Rod Sprite.png|Old Rod|link=]]|Fish Good=[[File:Bag Good Rod Sprite.png|Good Rod|link=]]|Fish Super|Fishing=[[File:Bag Super Rod Sprite.png|Super Rod|link=]]|Sand=[[File:BW Sand.png|Sand|link=]]|Rock Smash=[[File:I Rock Smash.png|Rock Smash||link=]]|Interact=[[File:I Interact.png|Interact|link=]]|Broadcast Mission 1=[[File:I Camera.png|link=]]|Broadcast Mission 2=[[File:I Camera.png]]|Broadcast Mission 4=[[File:I Camera.png]]|Broadcast Mission 5=[[File:I Camera.png]]|Broadcast Mission 7=[[File:I Camera.png|link=]]|Scientist Mission 1=[[File:I Scientist.png|link=]]|Dark=[[File:BW Dark Grass Sp.png|Dark grass|link=]]|Rustling=[[File:BW Rustling Grass Sp.png|Rustling grass|link=]]|Dust=[[File:BW Dust Cloud.png|Dust cloud|link=]]|Shadow=[[File:BW Flying Pokémon Shadow.png|Flying Pokémon's shadow|link=]]|Rippling=[[File:BW Rippling Water.png|Rippling water|link=]]|Seaweed=[[File:I_Seaweed.png|link=]]|Rough=[[File:BW Rough.png|link=]]|Building=[[File:BW Door.png|Building|link=]]|Fake|Gift=[[File:Poké Ball.png|Gift|link=]]|Starter=[[File:None.png|Starter Pokémon|link=]]|Swarm=???|Grotto=[[File:B2W2 Grotto Spring.png|Hidden Grotto|link=]]|Puddle=[[File:BW Puddle.png|Puddle|link=]]|Tall grass=[[File:BW Long Grass Sp.png|link=]]|Dark tall grass=[[File:BW Dark Long Grass Sp.png]]|Egg=[[File:Egg.png|Egg|link=]]|Purchase=[[File:Coin Case.png|Purchase|link=]]|Dome=[[File:Bag Dome Fossil Sprite.png|Dome Fossil|link=]]|Helix=[[File:Bag Helix Fossil Sprite.png|Helix Fossil|link=]]|Amber=[[File:Bag Old Amber Sprite.png|Old Amber|link=]]|Root=[[File:Bag Root Fossil Sprite.png|Root Fossil|link=]]|Claw=[[File:Bag Claw Fossil Sprite.png|Claw Fossil|link=]]|Skull=[[File:Bag Skull Fossil Sprite.png|Skull Fossil|link=]]|Armor=[[File:Bag Armor Fossil Sprite.png|Armor Fossil|link=]]|Cover=[[File:Bag Cover Fossil Sprite.png|Cover Fossil|link=]]|Plume=[[File:Bag Plume Fossil Sprite.png|Plume Fossil|link=]]|Jaw=[[File:None.png|24px|Jaw Fossil|link=]]|Sail=[[File:None.png|24px|Sail Fossil|link=]]|Trade=[[File:{{{tradenum|000}}}.png|40px|{{{tradename|Missingno.}}}|link=]]|Special=[[File:Premier Ball.png|Premier Ball|link=]]|[[File:None.png|20px|{{{5|Whatever}}}|link=]]}}
| {{#switch: {{{5|Grass}}}|Grass=[[bulbapedia:Tall grass|<span style="color:#000;">Grass</span>]]|Surf=[[HM Replacements#Surf|<span style="color:#000;">Surfing</span>]]|Cave=[[bulbapedia:Cave|<span style="color:#000;">Cave</span>]]|Fish Old=[[bulbapedia:Fishing|<span style="color:#000;">Fishing</span>]]<br><span style="line-height:8px"><small>Old&nbsp;Rod</small></span>|Fish Good=[[bulbapedia:Fishing|<span style="color:#000;">Fishing</span>]]<br><span style="line-height:8px"><small>Good&nbsp;Rod</small></span>|Fish Super|Fishing=[[bulbapedia:Fishing|<span style="color:#000;">Fishing</span>]]<br><span style="line-height:8px"><small>Super&nbsp;Rod</small></span>|Dark=[[bulbapedia:Tall grass#Dark grass|<span style="color:#000;">Dark grass</span>]]|Rustling=[[bulbapedia:Phenomenon#Rustling grass|<span style="color:#000;">Rustling grass</span>]]|Dust=[[bulbapedia:Phenomenon#Dust cloud|<span style="color:#000;">Dust cloud</span>]]|Shadow=[[bulbapedia:Phenomenon#Flying Pokémon's shadow|<span style="color:#000;">Flying Pokémon's shadow</span>]]|Rippling=[[bulbapedia:Phenomenon#Rippling water|<span style="color:#000;">Rippling water</span>]]|Sand=[[bulbapedia:Sand tile#Deep sand|<span style="color:#000;">Deep sand</span>]]|Grotto=[[Hidden Grotto|<span style="color:#000;">Hidden Grotto</span>]]|Rock Smash=[[HM Replacements#Rock Smash|<span style="color:#000;">Rock Smash</span>]]|Broadcast Mission 1=<span style="color:#000;">Mission 1</span>|Broadcast Mission 2=<span style="color:#000;">Mission 2</span>|Scientist Mission 1=<span style="color:#000;">Mission 1</span>|Fake=[[bulbapedia:Item|<span style="color:#000;">Fake item</span>]]|Building=Walking|Gift=Gift|Starter=[[Starter Pokémon|<span style="color:#000;">Starter&nbsp;Pokémon</span>]]|Swarm=[[bulbapedia:Pokémon outbreak|<span style="color:#000;">Swarm</span>]]|Puddle=[[bulbapedia:Puddle|<span style="color:#000;">Puddle</span>]]|Tall grass=[[bulbapedia:Tall grass#Long grass|<span style="color:#000;">Tall grass</span>]]|Dark tall grass=[[bulbapedia:Tall grass#Long grass|<span style="color:#000;">Tall grass</span>]]|Egg=[[bulbapedia:Pokémon Egg|<span style="color:#000;">Egg</span>]]|Purchase=[[bulbapedia:Goldenrod Game Corner|<span style="color:#000;">Purchase</span>]]|Dome=[[bulbapedia:Fossil|<span style="color:#000;">Revive</span>]]<br><span style="line-height:8px"><small>Dome&nbsp;Fossil</small></span>|Helix=[[bulbapedia:Fossil|<span style="color:#000;">Revive</span>]]<br><span style="line-height:8px"><small>Helix&nbsp;Fossil</small></span>|Amber=[[bulbapedia:Fossil|<span style="color:#000;">Revive</span>]]<br><span style="line-height:8px"><small>Old&nbsp;Amber</small></span>|Root=[[bulbapedia:Fossil|<span style="color:#000;">Revive</span>]]<br><span style="line-height:8px"><small>Root&nbsp;Fossil</small></span>|Claw=[[bulbapedia:Fossil|<span style="color:#000;">Revive</span>]]<br><span style="line-height:8px"><small>Claw&nbsp;Fossil</small></span>|Skull=[[bulbapedia:Fossil|<span style="color:#000;">Revive</span>]]<br><span style="line-height:8px"><small>Skull&nbsp;Fossil</small></span>|Armor=[[bulbapedia:Fossil|<span style="color:#000;">Revive</span>]]<br><span style="line-height:8px"><small>Armor&nbsp;Fossil</small></span>|Cover=[[bulbapedia:Fossil|<span style="color:#000;">Revive</span>]]<br><span style="line-height:8px"><small>Cover&nbsp;Fossil</small></span>|Plume=[[bulbapedia:Fossil|<span style="color:#000;">Revive</span>]]<br><span style="line-height:8px"><small>Plume&nbsp;Fossil</small></span>|Jaw=[[bulbapedia:Fossil|<span style="color:#000;">Revive</span>]]<br><span style="line-height:8px"><small>Jaw&nbsp;Fossil</small></span>|Sail=[[bulbapedia:Fossil|<span style="color:#000;">Revive</span>]]<br><span style="line-height:8px"><small>Sail&nbsp;Fossil</small></span>|Trade=[[List of in-game trades|<span style="color:#000;">Trade</span>]]<br><span style="line-height:8px"><small>{{#ifeq:{{{tradename|Any}}}|Any|Any&nbsp;Pokémon|[[bulbapedia:{{{tradename|Missingno.}}} (Pokémon)|<span style="color:#000;">{{{tradename|Missingno.}}}</span>]]}}</small></span>|Special=Only one|{{{5|Whatever}}}}}
| {{#switch: {{{5|Grass}}}|Grass=[[bulbapedia:Tall grass|<span style="color:#000;">Grass</span>]]|Surf=[[HM Replacements#Surf|<span style="color:#000;">Surfing</span>]]|Cave=[[bulbapedia:Cave|<span style="color:#000;">Cave</span>]]|Fish Old=[[bulbapedia:Fishing|<span style="color:#000;">Fishing</span>]]<br><span style="line-height:8px"><small>Old&nbsp;Rod</small></span>|Fish Good=[[bulbapedia:Fishing|<span style="color:#000;">Fishing</span>]]<br><span style="line-height:8px"><small>Good&nbsp;Rod</small></span>|Fish Super|Fishing=[[bulbapedia:Fishing|<span style="color:#000;">Fishing</span>]]<br><span style="line-height:8px"><small>Super&nbsp;Rod</small></span>|Dark=[[bulbapedia:Tall grass#Dark grass|<span style="color:#000;">Dark grass</span>]]|Rustling=[[bulbapedia:Phenomenon#Rustling grass|<span style="color:#000;">Rustling grass</span>]]|Dust=[[bulbapedia:Phenomenon#Dust cloud|<span style="color:#000;">Dust cloud</span>]]|Shadow=[[bulbapedia:Phenomenon#Flying Pokémon's shadow|<span style="color:#000;">Flying Pokémon's shadow</span>]]|Rippling=[[bulbapedia:Phenomenon#Rippling water|<span style="color:#000;">Rippling water</span>]]|Sand=[[bulbapedia:Sand tile#Deep sand|<span style="color:#000;">Deep sand</span>]]|Grotto=[[Hidden Grotto|<span style="color:#000;">Hidden Grotto</span>]]|Rock Smash=[[HM Replacements#Rock Smash|<span style="color:#000;">Rock Smash</span>]]|Broadcast Mission 1=<span style="color:#000;">Mission 1</span>|Broadcast Mission 2=<span style="color:#000;">Mission 2</span>|Scientist Mission 1=<span style="color:#000;">Mission 1</span>|Fake=[[bulbapedia:Item|<span style="color:#000;">Fake item</span>]]|Building=Walking|Gift=Gift|Starter=[[Starter Pokémon|<span style="color:#000;">Starter&nbsp;Pokémon</span>]]|Swarm=[[bulbapedia:Pokémon outbreak|<span style="color:#000;">Swarm</span>]]|Puddle=[[bulbapedia:Puddle|<span style="color:#000;">Puddle</span>]]|Tall grass=[[bulbapedia:Tall grass#Long grass|<span style="color:#000;">Tall grass</span>]]|Dark tall grass=[[bulbapedia:Tall grass#Long grass|<span style="color:#000;">Tall grass</span>]]|Egg=[[bulbapedia:Pokémon Egg|<span style="color:#000;">Egg</span>]]|Purchase=[[bulbapedia:Goldenrod Game Corner|<span style="color:#000;">Purchase</span>]]|Dome=[[bulbapedia:Fossil|<span style="color:#000;">Revive</span>]]<br><span style="line-height:8px"><small>Dome&nbsp;Fossil</small></span>|Helix=[[bulbapedia:Fossil|<span style="color:#000;">Revive</span>]]<br><span style="line-height:8px"><small>Helix&nbsp;Fossil</small></span>|Amber=[[bulbapedia:Fossil|<span style="color:#000;">Revive</span>]]<br><span style="line-height:8px"><small>Old&nbsp;Amber</small></span>|Root=[[bulbapedia:Fossil|<span style="color:#000;">Revive</span>]]<br><span style="line-height:8px"><small>Root&nbsp;Fossil</small></span>|Claw=[[bulbapedia:Fossil|<span style="color:#000;">Revive</span>]]<br><span style="line-height:8px"><small>Claw&nbsp;Fossil</small></span>|Skull=[[bulbapedia:Fossil|<span style="color:#000;">Revive</span>]]<br><span style="line-height:8px"><small>Skull&nbsp;Fossil</small></span>|Armor=[[bulbapedia:Fossil|<span style="color:#000;">Revive</span>]]<br><span style="line-height:8px"><small>Armor&nbsp;Fossil</small></span>|Cover=[[bulbapedia:Fossil|<span style="color:#000;">Revive</span>]]<br><span style="line-height:8px"><small>Cover&nbsp;Fossil</small></span>|Plume=[[bulbapedia:Fossil|<span style="color:#000;">Revive</span>]]<br><span style="line-height:8px"><small>Plume&nbsp;Fossil</small></span>|Jaw=[[bulbapedia:Fossil|<span style="color:#000;">Revive</span>]]<br><span style="line-height:8px"><small>Jaw&nbsp;Fossil</small></span>|Sail=[[bulbapedia:Fossil|<span style="color:#000;">Revive</span>]]<br><span style="line-height:8px"><small>Sail&nbsp;Fossil</small></span>|Trade=[[List of in-game trades|<span style="color:#000;">Trade</span>]]<br><span style="line-height:8px"><small>{{#ifeq:{{{tradenum|000}}}|000|{{{tradename|Missingno.}}}|[[bulbapedia:{{{tradename|Missingno.}}} (Pokémon)|<span style="color:#000;">{{{tradename|Missingno.}}}</span>]]}}</small></span>|Special=Only one|{{{5|Whatever}}}}}
|}
|}
| style="background:#FFFFFF;" | {{{6|1}}}
| style="background:#FFFFFF;" | {{{6|1}}}
Line 18: Line 18:
{{!}} style="background:#{{winter color light}};" {{!}} {{{10|100%}}}}}<noinclude>
{{!}} style="background:#{{winter color light}};" {{!}} {{{10|100%}}}}}<noinclude>
|}[[Category:Catch templates]]</noinclude>
|}[[Category:Catch templates]]</noinclude>
<noinclude>
Template documentation at [[bulbapedia:Template:Catch]]
If <code>tradenum</code> field is set to <code>000</code>, then <code>tradename</code> will not be converted to a link, under the assumption that it is used to more than one Pokémon (e.x. "Any Dragon-type Pokémon").
</noinclude>

Latest revision as of 02:40, 7 November 2024

001.png {{{2}}}
Grass Grass
1 100% 100% 100% 100%

Template documentation at bulbapedia:Template:Catch

If tradenum field is set to 000, then tradename will not be converted to a link, under the assumption that it is used to more than one Pokémon (e.x. "Any Dragon-type Pokémon").