Template:Currency cell/doc: Difference between revisions

Document changed show_zeros arg
(Fixed decimal values)
(Document changed show_zeros arg)
Line 48:
===show_zeros===
Three options:
* <code>show_zeros=allsome</code> (default): showshows allzero zerossized denominations after the first non-zero denomination. upWill tohide copper/silver if no currency cell in the row has a non-zero copper/silver.
* <code>show_zeros=someall</code>: show theall zerozeros valuedafter denominationsthe betweenfirst thedenomination biggestup andto smallest denominationcopper
* <code>show_zeros=none</code>: hide all denominations with zero value
 
{| class="wikitable"
! Amount
! colspan="10" | <code>show_zeros=all</code>
! colspan="10" | <code>show_zeros=some</code>
! colspan="10" | <code>show_zeros=all</code>
! colspan="10" | <code>show_zeros=none</code>
|-
| 0 || {{Currency cell|0|show_zeros=allsome}} || {{Currency cell|0|show_zeros=someall}} || {{Currency cell|0|show_zeros=none}}
|-
| 1 || {{Currency cell|1|show_zeros=allsome}} || {{Currency cell|1|show_zeros=someall}} || {{Currency cell|1|show_zeros=none}}
|-
| 2,000 || {{Currency cell|2000|show_zeros=allsome}} || {{Currency cell|2000|show_zeros=someall}} || {{Currency cell|2000|show_zeros=none}}
|-
| 2,001 || {{Currency cell|2001|show_zeros=allsome}} || {{Currency cell|2001|show_zeros=someall}} || {{Currency cell|2001|show_zeros=none}}
|-
| 3,002,000 || {{Currency cell|3002000|show_zeros=allsome}} || {{Currency cell|3002000|show_zeros=someall}} || {{Currency cell|3002000|show_zeros=none}}
|-
| 4,000,002,000 || {{Currency cell|4000002000|show_zeros=allsome}} || {{Currency cell|4000002000|show_zeros=someall}} || {{Currency cell|4000002000|show_zeros=none}}
|-
| 4,003,002,000 || {{Currency cell|4003002000|show_zeros=allsome}} || {{Currency cell|4003002000|show_zeros=someall}} || {{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===
707

edits