User:Technical 13/Templates/Roman2dec

About

This template was copied from DDOwiki (Click to see it properly functioning) and employs the following extensions to work properly:

Examples

edit

Commented out until the needed extensions are installed on this wiki.

See Also

edit

Template:Dec2roman

Coding

edit

{{#vardefine:Length|{{#len:}}}}{{#vardefine:Dec|0}}{{#loop:Count|0|{{#var:Length}}|{{#vardefine:Dec{{#var:Count}}|0}}}}{{#loop:Count|Expression error: Unrecognized punctuation character "{".|-{{#var:Length}}|{{#vardefine:Dec|Expression error: Unrecognized punctuation character "{".}}}}{{#var:Dec}}