Editing Template:Currency cell/doc

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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=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=all</code> (default): show all zeros after the first denomination up to copper
* <code>show_zeros=all</code>: show all zeros after the first denomination up to copper
* <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=some</code>
! colspan="10" | <code>show_zeros=all</code>
! colspan="10" | <code>show_zeros=all</code>
! colspan="10" | <code>show_zeros=some</code>
! colspan="10" | <code>show_zeros=none</code>
! colspan="10" | <code>show_zeros=none</code>
|-
|-
| 0 || {{Currency cell|0|show_zeros=some}} || {{Currency cell|0|show_zeros=all}} || {{Currency cell|0|show_zeros=none}}
| 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=some}} || {{Currency cell|1|show_zeros=all}} || {{Currency cell|1|show_zeros=none}}
| 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=some}} || {{Currency cell|2000|show_zeros=all}} || {{Currency cell|2000|show_zeros=none}}
| 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=some}} || {{Currency cell|2001|show_zeros=all}} || {{Currency cell|2001|show_zeros=none}}
| 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=some}} || {{Currency cell|3002000|show_zeros=all}} || {{Currency cell|3002000|show_zeros=none}}
| 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=some}} || {{Currency cell|4000002000|show_zeros=all}} || {{Currency cell|4000002000|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,003,002,000 || {{Currency cell|4003002000|show_zeros=some}} || {{Currency cell|4003002000|show_zeros=all}} || {{Currency cell|4003002000|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}}
|}
|}

{| 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"
! colspan="10" | Head
! Head1
! colspan="10" | Head2
|-
|-
| 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>Head1</th><!--
--><th colspan="10">Head</th><!--
--><th colspan="10">Head2</th><!--
--></tr><!--
--><tr><!--
--><td>Text</td><!--
-->{{Currency cell|1,000|html=yes}}<!-- Will output some text starting "<td" and ending "</td>"
--></tr><!--
--></tr><!--
-->{{Currency cell|1,000|html=yes}}<!-- Will output some text starting "<tr" and ending "</tr>"
--></table>
--></table>
</syntaxhighlight>
</syntaxhighlight>



{| class="wikitable"
{| class="wikitable"
! colspan="10" | Head
! Head1
! colspan="10" | Head2
|-
|-
| 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>Head1</th><!--
--><th colspan="10">Head</th><!--
--><th colspan="10">Head2</th><!--
--></tr><!--
--><tr><!--
--><td>Text</td><!--
-->{{Currency cell|1,000|html=yes}}<!-- Will output some text starting "<td" and ending "</td>"
--></tr><!--
--></tr><!--
-->{{Currency cell|1,000|html=yes}}<!-- Will output some text starting "<tr" and ending "</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
|}
Please note that all contributions to Brighter Shores Wiki are considered to be released under the CC BY-NC-SA 3.0 (see Brighter Shores:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template