Template:AIR: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
mNo edit summary
Cae (talk | contribs)
mNo edit summary
 
(11 intermediate revisions by 2 users not shown)
Line 5: Line 5:
<includeonly>
<includeonly>
<tr style="background-color:#FFFFFF; text-align: center;">
<tr style="background-color:#FFFFFF; text-align: center;">
{{#if:{{{TM|}}}|
{{#get_web_data:url=https://wiki.pokemonrevolution.net/index.php?title=Special:GetData/RawMovesList|format=CSV with header|filters=Name={{{TM}}}|data=technique=Name,movetype=Type,category=Category,power=Power,accuracy=Accuracy,pp=PP,broken=Broken,typeless=Typeless,tm=TM}}
<td>[[File:TM-{{#external_value:movetype}}.png]]</td>
<td>[[TMs and HMs|TM{{#external_value:tm}}]] - [[{{#external_value:technique}}]]</td>
|
{{#if:{{{HM|}}}|
{{#get_web_data:url=https://wiki.pokemonrevolution.net/index.php?title=Special:GetData/RawMovesList|format=CSV with header|filters=Name={{ucfirst:{{{HM}}}}}|data=technique=Name,movetype=Type,category=Category,power=Power,accuracy=Accuracy,pp=PP,broken=Broken,typeless=Typeless,tm=TM}}
<td>[[File:TM-{{#external_value:movetype}}.png]]</td>
<td>[[TMs and HMs|HM{{#external_value:tm}}]] - [[{{#external_value:technique}}]]</td>
|
<td width="5%">{{#ifexist: File:{{{Item}}}.png | [[File:{{{Item}}}.png]] | [[File:MissingIcon.png]]}}</td>
<td width="5%">{{#ifexist: File:{{{Item}}}.png | [[File:{{{Item}}}.png]] | [[File:MissingIcon.png]]}}</td>
<td width="15%">[[{{{Item}}}]]</td>
<td width="15%">[[{{{Item}}}]]</td>
}}
}}
<td width="10%">{{{Quantity|1}}}</td>
<td width="10%">{{{Quantity|1}}}</td>
<td width="10%">{{{Cooldown|???}}}</td>
<td width="10%">{{{Cooldown|Indefinite}}}</td>
<td style="text-align: left; width: 45%;"><span style="margin-left: 4px;">{{{Location}}}</span></td>
<td style="text-align: left; width: 45%;"><span style="margin-left: 4px;">{{{Location}}}</span></td>
</tr>
</tr>
</includeonly>
</includeonly>

Latest revision as of 14:33, 28 August 2025

Use this in tandem with Template:AreaItems to construct tabular rows for it.

It accepts four arguments: {{{Item}}}, {{{Quantity}}}, {{{Cooldown}}}, and {{{Location}}}. Leave {{{Quantity}}} and {{{Cooldown}}} blank if you have to ascertain even a rough amount, but do furnish values for {{{Item}}} and {{{Location}}}, at least.