Template:NPCTable: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
mNo edit summary
Cae (talk | contribs)
mNo edit summary
 
(22 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#get_web_data:url=https://wiki.pokemonrevolution.net/index.php?title=Special:GetData/PokemonRawList|format=CSV with header|data=number=Pokedex Number,name=Name}}
<table align="center" style="width: 90%; border-spacing: 5px; padding: 5px; text-align: center; border: 4px solid {{#var:border}}; border-radius: 25px; background-color: {{#var:cell}};">
{{#arraydefine:name|
<tr><td><div style="margin: auto auto; border: 3px solid {{#var:border}}; border-radius: 25px; font-weight: bold; width: 45%; padding: 3px; background-color: {{#var:background}};">{{PAGENAME}} Trainers</div></td></tr>
{{#for_external_table:
{{{name}}},
}}
}}
{{#arraydefine:number|
{{#for_external_table:
{{{number}}},
}}
}}
</includeonly>
<includeonly>{{#if:{{{Type|}}} | {{#vardefine:border|#{{{{{Type}}}_color_dark}}}}{{#vardefine:background|#{{{{{Type}}}_color}}}}{{#vardefine:cell|#{{{{{Type}}}_color_light}}}}}}<table align="center" style="width: 97%; border-spacing: 5px; padding: 5px; text-align: center; border: 4px solid {{#var:border}}; border-radius: 25px; background-color: {{#var:cell}};">
<tr><td><div style="margin: auto auto; border-radius: 25px; font-weight: bold; width: 45%; padding: 3px; background-color: {{#var:border}}; color: {{#var:cell}};">{{#if:{{{Location|}}} | {{{Location}}} | {{PAGENAME}}}} Trainers</div></td></tr>
{{{Contents}}}
{{{Contents}}}
<tr><td style="text-align: left; background-color: {{#var:background}}; padding: 3px; border-radius: 25px; border: 3px solid {{#var:border}};"><p style="margin-left: 10px;"> All NPCs cool down after 7 days unless noted contrariwise.</p></td></tr>
<tr><td style="text-align: left; background-color: #FFFFFF; padding: 3px; border-radius: 25px; border: 3px solid {{#var:border}}; color:#000000;"><p style="margin-left: 15px;"> All NPCs cool down after 7 days unless noted contrariwise.</br>All NPCs may have new Pokémons, or higher level Pokémons upon rematch unless noted contrariwise.</p></td></tr>
</table>
</table>
</includeonly>
</includeonly>

Latest revision as of 16:35, 28 August 2025