Template:CostNoSam/doc

''This template is ONLY for players who have already completed all of Sam's contracts. It reverses the discount seen by these players in the Shop.''

Players who have not completed all of Sam's contracts should use CostSam.


 * Description
 * This is CostNoSam. It accepts the same input that Cost accepts, for players who already have completed all of Sam's contracts. (These players see only Sam's discounted cost for buildings in the Shop. After completing all of Sam's contracts, a player never sees the original, full cost of a building again.) The template then removes the 10% discount received for completing all of Sam's contracts, then produces output in the same format as Cost, showing the original, full cost of a building.


 * Users can input data for items much more quickly and easily than before. This template eliminates the need for users to input an already 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!!


 * CostNoSam is almost an exact duplicate of CostSam, 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, and resource3 are the names of the 18 different resources in the TrainStation game: gems, gold, and the 16 materials.
 * amount1, amount2, and amount3 are the amounts required of resource1, resource2, and resource3, respectively, to purchase a particular item in the Shop. Again, these costs are discounted costs, as seen by players who can see only Sam's discounted costs. Use plain numbers with no formatting, e.g. 1000000 (NOT 1,000,000 or 1.000.000).
 * Names and amounts for the 2nd and 3rd resources 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 Shop has a cost that includes gems plus another resource.
 * This template cannot be used in infoboxes that don't support this template.


 * Sample output
 * NOTE: This template is designed to be used with Cost.  Use CostNoSam alone ONLY when creating or editing infoboxes for buildings.

gives...

gives...

Example buildings table (abbreviated):

gives...


 * See also
 * Template:Cost - The primary cost template. CostNoSam should ALWAYS precede Cost in a table.  Designed and written by Koppa Dasao.
 * Template:CostSam - Used to apply contractor Sam's discounts on buildings. Opposite of Template:CostNoSam.
 * Template:CostExch - Used to apply Stock Exchange discounts on Extensions and Themes.