Template:ITS: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
Created page with "<noinclude>This is to be used in conjunction with Template:ItemShopGeneric to construct data rows for it. It is receptible of the following arguments: {{{Item}}} for the..."
 
Cae (talk | contribs)
mNo edit summary
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>This is to be used in conjunction with [[Template:ItemShopGeneric]] to construct data rows for it.  
<noinclude>
 
====Test Table====
{{GenericItemShop|Type=Fighting|Currency=PvP Coins|Contents=
{{ITS|Item=Reroll Ticket|Price=150}}
{{ITS|Item=Missing Candy with icon|Price=1|Icon=missing}}
{{ITS|Item=Missing Candy|Price=404}}
}}
This is to be used in conjunction with [[Template:GenericItemShop]] to construct data rows for it.  
It is receptible of the following arguments: <br>
- {{{'''Item'''}}} for the exact item name<br>
- {{{'''Price'''}}} to specify its price<br>
- {{{'''Icon'''}}} with "missing" parameter to use MissingIcon.png<br>
 
''//Removed the expensive #ifexist parser function because it reached its call limit with too many items.//''


It is receptible of the following arguments: {{{Item}}} for the exact item name, {{{Price}}} to specify its price, and {{{Currency}}} if you wish to specify any currency other than Pokédollars (Pokédollars is the default one) for the shop.
</noinclude>
</noinclude>
<includeonly><tr style="background-color:#FFFFFF;"><td width="25%">[[File:{{ucfirst:{{{Item}}}}}.png]]</td><td width="50%">[[{{ucfirst:{{{Item}}}}}]]
<includeonly>
 
<tr style="background-color:#FFFFFF;">{{#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,tm=TM}}
 
<td width="25%">[[File:TM-{{#external_value:movetype}}.png]]</td>
<td width="50%">[[TMs and HMs|TM{{#external_value:tm}}]] - [[{{#external_value:technique}}]]</td>|
<td width="25%">{{#ifeq: {{{Icon}}} | missing | [[File:MissingIcon.png|link={{ucfirst:File:{{{Item}}}}}.png]] | [[File:{{ucfirst:{{{Item}}}}}.png]] }}
</td>
</td>
<td width="25%">{{#ifeq:{{{Currency|Pdollars}}}|Pdollars|[[Template:Pdollar]]}}{{{Price}}} {{{Currency|}}}</td>
<td width="50%">[[{{ucfirst:{{{Item}}}}}]]</td>}}
</tr></includeonly>
<td width="25%">{{#ifeq:{{#var:currency}}|Pdollars|{{Pdollar}}}}{{{Price|{{MartCatalog|{{ucfirst:{{{Item}}}}}}}}}}</td>
</tr>
 
</includeonly>

Latest revision as of 14:46, 28 August 2025


Test Table

ItemsPrice
Reroll Ticket 150
Missing Candy with icon 1
File:Missing Candy.png Missing Candy 404

  • PvP Coins are the currency of this shop.

This is to be used in conjunction with Template:GenericItemShop to construct data rows for it. It is receptible of the following arguments:
- {{{Item}}} for the exact item name
- {{{Price}}} to specify its price
- {{{Icon}}} with "missing" parameter to use MissingIcon.png

//Removed the expensive #ifexist parser function because it reached its call limit with too many items.//