Template:Cost/doc

This template accepts cost data for an item in the TrainStation game (usually in the Shop) in text form.

It then returns the item's cost in a consistent order, using formatted numbers and the appropriate graphic for each resource.

Syntax

 * resource1, resource2, resource3 = the names of the 18 different resources in the TrainStation game: gems, gold, and the 16 materials. (min. 4 characters)
 * amount1, amount2, amount3 = the amounts required of resource1, resource2, and resource3, respectively, to purchase an item. Always use plain numbers with no formatting, e.g. 1000000 (NOT 1,000,000 or 1.000.000).
 * The 2nd and 3rd parameters are optional. If the item requires only one or two resources, simply close the {{}} .  DO NOT add extra pipes (|) for the unnecessary parameters.
 * Gems always appear alone in an item's cost.  No item in the game has a cost that includes gems plus another resource.
 * amount1, amount2, amount3 = the amounts required of resource1, resource2, and resource3, respectively, to purchase an item. Always use plain numbers with no formatting, e.g. 1000000 (NOT 1,000,000 or 1.000.000).
 * The 2nd and 3rd parameters are optional. If the item requires only one or two resources, simply close the {{}} .  DO NOT add extra pipes (|) for the unnecessary parameters.
 * Gems always appear alone in an item's cost.  No item in the game has a cost that includes gems plus another resource.

Sample output

 * Example inside a shop table:
 * Example inside a shop table:
 * Example inside a shop table:
 * Example inside a shop table:
 * Example inside a shop table:
 * Example inside a shop table:
 * Example inside a shop table:
 * Example inside a shop table:
 * Example inside a shop table:
 * Example inside a shop table:
 * Example inside a shop table:

Credits
This template was created by Koppa Dasao.

Although the TrainStation Wiki community have improved the original template, it still uses Koppa Dasao's logic and structure.