Template:Roman: Difference between revisions
From FOIwiki
Jump to navigationJump to search
Test |
No edit summary |
||
Line 1: | Line 1: | ||
{{# | <noinclude>This template formats a number less than 1000 in lower-case Roman numerals | ||
Examples: | |||
<code><nowiki>{{roman|123}}</nowiki></code> ↔ {{roman|123}} | |||
<code><nowiki>{{roman|999}}</nowiki></code> ↔ {{roman|999}} | |||
<code><nowiki>{{roman|42}}</nowiki></code> ↔ {{roman|42}} | |||
<code><nowiki>{{roman|2}}</nowiki></code> ↔ {{roman|2}} | |||
</noinclude>{{roman100|{{#expr:({{{1}}} div 100) mod 10}}}}{{roman10|{{#expr:({{{1}}} div 10) mod 10}}}}{{roman1|{{#expr:{{{1}}} mod 10}}}} |
Latest revision as of 23:22, 9 May 2010
This template formats a number less than 1000 in lower-case Roman numerals
Examples:
{{roman|123}}
↔ cxxiii
{{roman|999}}
↔ cmcxix
{{roman|42}}
↔ xlii
{{roman|2}}
↔ ii