Difference between revisions of "Template:Price format"
(new template) |
(add note about currency) |
||
Line 6: | Line 6: | ||
Template to format prices in multiple currencies inline. | Template to format prices in multiple currencies inline. | ||
− | '''To display item prices for the [[Mann Co. Store]], see {{tl|item price}}'''. Price values themselves are stored in {{tl|Dictionary/price}}. | + | '''To display item prices for the [[Mann Co. Store]], see {{tl|item price}}'''. Price values themselves are stored in {{tl|Dictionary/price}}. To edit currency names (e.g. 'United States dollars'), see [[Template:Dictionary/common strings#currency]]. |
=== Usage === | === Usage === |
Revision as of 09:05, 22 December 2011
Documentation for Price format
Template to format prices in multiple currencies inline.
To display item prices for the Mann Co. Store, see {{item price}}
. Price values themselves are stored in {{Dictionary/price}}
. To edit currency names (e.g. 'United States dollars'), see Template:Dictionary/common strings#currency.
Usage
Please do not use this template for items. Use {{item price|batter's helmet}}
instead. This allows prices to be kept up-to-date.
{{price format|usd=4.99}}
produces $4.99{{price format|usd=4.99|gbp=7.99|eur=7.99|rub=400}}
produces $4.99 / £7.99 / €7.99 / 400 rub