Template:Roman: Difference between revisions

From TalossaWiki
Jump to navigation Jump to search
(Created page with "{{<includeonly>safesubst:</includeonly>#ifeq:{{<includeonly>safesubst:</includeonly>#expr: {{{1}}} > 4999999}} | 1 |{{{2|N/A}}}|<noinclude> </noinclude>{{<includeonly>safesubs...")
 
No edit summary
Line 4: Line 4:
</noinclude>{{<includeonly>safesubst:</includeonly>#switch:{{<includeonly>safesubst:</includeonly>#expr: ({{{1}}} div 100) mod 10}}|0=|9=CM|8=DCCC|7=DCC|6=DC|5=D|4=CD|3=CCC|2=CC|1=C}}<noinclude>
</noinclude>{{<includeonly>safesubst:</includeonly>#switch:{{<includeonly>safesubst:</includeonly>#expr: ({{{1}}} div 100) mod 10}}|0=|9=CM|8=DCCC|7=DCC|6=DC|5=D|4=CD|3=CCC|2=CC|1=C}}<noinclude>
</noinclude>{{<includeonly>safesubst:</includeonly>#switch:{{<includeonly>safesubst:</includeonly>#expr: ({{{1}}} div 10) mod 10}}|0=|9=XC|8=LXXX|7=LXX|6=LX|5=L|4=XL|3=XXX|2=XX|1=X}}<noinclude>
</noinclude>{{<includeonly>safesubst:</includeonly>#switch:{{<includeonly>safesubst:</includeonly>#expr: ({{{1}}} div 10) mod 10}}|0=|9=XC|8=LXXX|7=LXX|6=LX|5=L|4=XL|3=XXX|2=XX|1=X}}<noinclude>
</noinclude>{{<includeonly>safesubst:</includeonly>#switch:{{<includeonly>safesubst:</includeonly>#expr: {{{1}}} mod 10}}|0=|9=IX|8=VIII|7=VII|6=VI|5=V|4=IV|3=III|2=II|1=I}}}}
</noinclude>{{<includeonly>safesubst:</includeonly>#switch:{{<includeonly>safesubst:</includeonly>#expr: {{{1}}} mod 10}}|0=|9=IX|8=VIII|7=VII|6=VI|5=V|4=IV|3=III|2=II|1=I}}}}<noinclude>
===Usage===
This template takes an Arabic number and converts it to a Roman number.
[[Category:Templates]]</noinclude>

Revision as of 19:45, 25 June 2012

Usage

This template takes an Arabic number and converts it to a Roman number.