Template:PokemonByEVYield: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
m Attributinally updated the table properties for visual-presentation enhancement.
Had to rehaul the template for optimization purposes.
Line 6: Line 6:
<tr class="pro-table-header"><th scope="col" colspan="2" class="pro-table-header-cell" style="border-radius: 15px 1px 1px 1px; width: 8%;">No.</th><th scope="col" class="pro-table-header-cell" width="10%">Name</th><th scope="col" class="pro-table-header-cell" width="7%">Exp.</th><th style="background-color: #FF0000; width: 5%">HP</th><th style="background-color: #F08030; width: 7%;">Attack</th><th style="background-color: #FD8030; width: 7%>Defense</th><th style="background-color: #6890F0; width: 9%">Sp. Attack</th><th style="background-color: #78C850; width: 11%;">Sp. Defense</th><th style="background-color: #F85888; width: 5%">Speed</th><th class="pro-table-header-cell" style="width: 5%; border-radius: 1px 15px 1px 1px;">Total</th></tr>
<tr class="pro-table-header"><th scope="col" colspan="2" class="pro-table-header-cell" style="border-radius: 15px 1px 1px 1px; width: 8%;">No.</th><th scope="col" class="pro-table-header-cell" width="10%">Name</th><th scope="col" class="pro-table-header-cell" width="7%">Exp.</th><th style="background-color: #FF0000; width: 5%">HP</th><th style="background-color: #F08030; width: 7%;">Attack</th><th style="background-color: #FD8030; width: 7%>Defense</th><th style="background-color: #6890F0; width: 9%">Sp. Attack</th><th style="background-color: #78C850; width: 11%;">Sp. Defense</th><th style="background-color: #F85888; width: 5%">Speed</th><th class="pro-table-header-cell" style="width: 5%; border-radius: 1px 15px 1px 1px;">Total</th></tr>


{{#loop: vector
{{#for_external_table:
|{{{Start}}}
{{#get_web_data:url=http://pro-wiki.info/index.php?title=Special:GetData/PokemonRawList|format=CSV with header|filters=Generation={{{1}}}|data=generation=Generation,number=Pokedex Number,name=Name,exp=Base Experience,wild=Wild,HP=EVHP,ATK=EVATK,DEF=EVDEF,SPA=EVSPA,SPDDEF=EVSPD,SPD=EVSP,wild=Wild}}
|{{{End}}}
|
{{#get_web_data:url=http://pro-wiki.info/index.php?title=Special:GetData/PokemonRawList|format=CSV with header|filters=Pokedex Number={{#var: vector}}|data=number=Pokedex Number,name=Name,exp=Base Experience,wild=Wild,HP=EVHP,ATK=EVATK,DEF=EVDEF,SPA=EVSPA,SPDDEF=EVSPD,SPD=EVSP}}
<tr style="background-color: #666666; cellpadding: 3px">
<tr style="background-color: #666666; cellpadding: 3px">
<td>{{#external_value: number}}</td>
<td>{{{number}}}</td>
<td>[[File:{{#external_value: number}}Icon.png]]</td>  
<td>[[File:{{{number}}}Icon.png]]</td>  
<td>{{#ifeq: {{#external_value: wild}} | Y | '''[[{{#external_value: name}}]]''' | [[{{#external_value: name}}]] }}</td>
<td>{{[[{{{name}}}]]</td>
<td>{{#external_value: exp}}</td>
<td>{{{exp}}}</td>
<td style="background-color: #FF5959;">{{#external_value: HP}}</td>
<td style="background-color: #FF5959;">{{{HP}}}</td>
<td style="background-color: #F5AC78;">{{#external_value: ATK}}</td>
<td style="background-color: #F5AC78;">{{{ATK}}}</td>
<td style="background-color: #FAE078;">{{#external_value: DEF}}</td>
<td style="background-color: #FAE078;">{{{DEF}}}</td>
<td style="background-color: #9DB7F5;">{{#external_value: SPA}}</td>
<td style="background-color: #9DB7F5;">{{{SPA}}}</td>
<td style="background-color: #A7DB8D;">{{#external_value: SPDDEF}}</td>
<td style="background-color: #A7DB8D;">{{{SPDDEF}}}</td>
<td style="background-color: #FA92B2;">{{#external_value: SPD}}</td>
<td style="background-color: #FA92B2;">{{{SPD}}}</td>
<td>{{#expr:{{#external_value:HP}}+{{#external_value:ATK}}+{{#external_value:DEF}}+{{#external_value:SPA}}+{{#external_value:SPDDEF}}+{{#external_value:SPD}}}}</td>
<td>{{{W|{{{wild}}}</td>
</tr>
</tr>
}}
}}

Revision as of 02:30, 1 December 2016