Template:Currency cell/doc: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(Fixed decimal values)
(Document changed show_zeros arg)
Line 48: Line 48:
===show_zeros===
===show_zeros===
Three options:
Three options:
* <code>show_zeros=all</code> (default): show all zeros after the first denomination up to copper
* <code>show_zeros=some</code> (default): shows zero sized denominations after the first non-zero denomination. Will hide copper/silver if no currency cell in the row has a non-zero copper/silver.
* <code>show_zeros=some</code>: 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
* <code>show_zeros=none</code>: hide all denominations with zero value


{| class="wikitable"
{| class="wikitable"
! Amount
! Amount
! colspan="10" | <code>show_zeros=all</code>
! colspan="10" | <code>show_zeros=some</code>
! colspan="10" | <code>show_zeros=some</code>
! colspan="10" | <code>show_zeros=all</code>
! colspan="10" | <code>show_zeros=none</code>
! colspan="10" | <code>show_zeros=none</code>
|-
|-
| 0 || {{Currency cell|0|show_zeros=all}} || {{Currency cell|0|show_zeros=some}} || {{Currency cell|0|show_zeros=none}}
| 0 || {{Currency cell|0|show_zeros=some}} || {{Currency cell|0|show_zeros=all}} || {{Currency cell|0|show_zeros=none}}
|-
|-
| 1 || {{Currency cell|1|show_zeros=all}} || {{Currency cell|1|show_zeros=some}} || {{Currency cell|1|show_zeros=none}}
| 1 || {{Currency cell|1|show_zeros=some}} || {{Currency cell|1|show_zeros=all}} || {{Currency cell|1|show_zeros=none}}
|-
|-
| 2,000 || {{Currency cell|2000|show_zeros=all}} || {{Currency cell|2000|show_zeros=some}} || {{Currency cell|2000|show_zeros=none}}
| 2,000 || {{Currency cell|2000|show_zeros=some}} || {{Currency cell|2000|show_zeros=all}} || {{Currency cell|2000|show_zeros=none}}
|-
|-
| 2,001 || {{Currency cell|2001|show_zeros=all}} || {{Currency cell|2001|show_zeros=some}} || {{Currency cell|2001|show_zeros=none}}
| 2,001 || {{Currency cell|2001|show_zeros=some}} || {{Currency cell|2001|show_zeros=all}} || {{Currency cell|2001|show_zeros=none}}
|-
|-
| 3,002,000 || {{Currency cell|3002000|show_zeros=all}} || {{Currency cell|3002000|show_zeros=some}} || {{Currency cell|3002000|show_zeros=none}}
| 3,002,000 || {{Currency cell|3002000|show_zeros=some}} || {{Currency cell|3002000|show_zeros=all}} || {{Currency cell|3002000|show_zeros=none}}
|-
|-
| 4,000,002,000 || {{Currency cell|4000002000|show_zeros=all}} || {{Currency cell|4000002000|show_zeros=some}} || {{Currency cell|4000002000|show_zeros=none}}
| 4,000,002,000 || {{Currency cell|4000002000|show_zeros=some}} || {{Currency cell|4000002000|show_zeros=all}} || {{Currency cell|4000002000|show_zeros=none}}
|-
|-
| 4,003,002,000 || {{Currency cell|4003002000|show_zeros=all}} || {{Currency cell|4003002000|show_zeros=some}} || {{Currency cell|4003002000|show_zeros=none}}
| 4,003,002,000 || {{Currency cell|4003002000|show_zeros=some}} || {{Currency cell|4003002000|show_zeros=all}} || {{Currency cell|4003002000|show_zeros=none}}
|}
|}

{| class="wikitable"
! Amount
! colspan="10" | <code>show_zeros=some</code>
|-
| 2,000
| {{Currency cell|2000|show_zeros=some}}
|-
| 3,002,000
| {{Currency cell|3002000|show_zeros=some}}
|}

Notice how there is no 0 copper column above


===force_sign===
===force_sign===