Difference between revisions of "Template: Roman"

From A Wiki of Ice and Fire
Jump to: navigation, search
(From http://en.wikipedia.org/wiki/Template:Roman)
 
m (cat)
 
Line 1: Line 1:
{{{{{|safesubst:}}}#ifeq:{{{{{|safesubst:}}}#expr: {{{1}}} > 4999999}} | 1 |{{{2|N/A}}}| {{{{{|safesubst:}}}#ifeq: {{{{{|safesubst:}}}#expr: {{{1}}} > 4999}} | 1 |{{{{{|safesubst:}}}overline|{{{{{|safesubst:}}}Roman/2|{{{{{|safesubst:}}}#expr: ({{{1}}} - {{{1}}} mod 5000) div 1000}}}}}}|}}{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#expr: ({{{1}}} div 1000) mod 5}}|0=|4=MMMM|3=MMM|2=MM|1=M}}{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#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}}{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#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}}{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#expr: {{{1}}} mod 10}}|0=|9=IX|8=VIII|7=VII|6=VI|5=V|4=IV|3=III|2=II|1=I}}}}
+
{{{{{|safesubst:}}}#ifeq:{{{{{|safesubst:}}}#expr: {{{1}}} > 4999999}} | 1 |{{{2|N/A}}}| {{{{{|safesubst:}}}#ifeq: {{{{{|safesubst:}}}#expr: {{{1}}} > 4999}} | 1 |{{{{{|safesubst:}}}overline|{{{{{|safesubst:}}}Roman/2|{{{{{|safesubst:}}}#expr: ({{{1}}} - {{{1}}} mod 5000) div 1000}}}}}}|}}{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#expr: ({{{1}}} div 1000) mod 5}}|0=|4=MMMM|3=MMM|2=MM|1=M}}{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#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}}{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#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}}{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}#expr: {{{1}}} mod 10}}|0=|9=IX|8=VIII|7=VII|6=VI|5=V|4=IV|3=III|2=II|1=I}}}}<noinclude>
 +
 
 +
This template converts Arabic numerals (1, 2, etc) into Roman numerals (I, II etc).
 +
[[Category:Templates]]</noinclude>

Latest revision as of 02:58, 14 September 2011


This template converts Arabic numerals (1, 2, etc) into Roman numerals (I, II etc).