Template:BazaarPurchaseCalc/doc

This template allows you to enter multiple items/amounts and have them automatically added together using most recent bazaar prices.

Syntax
This template has two syntaxes, which can be mixed (although this might be confusing).

Traditional
1 Up to 16 entries may be given, each in Item Syntax.

List
If the first parameter is a list, each list item will be parsed using

Additional Parameters
..., where:
 * or is whether or not the Coins formatting should be displayed. Default to true.
 * or is the type of bazaar action. Valid inputs are: buy and sell. Default to sell.

Item Syntax
Each "item" can come in two values:
 * Bazaar Purchase - Must be in the general syntax "[num] [productId]" (ex: 10 Ice); see more about productId at BazaarData, though the item's page name should always be valid. For ease of use, certain parts of numbers are stripped and ignored without throwing an error:
 * If an "x" appears after the number, its accepted
 * Links are stripped, and only the page name param is used for the productId
 * Shortened forms of productId can be used, e.g. "Enchanted Gunpowder" and "Ench Gunpowder" are the same. This applies to all enchanted items.
 * Number - Numbers may also be manually added as a parameter; this is to allow non-bazaar items to be easily included in calculations.

Examples
Which is calculated as:

( × 10) +