Difference between revisions of "Template:TMNavTable"
From Pokemon World Online Wiki
m |
m (Realized that hyperlink text must be formatted within the raw hyperlink. This should go through now~) |
||
| Line 2: | Line 2: | ||
{{#get_web_data:url=http://iblamelee.co.uk/pwo/wiki/index.php?title=Special:GetData/MovesRawList/TM|format=CSV with header|filters=tmno={{ucfirst:{{{1}}}}}|data=tmno=TMnumber,name=Name,image=TypeName}} | {{#get_web_data:url=http://iblamelee.co.uk/pwo/wiki/index.php?title=Special:GetData/MovesRawList/TM|format=CSV with header|filters=tmno={{ucfirst:{{{1}}}}}|data=tmno=TMnumber,name=Name,image=TypeName}} | ||
<table style="margin-left: auto; margin-right: auto; border: 3px #{{{{#external_value: image}}_color_dark}} solid; width: 85%; border-radius: 15px 15px 15px 15px; background: #{{{{#external_value: image}}_color}};" cellpadding="2" cellspacing="3"> | <table style="margin-left: auto; margin-right: auto; border: 3px #{{{{#external_value: image}}_color_dark}} solid; width: 85%; border-radius: 15px 15px 15px 15px; background: #{{{{#external_value: image}}_color}};" cellpadding="2" cellspacing="3"> | ||
| − | <tr><td style="text-align: center; background: #{{{{#external_value: image}}_color_light}}; border-radius: 15px 1px 1px 15px | + | <tr><td style="text-align: center; background: #{{{{#external_value: image}}_color_light}}; border-radius: 15px 1px 1px 15px;">{{#ifexpr: {{#external_value: tmno}} < 10 | [[<span style="color:#000;">TM0{{#expr: {{#external_value: tmno}} - 1}}</span>]]}} {{#ifexpr: {{#external_value: tmno}} > 9 | [[<span style="color:#000;">TM{{#expr: {{#external_value: tmno}} - 1}}</span>]]}}</td> |
<td style="text-align: center; background: #{{{{#external_value: image}}_color_light}}; border-radius: 1px 1px 1px 1px;">{{#external_value: tmno}} - {{#external_value: name}}</td> | <td style="text-align: center; background: #{{{{#external_value: image}}_color_light}}; border-radius: 1px 1px 1px 1px;">{{#external_value: tmno}} - {{#external_value: name}}</td> | ||
| − | <td style="text-align: center; background: #{{{{#external_value: image}}_color_light}}; border-radius 1px 15px 15px 1px;"><span style="color:#000;">{{#ifexpr: {{#external_value: tmno}} < 10 | [[TM0{{#expr: {{#external_value: tmno}} + 1}}]]}} {{#ifexpr: {{#external_value: tmno}} > 9 | [[TM{{#expr: {{#external_value: tmno}} + 1 | + | <td style="text-align: center; background: #{{{{#external_value: image}}_color_light}}; border-radius 1px 15px 15px 1px;"><span style="color:#000;">{{#ifexpr: {{#external_value: tmno}} < 10 | [[<span style="color:#000;">TM0{{#expr: {{#external_value: tmno}} + 1}}</span>]]}} {{#ifexpr: {{#external_value: tmno}} > 9 | [[TM{{#expr: {{#external_value: tmno}} + 1}}</span>]]}}</td></tr> |
</td></tr> | </td></tr> | ||
</table></includeonly> | </table></includeonly> | ||