Template:Brassconvert

From Discworld MUD Wiki
Jump to: navigation, search
&&&&&&&&&&&&&&+9 9 2p DjToon 0.04 2s Lp 3/4 3Gc 4de 0,01 dr Tdr 0,01 | hpt 2 2 Pumpkin pence 3 neeeteep 4 Zchloty leaden quarter-iota 9 wibi

[edit]

Documentation
 

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.