Editing Template:Currency cell/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 48: | Line 48: | ||
===show_zeros=== |
===show_zeros=== |
||
Three options: |
Three options: |
||
* <code>show_zeros= |
* <code>show_zeros=all</code> (default): show all zeros after the first denomination up to copper |
||
* <code>show_zeros= |
* <code>show_zeros=some</code>: show the zero valued denominations between the biggest and smallest denomination |
||
* <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=all</code> |
||
⚫ | |||
! colspan="10" | <code>show_zeros=none</code> |
! colspan="10" | <code>show_zeros=none</code> |
||
|- |
|- |
||
| 0 || {{Currency cell|0|show_zeros= |
| 0 || {{Currency cell|0|show_zeros=all}} || {{Currency cell|0|show_zeros=some}} || {{Currency cell|0|show_zeros=none}} |
||
|- |
|- |
||
| 1 || {{Currency cell|1|show_zeros= |
| 1 || {{Currency cell|1|show_zeros=all}} || {{Currency cell|1|show_zeros=some}} || {{Currency cell|1|show_zeros=none}} |
||
|- |
|- |
||
| 2,000 || {{Currency cell|2000|show_zeros= |
| 2,000 || {{Currency cell|2000|show_zeros=all}} || {{Currency cell|2000|show_zeros=some}} || {{Currency cell|2000|show_zeros=none}} |
||
|- |
|- |
||
| 2,001 || {{Currency cell|2001|show_zeros= |
| 2,001 || {{Currency cell|2001|show_zeros=all}} || {{Currency cell|2001|show_zeros=some}} || {{Currency cell|2001|show_zeros=none}} |
||
|- |
|- |
||
| 3,002,000 || {{Currency cell|3002000|show_zeros= |
| 3,002,000 || {{Currency cell|3002000|show_zeros=all}} || {{Currency cell|3002000|show_zeros=some}} || {{Currency cell|3002000|show_zeros=none}} |
||
|- |
|- |
||
| 4,000,002,000 || {{Currency cell|4000002000|show_zeros= |
| 4,000,002,000 || {{Currency cell|4000002000|show_zeros=all}} || {{Currency cell|4000002000|show_zeros=some}} || {{Currency cell|4000002000|show_zeros=none}} |
||
|- |
|- |
||
| 4,003,002,000 || {{Currency cell|4003002000|show_zeros= |
| 4,003,002,000 || {{Currency cell|4003002000|show_zeros=all}} || {{Currency cell|4003002000|show_zeros=some}} || {{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=== |
||
Line 136: | Line 123: | ||
<syntaxhighlight lang="wikitext"> |
<syntaxhighlight lang="wikitext"> |
||
{| class="wikitable" |
{| class="wikitable" |
||
⚫ | |||
! Head1 |
|||
⚫ | |||
|- |
|- |
||
| Text |
|||
| {{Currency cell|1,000|html=no}} |
| {{Currency cell|1,000|html=no}} |
||
|} |
|} |
||
Line 145: | Line 130: | ||
<table class="wikitable"><!-- |
<table class="wikitable"><!-- |
||
--><tr><!-- |
--><tr><!-- |
||
--><th> |
--><th colspan="10">Head</th><!-- |
||
--><th colspan="10">Head2</th><!-- |
|||
--></tr><!-- |
|||
--><tr><!-- |
|||
--><td>Text</td><!-- |
|||
⚫ | |||
--></tr><!-- |
--></tr><!-- |
||
⚫ | |||
--></table> |
--></table> |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
{| class="wikitable" |
{| class="wikitable" |
||
⚫ | |||
! Head1 |
|||
⚫ | |||
|- |
|- |
||
| Text |
|||
| {{Currency cell|1,000|html=no}} |
| {{Currency cell|1,000|html=no}} |
||
|} |
|} |
||
Line 165: | Line 145: | ||
<table class="wikitable"><!-- |
<table class="wikitable"><!-- |
||
--><tr><!-- |
--><tr><!-- |
||
--><th> |
--><th colspan="10">Head</th><!-- |
||
--><th colspan="10">Head2</th><!-- |
|||
--></tr><!-- |
|||
--><tr><!-- |
|||
--><td>Text</td><!-- |
|||
⚫ | |||
--></tr><!-- |
--></tr><!-- |
||
⚫ | |||
--></table> |
--></table> |
||
==rowspan== |
|||
Each cell will have rowspan="rowspan". Defaults to 1. |
|||
==left_colspan== |
|||
The 10 columns with the currency cell will be merged with (blank) cells to the left of this amount. |
|||
==right_colspan== |
|||
Similar to left_colspan but with cells to the right. |
|||
<syntaxhighlight lang="wikitext">{| class="wikitable" |
|||
! Left |
|||
! colspan="10" | Currency |
|||
! Right |
|||
|- |
|||
| {{Currency cell|1|left_colspan=1}} |
|||
| A |
|||
|- |
|||
| B |
|||
| {{Currency cell|2|right_colspan=1}} |
|||
|- |
|||
| D |
|||
| {{Currency cell|3|rowspan=2}} |
|||
| E |
|||
|- |
|||
| F |
|||
| G |
|||
|}</syntaxhighlight> |
|||
{| class="wikitable sortable" |
|||
! Left |
|||
! colspan="10" | Currency |
|||
! Right |
|||
|- |
|||
| {{Currency cell|1|left_colspan=1}} |
|||
| A |
|||
|- |
|||
| B |
|||
| {{Currency cell|2|right_colspan=1}} |
|||
|- |
|||
| D |
|||
| {{Currency cell|3|rowspan=2}} |
|||
| E |
|||
|- |
|||
| F |
|||
| G |
|||
|} |