Difference between revisions of "Template:Market/doc"

From Idlescape Wiki
Jump to navigation Jump to search
m
m (Added leagues)
Line 1: Line 1:
 
Returns the daily (hopefully) market price.  
 
Returns the daily (hopefully) market price.  
:<code><nowiki>{{market|itemName|multiplier(Optional)|separator(Optional)}}</nowiki></code>
+
:<code><nowiki>{{market|itemName|multiplier(Optional)|separator(Optional)|league(Optional)}}</nowiki></code>
  
 
itemName - Name of the item. Letter case does not matter.<br>
 
itemName - Name of the item. Letter case does not matter.<br>
 
multiplier - Price for multiple items. Default is 1.<br>
 
multiplier - Price for multiple items. Default is 1.<br>
 
separator - Adds ',' as thousands separators. Use 1 to enable.
 
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==
 
==Examples==
Line 13: Line 14:
 
:{{market|stone|10}}
 
:{{market|stone|10}}
  
{{T|market|kalanahmatti|1|1}}
+
{{T|market|shard of kalanahmatti|1|1}}
:{{market|kalanahmatti|1|1}}
+
:{{market|shard of kalanahmatti|1|1}}
 +
 
 +
{{T|market|basic runic dust|1|1|1}}
 +
:{{market|basic runic dust|1|1|1}}
 +
 
 +
{{T|market|basic runic dust|1|1|6}}
 +
:{{market|basic runic dust|1|1|6}}

Revision as of 21:09, 29 October 2023

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}}

320

{{market|stone|10}}

3200

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

99,999,999

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

1,951

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

0