# Difference between revisions of "Template:Brassconvert/doc"

(fix <) |
(upd) |
||

Line 3: | Line 3: | ||

This template displays in <span> tags the value of an amount of money in brass coins in various other currencies. | This template displays in <span> tags the value of an amount of money in brass coins in various other currencies. | ||

− | In | + | It is meant to be called by another template, like so: <nowiki>{{Wibi|111111}}</nowiki> |

+ | |||

+ | There are two display mode: | ||

+ | |||

+ | ;Normal: | ||

+ | <nowiki>{{Wibi|111111}}</nowiki> | ||

+ | |||

+ | {{Wibi|111111}} | ||

+ | |||

+ | In this mode it adds a <span class="hid"> with the value in brass coins in front to allow sorting in tables. | ||

+ | |||

+ | |||

+ | ;Table: | ||

+ | <nowiki>{{Brassconvert|111111|table=yes}}</nowiki> | ||

+ | |||

+ | {{Brassconvert|111111|table=yes}} | ||

+ | |||

+ | In this mode it gives output appropriate to show as a row in a table. | ||

==Parameters== | ==Parameters== | ||

+ | ;First parameter: | ||

+ | |||

The amount of money, in brass coins or wichit beads, which are made of natural numbers (positive integers, which excludes fractions), e.g. 12345. | The amount of money, in brass coins or wichit beads, which are made of natural numbers (positive integers, which excludes fractions), e.g. 12345. | ||

Line 11: | Line 30: | ||

Helper templates (in [[:Category:Money_templates]]) exist for the various currencies to obtain the number of brass coins and that then call this template to display the amount in the various currencies. | Helper templates (in [[:Category:Money_templates]]) exist for the various currencies to obtain the number of brass coins and that then call this template to display the amount in the various currencies. | ||

+ | |||

+ | ;table | ||

+ | If you assign any value to the table argument it displays in table mode. Putting yes is just more readable than putting something else. |

## Latest revision as of 23:25, 17 February 2017

This template displays in <span> tags the value of an amount of money in brass coins in various other currencies.

It is meant to be called by another template, like so: {{Wibi|111111}}

There are two display mode:

- Normal

{{Wibi|111111}}

&&&&&&&&&+111111 111111

In this mode it adds a <span class="hid"> with the value in brass coins in front to allow sorting in tables.

- Table

{{Brassconvert|111111|table=yes}}

&&&&&&&&&+111111 111111 ||A$277.77 || DjToon 555.55 || 231Rh 57s || LSov 5|4|3|7 1/4 || 3,7,0,37Gd || 11M S28|67de || 222,22 dr || Tdr 158,73 || 277 Pumpkin dollars and 77 Pumpkin pence || 3 deevkeee, 70 zeeven and 37 neeeteep || 55555 Zchloty leaden quarter-iota || 111111 wibi

In this mode it gives output appropriate to show as a row in a table.

## Parameters

- First parameter

The amount of money, in brass coins or wichit beads, which are made of natural numbers (positive integers, which excludes fractions), e.g. 12345.

Every coin of every currency in game can be expressed as a natural number of brass coins.

Helper templates (in Category:Money_templates) exist for the various currencies to obtain the number of brass coins and that then call this template to display the amount in the various currencies.

- table

If you assign any value to the table argument it displays in table mode. Putting yes is just more readable than putting something else.