Difference between revisions of "User:Masdus/Ordinal to Word/0 to 999999"

From BattleMaster Wiki
Jump to navigation Jump to search
(Created page with "<includeonly><!-- -->{{#ifexpr:({{{1}}} < 0) or ({{{1}}} > 999999) or (trunc {{{1}}} <> {{{1}}})<!-- -->|{{error|{{tlx|Ordinal to word/0 to 999999}}: value "{{{1}}}" is not a...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly><!--  
 
<includeonly><!--  
-->{{#ifexpr:({{{1}}} < 0) or ({{{1}}} > 999999) or (trunc {{{1}}} <> {{{1}}})<!--
+
   -->{{#ifexpr:{{{1}}} < 1000<!--
  -->|{{error|{{tlx|Ordinal to word/0 to 999999}}: value "{{{1}}}" is not a natural number in the range 0 to 999,999}}<!--
+
       -->|{{User:Masdus/Ordinal to word/0 to 999|{{{1}}}|us={{{us|}}}|zeroth{{#ifeq:{{{zeroth|}}}|{{{zeroth|-}}}||x}}={{{zeroth|}}}}}<!--
   -->|{{#ifexpr:{{{1}}} < 1000<!--
+
       -->|{{User:Masdus/Cardinal to word/0 to 999|{{#expr: trunc ({{{1}}} div 1000)}}|us={{{us|}}}}} thousand<!--
       -->|{{Ordinal to word/0 to 999|{{{1}}}|us={{{us|}}}|zeroth{{#ifeq:{{{zeroth|}}}|{{{zeroth|-}}}||x}}={{{zeroth|}}}}}<!--
 
       -->|{{Cardinal to word/0 to 999|{{#expr: trunc ({{{1}}} div 1000)}}|us={{{us|}}}}} thousand<!--
 
 
       -->{{#ifexpr: (trunc ({{{1}}} mod 1000)) <> 0<!--
 
       -->{{#ifexpr: (trunc ({{{1}}} mod 1000)) <> 0<!--
 
         -->|{{#ifexpr: (trunc ({{{1}}} mod 1000)) < 100<!--
 
         -->|{{#ifexpr: (trunc ({{{1}}} mod 1000)) < 100<!--
Line 10: Line 8:
 
             -->|,<!--
 
             -->|,<!--
 
           -->}}<!--
 
           -->}}<!--
           -->&#32;{{Ordinal to word/0 to 999|us={{{us|}}}|{{#expr: {{{1}}} mod 1000}}}}<!--
+
           -->&#32;{{User:Masdus/Ordinal to word/0 to 999Ordinal to word/0 to 999|us={{{us|}}}|{{#expr: {{{1}}} mod 1000}}}}<!--
 
         -->|th<!--
 
         -->|th<!--
 
       -->}}<!-- end if mod 1000
 
       -->}}<!-- end if mod 1000
 
     -->}}<!-- end if < 1000
 
     -->}}<!-- end if < 1000
-->}}<!--end if < 0 or > 999999
 
 
--></includeonly>
 
--></includeonly>

Latest revision as of 03:59, 13 April 2011