Template:CostNoExch/doc

''This template is ONLY for players who have purchased Stock Exchange. It reverses the discount seen by these players in the Shop.''

This is CostNoExch. The template accepts the same input that Cost accepts, for players who have Stock Exchange active on one of their stations. The template then removes the 20% discount received for having Stock Exchange active, then produces output in the same format as Cost, showing the original, full cost of a theme or extension.

Background
Users can input data for items much more quickly and easily than before. This template eliminates the need for users to input a calculated discounted cost, and it eliminates errors produced when such users forget to enter notes that the cost is discounted. This template also eliminates errors in calculating non-discounted prices, and it eliminates inconsistencies between users when rounding. Just input the discounted cost data seen in the Shop, and that's it!!

CostNoExch is almost an exact duplicate of CostExch, which in turn is almost an exact duplicate of Cost, which was designed and created by Koppa Dasao. Koppa Dasao deserves all the credit for this template's logic, structure, and output. The only difference between this template and the original is the tiny amount of code used to reverse the discount.

Syntax

 * resource1, resource2, resource3 = the names of the 18 different resources in the TrainStation game: gems, gold, and the 16 materials. (minimum: 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 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.
 * Optional parameter, if present, will cause the output to display on one horizontal line.
 * 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 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.
 * Optional parameter, if present, will cause the output to display on one horizontal line.

Examples
'NOTE:'' This template is designed to be used with Cost. Use CostNoExch alone ONLY when creating or editing infoboxes for themes.'''

gives...

gives...

Example horizontal output
Cost:

Disc.: gives...

Cost:

Disc.: