Editing Template:Currency/doc
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 8: | Line 8: | ||
!Visible result |
!Visible result |
||
|- |
|- |
||
|{{ |
|<nowiki>{{Currency|0}}</nowiki> |
||
|{{Currency|0}} |
|{{Currency|0}} |
||
|- |
|- |
||
|{{ |
|<nowiki>{{Currency|100}}</nowiki> |
||
|{{Currency|100}} |
|{{Currency|100}} |
||
|- |
|- |
||
|{{ |
|<nowiki>{{Currency|200100}}</nowiki> |
||
|{{Currency|200100}} |
|{{Currency|200100}} |
||
|- |
|- |
||
|{{ |
|<nowiki>{{Currency|300200100}}</nowiki> |
||
|{{Currency|300200100}} |
|{{Currency|300200100}} |
||
|- |
|- |
||
|{{ |
|<nowiki>{{Currency|400300200100}}</nowiki> |
||
|{{Currency|400300200100}} |
|{{Currency|400300200100}} |
||
|- |
|- |
||
|{{ |
|<nowiki>{{Currency|400000000000}}</nowiki> |
||
|{{Currency|400000000000}} |
|{{Currency|400000000000}} |
||
|- |
|- |
||
|{{ |
|<nowiki>{{Currency|300000100}}</nowiki> |
||
|{{Currency|300000100}} |
|{{Currency|300000100}} |
||
|- |
|- |
||
|{{ |
|<nowiki>{{Currency|400000200000}}</nowiki> |
||
|{{Currency|400300200100}} |
|{{Currency|400300200100}} |
||
|- |
|- |
||
|{{ |
|<nowiki>{{Currency|-1}}</nowiki> |
||
|{{Currency|-1}} |
|{{Currency|-1}} |
||
|- |
|- |
||
|{{ |
|<nowiki>{{Currency|-400000200000}}</nowiki> |
||
|{{Currency|- |
|{{Currency|-400300200100}} |
||
|- |
|- |
||
|{{ |
|<nowiki>{{Currency|2*(8/4)}}</nowiki> |
||
|{{Currency|2*(8/4)}} |
|{{Currency|2*(8/4)}} |
||
|- |
|||
| {{T|Currency|0.5}} |
|||
| {{Currency|0.5}} |
|||
|- |
|||
| {{T|Currency|1/3 round 2}} |
|||
| {{Currency|1/3 round 2}} |
|||
|} |
|} |
||
Line 64: | Line 58: | ||
{{T|Currency|200100|all_signs=yes|force_sign=yes}}: {{Currency|200100|all_signs=yes|force_sign=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 |
|||
Three options: |
|||
* <code>show_zeros=some</code> (default): show the zero valued denominations between the biggest and smallest denomination |
|||
* <code>show_zeros=all</code>: show all zeros after the first denomination up to copper |
|||
* <code>show_zeros=none</code>: hide all denominations with zero value |
|||
{{T|Currency|400000000000|show_zeroes=yes}}: {{Currency|400000000000|show_zeroes=yes}} |
|||
{| class="wikitable" |
|||
! Amount |
|||
{{T|Currency|300000100|show_zeroes=yes}}: {{Currency|300000100|show_zeroes=yes}} |
|||
! <code>show_zeros=some</code> |
|||
! <code>show_zeros=all</code> |
|||
! <code>show_zeros=none</code> |
|||
|- |
|||
| 0 || {{Currency|0|show_zeros=some}} || {{Currency|0|show_zeros=all}} || {{Currency|0|show_zeros=none}} |
|||
|- |
|||
| 1 || {{Currency|1|show_zeros=some}} || {{Currency|1|show_zeros=all}} || {{Currency|1|show_zeros=none}} |
|||
|- |
|||
| 2,000 || {{Currency|2000|show_zeros=some}} || {{Currency|2000|show_zeros=all}} || {{Currency|2000|show_zeros=none}} |
|||
|- |
|||
| 2,001 || {{Currency|2001|show_zeros=some}} || {{Currency|2001|show_zeros=all}} || {{Currency|2001|show_zeros=none}} |
|||
|- |
|||
| 3,002,000 || {{Currency|3002000|show_zeros=some}} || {{Currency|3002000|show_zeros=all}} || {{Currency|3002000|show_zeros=none}} |
|||
|- |
|||
| 4,000,002,000 || {{Currency|4000002000|show_zeros=some}} || {{Currency|4000002000|show_zeros=all}} || {{Currency|4000002000|show_zeros=none}} |
|||
|} |
|||
<includeonly>[[Category:Formatting templates]]</includeonly> |
<includeonly>[[Category:Formatting templates]]</includeonly> |