Difference between revisions of "Template:Market"

From Idlescape Wiki
Jump to navigation Jump to search
(Created market price template)
 
m (Added cat)
Line 1: Line 1:
<includeonly><span class="plainlinks">{{#invoke:Market|_price}}</span></includeonly><noinclude>{{/doc}}</noinclude>
+
<includeonly><span class="plainlinks">{{#invoke:Market|_price}}</span></includeonly><noinclude>{{/doc}}[[Category:Template]]</noinclude>

Revision as of 10:40, 10 February 2022

Returns the daily (hopefully) market price.

{{market|itemName|multiplier(Optional)|separator(Optional)|league(Optional)}}

itemName - Name of the item. Letter case does not matter.
multiplier - Price for multiple items. Default is 1.
separator - Adds ',' as thousands separators. Use 1 to enable.
league - 1 for main, 5 for pre-season, 6 for season 1. Default is 1.

Examples

{{market|stone}}

Lua error in Module:Market at line 41: bad argument #1 to 'lower' (string expected, got nil).

{{market|stone|10}}

Lua error in Module:Market at line 41: bad argument #1 to 'lower' (string expected, got nil).

{{market|shard of kalanahmatti|1|1}}

Lua error in Module:Market at line 41: bad argument #1 to 'lower' (string expected, got nil).

{{market|basic runic dust|1|1|1}}

Lua error in Module:Market at line 41: bad argument #1 to 'lower' (string expected, got nil).

{{market|basic runic dust|1|1|6}}

Lua error in Module:Market at line 41: bad argument #1 to 'lower' (string expected, got nil).