Template:Price

From Rebel Alliance Wiki
Revision as of 14:04, 16 January 2016 by Eleonore Silvermoon (talk | contribs) (Created page with "<includeonly>{{#iferror: {{#expr:{{{2|}}}*1}}|{{#iferror: {{#expr:{{{1|}}}*1}}|N/A|{{Credit|{{#number_format:{{{1}}}}}}}}}|{{#iferror: {{#expr:{{{1|}}}*1}}|N/A|{{Credit|{{#num...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Usage

{{Price|PRICE|DISCOUNT}}

This template calculates the discount for a price (if the second argument is a valid numeric value) and formats it.

Examples

{{Price|1000|10}}

Cr 900


{{Price|1000|}}

Cr 1,000


{{Price|1000|test}}

Cr 1,000


{{Price|1000}}

Cr 1,000


{{Price|test}}

N/A


{{Price}}

N/A