Template:HeadbuttData: Difference between revisions
Jump to navigation
Jump to search
Created page with "<noinclude>This is used centrally on Headbutt trees to tabulate all Headbutt-spawn data of areas containing Headbutt trees. The only arguments needed are {{{Area}}} to de..." |
mNo edit summary Tag: Manual revert |
||
(13 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
The only arguments needed are {{{Area}}} to determine the area name and {{{Amount}}} to define the amount of Headbutt trees on in the relevant area; the template will transclude the rest of the data from [[HeadbuttSpawnData]]. | The only arguments needed are {{{Area}}} to determine the area name and {{{Amount}}} to define the amount of Headbutt trees on in the relevant area; the template will transclude the rest of the data from [[HeadbuttSpawnData]]. | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly>{{#vardefine:border|#{{Forest_color_dark}}}}{{#vardefine:background|#{{Forest_color}}}}{{#vardefine:cell|#{{Forest_color_light}}}}<table class="collapsible collapsed" width="78%" cellspacing="5" style="background-color: {{#var:background}}; text-align: center; border: 5px solid {{#var:border}}; padding: 5px; border-radius: 25px;"> | ||
{{#vardefine:border|#{{Forest_color_dark}}}} | {{#get_web_data:url=https://wiki.pokemonrevolution.net/index.php?title=Special:GetData/HeadbuttSpawnData|format=CSV with header|filters=Area={{{Area|}}}|data=number=Pokedex Number,name=Pokemon,rarity=Tier,levels=Levels,area=Area,ma=Membership}} | ||
{{#vardefine:background|#{{Forest_color}}}} | <tr><th><div style="width: 50%; margin: auto auto; background-color: {{#var:cell}}; border-radius: 15px; border: 3px solid {{#var:border}}; font-weight: bold; border: 3px solid {{#var:border}}; font-size: 20px;">[[{{{Area}}}|<span style="color:{{#var:border}};">{{{Area}}}</span>]]</div></th></tr><tr> | ||
{{#vardefine:cell|#{{Forest_color_light}}}} | |||
<table class="collapsible collapsed" width=" | |||
{{#get_web_data:url= | |||
<tr><th><div style="width: | |||
<tr> | |||
<td width="100%"> | <td width="100%"> | ||
<table cellspacing="5" style="width: 100%; background-color:{{#var:cell}}; border: 4px solid {{#var:border}}; border-radius: 15px; padding: 5px;"> | <table cellspacing="5" style="width: 100%; background-color:{{#var:cell}}; border: 4px solid {{#var:border}}; border-radius: 15px; padding: 5px;"> | ||
<tr> | <tr> | ||
<td width="15%" style="border-radius: | <td width="15%" style="border-radius: 25px 1px 1px 25px; background-color: {{#var:border}}; color: {{#var:cell}}; font-weight: bold;">Amount</td> | ||
<td width="35%" style="border-radius: 1px | <td width="35%" style="border-radius: 1px 25px 25px 1px; border: 1px solid {{#var:border}}; background-color: #FFFFFF;">{{{Amount}}} trees</td> | ||
<td width="15%" style="border-radius: | <td width="15%" style="border-radius: 25px 1px 1px 25px; background-color: {{#var:border}}; color: {{#var:cell}}; font-weight: bold;">Level range</td> | ||
<td width="35%" style="border-radius: 1px | <td width="35%" style="border-radius: 1px 25px 25px 1px; border: 1px solid {{#var:border}}; background-color: #FFFFFF;">{{#external_value:levels}}</td></tr><tr> | ||
</tr> | |||
<tr> | |||
<td width="100%" colspan="4"> | <td width="100%" colspan="4"> | ||
<div style="width: 25%; margin: auto auto; background-color: {{#var:border}}; color:{{#var:cell}}; border-radius: 15px; font-weight: bold; border: 3px solid {{#var: | <div style="width: 25%; margin: auto auto; background-color: {{#var:border}}; color:{{#var:cell}}; border-radius: 15px; font-weight: bold; border: 3px solid {{#var:background}}; font-size: 20px; padding: 3px;">Pokémon</div> | ||
<table cellspacing="5" style="width: 100%; border-radius: 25px; border: padding: 5px;"> | <table cellspacing="5" style="width: 100%; border-radius: 25px; border: padding: 5px;"> | ||
<tr style="color:{{#var:border}}"> | <tr style="color:{{#var:border}}"> | ||
<th colspan="2" style="border | <th colspan="2" style="border: 1px solid {{#var:border}}; background-color: {{#var:background}};">Pokémon</th> | ||
<th style="border: | <th style="border: 1px solid {{#var:border}}; background-color: {{#var:background}};">Rarity</th> | ||
</tr> | </tr>{{#for_external_table: | ||
{{#for_external_table: | <tr style="background-color:#FFFFFF;"><td width="5%">[[File:{{{number}}}Icon.png]]</td><td>[[{{{name}}}|<span style="color: {{{ma}}};">{{{name}}}</span>]]</td><td>{{{rarity}}}</td></tr> | ||
<tr style="background-color:#FFFFFF;"><td width="5%">[[File:{{{number}}}Icon.png]]</td><td>[[{{{name}}}|<span style="color: | |||
}} | }} | ||
</table> | </table> |
Latest revision as of 15:13, 28 August 2025
This is used centrally on Headbutt trees to tabulate all Headbutt-spawn data of areas containing Headbutt trees.
The only arguments needed are {{{Area}}} to determine the area name and {{{Amount}}} to define the amount of Headbutt trees on in the relevant area; the template will transclude the rest of the data from HeadbuttSpawnData.