From StrategyWiki, the video game walkthrough and strategy guide wiki
Jump to navigation Jump to search
(Adding documentation to test module)
Tags: Mobile edit Mobile web edit
 
(Json was split by game)
Tags: Mobile edit Mobile web edit
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{TemplateStyles|Template:Pokemon Ranger/styles.css|Template:Pokemon Ranger/Wild/styles.css}}
{{TemplateStyles|Template:Pokemon Ranger/styles.css}}
{{Lua|Module:Pokemon Ranger/Wild}}
{{Lua|Module:Pokemon/Ranger}}
{{t|Pokemon Ranger/Wild}} and {{t|Pokemon Ranger/Wild capture}} are a family of templates used to create encounter tables for [[:Category:Pokémon Ranger|Pokémon Ranger]] games.  
{{t|Pokemon Ranger/Capture}} is used to create an encounter table for {{c|Pokémon Ranger}} games. The template will automatically detect the guide it is used in and display the appropriate content based on the provided browser numbers.


==Usage==
==Usage==
===Pokemon Ranger/Wild===
<code><nowiki>{{</nowiki>Pokemon Ranger/Capture|''browsernum''|''browsernum''|...}}</nowiki></code>
{{t|Pokemon Ranger/Wild}} is the primary template in the family, and determines the text put into the main header columns. The syntax for placing the template into an article looks like this:
<code><nowiki>{{</nowiki>Pokemon Ranger/Wild|''gamecode''|''mode''}}</code>


<code>''gamecode''</code> determines what game(s) the template is used for. Acceptable codes are as follows:
<code>''browsernum''</code> is the Browser Number of the desired Pokémon. It is used to display all the relevant information in the table. As many entries as required may be entered. For a list of valid numbers and their corresponding pokémon, see [[Module:Pokemon/Ranger.json]] for the Fiore Browser, [[Module:Pokemon/Ranger SoA.json]] for Almia Browser, and [[Module:Pokemon/Ranger GS.json]] for the Oblivia Browser.
{{ContentBoxContainer}}
{| {{prettytable|notwide=1}}
! Code !! Game(s)
|-
| RA || Ranger
|-
| SoA || Shadows of Almia
|-
| GS || Guardian Signs
|}
</div>


<code>''mode''</code> determines whether the encounters have an additional requirement, such as a time of day or weather state. The acceptable modes are as follows:
<noinclude>[[Category:Template documentation]]</noinclude>
 
{| {{prettytable|notwide=1}}
!Mode !!Use
|-
|''Variable left blank''||Defaults to the ''Base'' mode.
|-
|Base||Sets the table as the standard type, where there the Pokémon have field moves and no Challenge points.
|-
|Challenge||Sets the table to have requirements to see Pokémon in the Challenge and how many Challenge points you get for capturing it. Field Moves are replaced with points
|}
 
===Pokemon Ranger/Wild capture===
{{t|Pokemon Ranger/Wild capture}} makes up the bulk of your encounters table. One instance of the template must be used for each and every Pokémon you want. The syntax for this template is as follows:
 
<code><nowiki>{{</nowiki>Pokemon/Wild row|''gamecode''|''mode''|''browsernum''|''loops''|''field move/challenge points''|''requirement''}}</code>
 
<code>''gamecode''</code> must be inputted for every row. The code that is inputted determines what generation the Pokémon's sprite is taken from.
 
<code>''mode''</code> only needs to be inputted if it isn't left blank in the {{t|Pokemon/Wild}} template. It determines how many columns the row can have.
 
<code>''browsernum''</code> is the Browser Number of the desired Pokémon. It is used to determine the Pokémon's sprite (alongside <code>''gamecode''</code>), as well as the Pokémon's name. For a list of valid numbers and their corresponding pokémon, see [[Module:Pokemon Ranger/Browser.json]].
 
<code>''loops''</code> is how many loops you need to make to capture the Pokémon.
 
<code>''field move''</code> is the Pokemon's move which you can use on objects on your path. It is only used if you left <code>''mode''</code> blank in {{t|Pokemon Ranger/Wild}}
 
<code>''challenge points''</code> is how many points you get for capturing the Pokémon in a Capture Challenge. It replaces <code>''field move''</code> if you insert Challenge into <code>''mode''</code> in {{t|Pokemon Ranger/Wild}}
 
<code>''requirement''</code> is what you need to do in order to make the Pokémon appear. If no requirement then leave it blank. Is only used if you insert Challenge into <code>''mode''</code> in {{t|Pokemon Ranger/Wild}}
 
''Examples'' section for further details.
 
==Examples==
The following are a series of examples of how the <code><nowiki>{{Pokemon/Wild}}</nowiki></code> family of templates may be used in various forms.
 
===No mode===
The code:
<pre>
{{Pokemon Ranger/Wild|RA}}
{{Pokemon Ranger/Wild capture|RA||001|3|Cross}}
{{Pokemon Ranger/Wild capture|RA||002|3|Cross}}
|}
</pre>
 
The result:
{{Pokemon Ranger/Wild|RA}}
{{Pokemon Ranger/Wild capture|RA||001|3|Cross}}
{{Pokemon Ranger/Wild capture|RA||002|3|Cross}}
|}
===Mode===
The code:
<pre>
{{Pokemon Ranger/Wild|RA|Challenge}}
{{Pokemon Ranger/Wild capture|RA||001|3|Cross}}
{{Pokemon Ranger/Wild capture|RA||002|3|Cross}}
|}
</pre>
 
The result:
{{Pokemon Ranger/Wild|RA|Challenge}}
{{Pokemon Ranger/Wild capture|RA||001|3|Cross}}
{{Pokemon Ranger/Wild capture|RA||002|3|Cross}}
|}

Latest revision as of 01:35, 26 April 2024

{{Pokemon Ranger/Capture}} is used to create an encounter table for Pokémon Ranger games. The template will automatically detect the guide it is used in and display the appropriate content based on the provided browser numbers.

Usage[edit]

{{Pokemon Ranger/Capture|browsernum|browsernum|...}}</nowiki>

browsernum is the Browser Number of the desired Pokémon. It is used to display all the relevant information in the table. As many entries as required may be entered. For a list of valid numbers and their corresponding pokémon, see Module:Pokemon/Ranger.json for the Fiore Browser, Module:Pokemon/Ranger SoA.json for Almia Browser, and Module:Pokemon/Ranger GS.json for the Oblivia Browser.