Difference between revisions of "Template:PkType"

From Pokemon World Online Wiki
Jump to: navigation, search
m (Undo revision 15241 by Naero (talk))
m
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#get_web_data:url=http://pwo-wiki.info/index.php?title=Special:GetData/PokémonRawList|format=CSV with header|filters=type1={{ucfirst:{{{1}}}}}|data=name=Name,type1=Type1,type2=Type2,pdex=Pokedex Number}}
+
<includeonly>{{#get_web_data:url=https://pwo-wiki.info/index.php?title=Special:GetData/PokemonRawList|format=CSV with header|filters=type1={{ucfirst:{{{1}}}}}|data=name=Name,type1=Type1,type2=Type2,pdex=Pokedex Number}}
<center><table style="text-align:center; border: #{{{{{1}}}_color_dark}} 3px solid; border-radius: 15px 15px 15px 15px; background: #{{{{{1}}}_color_light}};" class="sortable" width="45%" cellspacing="3" cellpadding="5">
+
<center><table class="sortable" style="text-align:center; border: #{{{{{1}}}_color_dark}} 3px solid; border-radius: 15px 15px 15px 15px; background: #{{{{{1}}}_color_light}}; padding: 3px;" class="sortable" width="45%" cellspacing="3" cellpadding="5">
<tr><th scope="col" style="background: #{{{{{1}}}_color}}; border-radius: 15px 0px 0px 0px;" width="5%">#</th><th style="background: #{{{{{1}}}_color}};" scope="col" colspan="2" width="17%">Pokémon</th><th style="background: #{{{{{1}}}_color}};" scope="col" width="10%">Type 1</th><th style="background: #{{{{{1}}}_color}}; border-radius: 0px 15px 0px 0px;" scope="col" width="10%">Type 2</th></tr>
+
<tr><th scope="col" style="background: #{{{{{1}}}_color}}; border-radius: 15px 0px 0px 0px;" width="5%">#</th><th style="background: #{{{{{1}}}_color}};" scope="col" colspan="2" width="14%">Pokémon</th><th style="background: #{{{{{1}}}_color}};" scope="col" width="10%">Type 1</th><th style="background: #{{{{{1}}}_color}}; border-radius: 0px 15px 0px 0px;" scope="col" width="10%">Type 2</th></tr>
 
{{#for_external_table:
 
{{#for_external_table:
 
<tr style="background: #FFFFFF;">
 
<tr style="background: #FFFFFF;">
<td width="7%">{{{pdex}}}</td>
+
<td width="3%">{{{pdex}}}</td>
<td width="7%">[[File:{{{pdex}}}small.png]]</td>
+
<td width="3%">[[File:{{{pdex}}}small.png]]</td>
<td width="8%">[[{{{name}}}]]</td>
+
<td width="15%">[[{{{name}}}]]</td>
<td width="10%" style="background: #{{ {{{type1}}}_color}}; color: #000000;">[[{{{type1}}}_(type)|<span style="color:#FFFFFF;">{{{type1}}}</span>]]</td>
+
<td width="10%" style="background: #FFFFFF;">N/A</td>
+
</tr>}}
+
{{#get_web_data:url=http://pwo-wiki.info/index.php?title=Special:GetData/PokémonRawList|format=CSV with header|filters=type2={{ucfirst:{{{1}}}}}|data=name=Name,type1=Type1,type2=Type2,pdex=Pokedex Number}}
+
{{#for_external_table:
+
<tr style="background: #FFFFFF;">
+
<td width="7%">{{{pdex}}}</td>
+
<td width="7%">[[File:{{{pdex}}}small.png]]</td>
+
<td width="8%">[[{{{name}}}]]</td>
+
 
<td width="10%" style="background: #{{ {{{type1}}}_color}}; color: #000000;">[[{{{type1}}}_(type)|<span style="color:#FFFFFF;">{{{type1}}}</span>]]</td>
 
<td width="10%" style="background: #{{ {{{type1}}}_color}}; color: #000000;">[[{{{type1}}}_(type)|<span style="color:#FFFFFF;">{{{type1}}}</span>]]</td>
 
<td width="10%" style="background: #{{ {{{type2}}}_color}}; color: #000000;">[[{{{type2}}}_(type)|<span style="color:#FFFFFF;">{{{type2}}}</span>]]</td>
 
<td width="10%" style="background: #{{ {{{type2}}}_color}}; color: #000000;">[[{{{type2}}}_(type)|<span style="color:#FFFFFF;">{{{type2}}}</span>]]</td>

Latest revision as of 18:51, 2 February 2023