PRO Wiki Discord

Difference between revisions of "Template:AreaLandSpawns"

From Pokémon Revolution Online Wiki
Jump to: navigation, search
 
Line 8: Line 8:
 
-->{{#if:{{{Location|}}} | {{#vardefine:Location|{{{Location}}}}}  | {{#vardefine:Location|{{PAGENAME}}}} }}{{#if:{{{Type|}}} | {{#vardefine:border|#{{{{{Type}}}_color_dark}}}}{{#vardefine:background|#{{{{{Type}}}_color}}}}{{#vardefine:cell|#{{{{{Type}}}_color_light}}}}}}<!--
 
-->{{#if:{{{Location|}}} | {{#vardefine:Location|{{{Location}}}}}  | {{#vardefine:Location|{{PAGENAME}}}} }}{{#if:{{{Type|}}} | {{#vardefine:border|#{{{{{Type}}}_color_dark}}}}{{#vardefine:background|#{{{{{Type}}}_color}}}}{{#vardefine:cell|#{{{{{Type}}}_color_light}}}}}}<!--
  
-->{{#get_web_data:url=http://prowiki.info/index.php?title=Special:GetData/RawSpawnData|format=CSV with header|filters=Map={{#var:Location}}|data=member=Member,number=DexID,name=Pokemon,morning=Morning,day=Day,night=Night,item=Item,rarity=Tier,MinLvl=MinLvl,MaxLvl=MaxLvl}}<!--
+
-->{{#get_web_data:url=http://prowiki.info/index.php?title=Special:GetData/RawSpawnData|format=CSV with header|filters=Map={{#var:Location}}|data=member=Member,number=DexID,name=Pokemon,morning=Morning,day=Day,night=Night,item=Item,rarity=Tier,lvls=Levels}}<!--
 
--><table align="center" style="width: 85%; max-width: 90%; text-align: center; cellpadding: 3px; cellspacing: 10px; margin: auto auto; border-radius: 15px; border: 4px solid {{#var:border}}; background-color: {{#var:background}}; padding: 7px;">
 
--><table align="center" style="width: 85%; max-width: 90%; text-align: center; cellpadding: 3px; cellspacing: 10px; margin: auto auto; border-radius: 15px; border: 4px solid {{#var:border}}; background-color: {{#var:background}}; padding: 7px;">
 
<tr style="background-color: {{#var:cell}};"><th scope="col" colspan="2" style="border-radius: 15px 1px 1px 1px; width: 15%; border: 2px solid {{#var:border}}; color: {{#var:border}};">Pokémon</th><th scope="col" style="width: 23%; border: 2px solid {{#var:border}}; color: {{#var:border}};">Level range</th><th colspan="3" scope="col" style="width: 6%; border: 2px solid {{#var:border}};">[[Pokétime|<span style="color: {{#var:border}};">Times</span>]]</th><th style="width: 20%; border: 2px solid {{#var:border}}; color: {{#var:border}};">Held Item</th><th style="border-radius: 1px 15px 1px 1px; width: 10%; border: 2px solid {{#var:border}};">[[List of Pokémon by Rarity Tier|<span style="color: {{#var:border}};">Rarity Tier</span>]]</tr>
 
<tr style="background-color: {{#var:cell}};"><th scope="col" colspan="2" style="border-radius: 15px 1px 1px 1px; width: 15%; border: 2px solid {{#var:border}}; color: {{#var:border}};">Pokémon</th><th scope="col" style="width: 23%; border: 2px solid {{#var:border}}; color: {{#var:border}};">Level range</th><th colspan="3" scope="col" style="width: 6%; border: 2px solid {{#var:border}};">[[Pokétime|<span style="color: {{#var:border}};">Times</span>]]</th><th style="width: 20%; border: 2px solid {{#var:border}}; color: {{#var:border}};">Held Item</th><th style="border-radius: 1px 15px 1px 1px; width: 10%; border: 2px solid {{#var:border}};">[[List of Pokémon by Rarity Tier|<span style="color: {{#var:border}};">Rarity Tier</span>]]</tr>
Line 15: Line 15:
 
<td>[[File:{{{number}}}Icon.png]]</td>
 
<td>[[File:{{{number}}}Icon.png]]</td>
 
<td>[[{{{name}}}|<span style="color:{{{member}}};">{{{name}}}</span>]]</td>
 
<td>[[{{{name}}}|<span style="color:{{{member}}};">{{{name}}}</span>]]</td>
<td>{{{MinLvl}}}-{{{MaxLvl}}}</td>
+
<td>{{{lvls}}}</td>
 
<td width="8%" style="background-color: #{{ {{{morning}}}_color}}; border: 2px solid #{{ {{{morning}}}_color_dark}};"><span style="color:#{{ {{{morning}}}_color_dark}}; font-weight: bold;">{{{morning}}}</span></td>
 
<td width="8%" style="background-color: #{{ {{{morning}}}_color}}; border: 2px solid #{{ {{{morning}}}_color_dark}};"><span style="color:#{{ {{{morning}}}_color_dark}}; font-weight: bold;">{{{morning}}}</span></td>
 
<td width="8%" style="background-color: #{{ {{{day}}}_color}}; border: 2px solid #{{ {{{day}}}_color_dark}};"><span style="color:#{{ {{{day}}}_color_dark}}; font-weight: bold;">{{{day}}}</span></td>
 
<td width="8%" style="background-color: #{{ {{{day}}}_color}}; border: 2px solid #{{ {{{day}}}_color_dark}};"><span style="color:#{{ {{{day}}}_color_dark}}; font-weight: bold;">{{{day}}}</span></td>

Latest revision as of 18:13, 11 October 2019

This is to be used on area-specific pages.

If Pokemon-spawn data is documented for the page name on RawSpawnData, it'll be auto-tabulated when this template is applied on the page. To specify the locational name, use the {{{Location}}} parameter—especially recommendable for multisectional areas.