Home
Random
Log in
Settings
About Brighter Shores Wiki
Disclaimers
Search
Editing
Template:Currency/doc
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.
Anti-spam check. Do
not
fill this in!
{{Documentation}} The '''currency''' template formats currency using the in-game icons. ==Usage== {| class="wikitable" !Code !Visible result |- |{{T|Currency|0}} |{{Currency|0}} |- |{{T|Currency|100}} |{{Currency|100}} |- |{{T|Currency|200100}} |{{Currency|200100}} |- |{{T|Currency|300200100}} |{{Currency|300200100}} |- |{{T|Currency|400300200100}} |{{Currency|400300200100}} |- |{{T|Currency|400000000000}} |{{Currency|400000000000}} |- |{{T|Currency|300000100}} |{{Currency|300000100}} |- |{{T|Currency|400000200000}} |{{Currency|400300200100}} |- |{{T|Currency|-1}} |{{Currency|-1}} |- |{{T|Currency|-4,003,002,001,000}} |{{Currency|-4,003,002,001,000}} |- |{{T|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}} |} ===force_sign=== Force a sign in front of the currency. {{T|Currency|200100|force_sign=yes}}: {{Currency|200100|force_sign=yes}} {{T|Currency|-200100|force_sign=yes}}: {{Currency|-200100|force_sign=yes}} (no effect) {{T|Currency|0|force_sign=yes}}: {{Currency|0|force_sign=yes}} ===all_signs=== Show the sign on all denominations {{T|Currency|-200100|all_signs=yes}}: {{Currency|-200100|all_signs=yes}} {{T|Currency|200100|all_signs=yes|force_sign=yes}}: {{Currency|200100|all_signs=yes|force_sign=yes}} ===show_zeros=== 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 {| class="wikitable" ! Amount ! <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>
Summary:
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
Templates used on this page:
Template:Currency
(
edit
)
Template:Documentation
(
edit
)
Template:T
(
edit
)
Module:Array
(
edit
)
Module:Currency
(
edit
)
Module:DPLlua
(
edit
)
Module:DependencyList
(
edit
)
Module:Documentation
(
edit
)
Module:Paramtest
(
edit
)
Module:T
(
edit
)
Module:Tooltip
(
edit
)
Module:Yesno
(
view source
) (semi-protected)