Difference between revisions of "Template:Market Value Calculator/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(Created page with "Takes the data from the infobox and automatically calculates the Market Value of the item. This item can be manually chosen by the first argument, otherwise it automatical...")
 
Line 1: Line 1:
 
Takes the data from the infobox and automatically calculates the [[Market Value]] of the item. This item can be manually chosen by the first argument, otherwise it automatically uses the page the template is used on. For stuffable items, the stuff ingredient can and must be defined in the second argument of the template and the page must correctly have "Stuff" as its Resource 1.
 
Takes the data from the infobox and automatically calculates the [[Market Value]] of the item. This item can be manually chosen by the first argument, otherwise it automatically uses the page the template is used on. For stuffable items, the stuff ingredient can and must be defined in the second argument of the template and the page must correctly have "Stuff" as its Resource 1.
 +
 +
It does not currently support [[Quality]] and item HP effects but it is set up so  thise can be easily added if necessary.
 +
 +
It outputs a plain number.
 +
==Example usage==
 +
On the page about a non-stuffable item in question:
 +
<nowiki>{{Market Value Calculator}}</nowiki>
 +
 +
On a different page than the non-stuffable item.
 +
<nowiki>{{Market Value Calculator|Flak vest}}</nowiki>
 +
 +
On a different page than the stuffable item.
 +
<nowiki>{{Market Value Calculator|Duster|Devilstrand}}</nowiki>

Revision as of 21:57, 5 January 2021

Takes the data from the infobox and automatically calculates the Market Value of the item. This item can be manually chosen by the first argument, otherwise it automatically uses the page the template is used on. For stuffable items, the stuff ingredient can and must be defined in the second argument of the template and the page must correctly have "Stuff" as its Resource 1.

It does not currently support Quality and item HP effects but it is set up so thise can be easily added if necessary.

It outputs a plain number.

Example usage

On the page about a non-stuffable item in question:

{{Market Value Calculator}}

On a different page than the non-stuffable item.

{{Market Value Calculator|Flak vest}}

On a different page than the stuffable item.

{{Market Value Calculator|Duster|Devilstrand}}