Difference between revisions of "Template:Rhinu"

From Discworld MUD Wiki
Jump to: navigation, search
(move span title to brassconvert)
(upd)
 
Line 1: Line 1:
<includeonly>{{brassconvert|{{#expr:{{#replace:{{#if:{{#pos:{{{1}}}|s}}|{{#replace:{{{1}}}|Rh|* 480 +}}|{{#replace:{{{1}}}|Rh|* 480}}}}|s|*4}}}}}}{{#if:{{#pos:{{{1}}}|s}}|{{#replace:{{#replace:{{{1}}}| |}}|Rh|Rh&nbsp;}}|{{#replace:{{{1}}}| |}}}}</span></includeonly><noinclude>[[Category:Templates]] [[Category:Money templates]]{{documentation}}</noinclude>
+
<!--
 +
Input with default: -->{{#vardefine:input|{{{1|1Rh}}}}}<!--
 +
Arguments:          -->{{#vardefine:raw|{{{raw|}}}}}{{#vardefine:table|{{{table|}}}}}<!--
 +
Convert to wibi:    -->{{#vardefine:wibi|{{#expr:{{#replace:{{#if:{{#pos:{{{1}}}|s}}|{{#replace:{{#var:input}}|Rh|*480+}}|{{#replace:{{#var:input}}|Rh|*480}}}}|s|*4}}}}}}<!--
 +
If raw show wibi:  -->{{#if:{{#var:raw}}|{{#var:wibi}}|<!--
 +
Show brassconvert:  -->{{brassconvert|{{#var:wibi}}|table={{#var:table}}}}<!--
 +
Span not table mode:-->{{#if:{{#var:table}}||{{#var:input}}</span>}}<!--
 +
End if raw:        -->}}<!--
 +
--><noinclude>[[Category:Templates]][[Category:Money templates]]{{documentation}}</noinclude>

Latest revision as of 21:30, 18 February 2017

&&&&&&&&&&&&+480 1Rh

[edit]

Documentation
 

This template is used to display Agatean money.

This template also causes conversions to all other common currencies to be displayed on a mouseover.

Usage

Just enter the Agatean money as you see it for the parameters.

For example, to display '50Rh 30s', just do '{{rhinu|50Rh 30s}}'.

This will do this: &&&&&&&&&&+24120 50Rh 30s