Template:Price

From Rebel Alliance Wiki
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