Difference between revisions of "Template:Price"

From Rebel Alliance Wiki
Jump to: navigation, search
(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...")
 
(No difference)

Latest revision as of 14:04, 16 January 2016

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