Template:Currency/doc: Difference between revisions

Add some documentation for new args
(Add more examples)
(Add some documentation for new args)
Line 7:
!Code
!Visible result
|-
|<nowiki>{{Currency|0}}</nowiki>
|{{Currency|0}}
|-
|<nowiki>{{Currency|100}}</nowiki>
Line 29 ⟶ 32:
|{{Currency|400300200100}}
|-
|<nowiki>{{Currency|-1}}</nowiki>
|{{Currency|-1}}
|-
|<nowiki>{{Currency|-400000200000}}</nowiki>
|{{Currency|-400300200100}}
|-
|<nowiki>{{Currency|2*(8/4)}}</nowiki>
|{{Currency|2*(8/4)}}
|}
 
===force_sign===
Force a sign in front of the currency.
 
{{T|Currency|200100|force_sign=yes}}: {{Currency|200100|force_sign=yes}}
 
{{T|Currency|-200100|force_sign=yes}}: {{Currency|-200100|force_sign=yes}} (no effect)
 
{{T|Currency|0|force_sign=yes}}: {{Currency|0|force_sign=yes}}
 
===all_signs===
Show the sign on all denominations
 
{{T|Currency|-200100|all_signs=yes}}: {{Currency|-200100|all_signs=yes}}
 
{{T|Currency|200100|all_signs=yes|force_sign=yes}}: {{Currency|200100|all_signs=yes|force_sign=yes}}
 
===show_zeroes===
After the first denomination is shown, show all smaller denominations even if there are zero of them
 
{{T|Currency|400000000000|show_zeroes=yes}}: {{Currency|400000000000|show_zeroes=yes}}
 
{{T|Currency|300000100|show_zeroes=yes}}: {{Currency|300000100|show_zeroes=yes}}
 
<includeonly>[[Category:Formatting templates]]</includeonly>
164

edits