Difference between revisions of "Template:Market/doc"

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

Revision as of 12:12, 10 February 2022

Returns the daily (hopefully) market price.

{{market|itemName|multiplier(Optional)|separator(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.

Examples

{{market|stone}}

320

{{market|stone|10}}

3200

{{market|kalanahmatti|1|1}}

4,000,000