Difference between revisions of "Template:Dec2rom"
From Istaria Lexica
Easton West (talk | contribs) (combined ifs into an equivalent switch) |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{# | + | <includeonly>{{#switch:{{#expr:{{{1|}}}}} |
+ | | 1 = I | ||
+ | | 2 = II | ||
+ | | 3 = III | ||
+ | | 4 = IV | ||
+ | | 5 = V | ||
+ | | 6 = VI | ||
+ | | #default = {{{1|}}} | ||
+ | }}</includeonly><noinclude>[[Category:Utility Templates]]{{Documentation}}</noinclude> |
Latest revision as of 21:47, 1 October 2022
Template documentation (for the template shown above, sometimes hidden or invisible)
Description[edit]
Converts decimal numbers into romanian ones.
- Find pages using this template
- Currently supports numbers 1-6
- if no number is provided, outputs nothing
Syntax[edit]
{{Dec2rom|number}}
Examples[edit]
{{Dec2rom|1}} {{Dec2rom|3}} {{Dec2rom|}}
Visit Template:Dec2rom/doc to edit this text. (How to: document correctly)