Difference between revisions of "Template:Cardinal to word"

From blackwiki
Jump to navigation Jump to search
imported>Primefac
imported>Johnuniq
(redirect to Template:Number to word per TfD; old template gave "minus thirty" but that is now "negative thirty"; can make dependent on |us=on if needed)
Line 1: Line 1:
<noinclude>{{Being deleted|2018 November 13|Template:Cardinal_to_word|merge=Template:Number to word}}</noinclude><includeonly><!--
+
#REDIRECT [[Template:Number to word]]
-->{{#ifexpr:({{{1}}} < -999999) or ({{{1}}} > 999999) or (trunc {{{1}}} <> {{{1}}})<!--
 
  -->|{{error|{{tlx|Cardinal to word}}: value "{{{1}}}" is not an integer in the range -999,999 to 999,999}}<!--
 
  -->|{{#ifexpr:{{{1}}} < 0<!--
 
      -->|minus {{Cardinal to word/0 to 999999|us={{{us|}}}|{{#expr: -({{{1}}})}}}}<!--
 
      -->|{{Cardinal to word/0 to 999999|{{{1}}}|us={{{us|}}}|zero{{#ifeq:{{{zero|}}}|{{{zero|-}}}||x}}={{{zero|}}}}}<!--
 
    -->}}<!-- end if < 0
 
-->}}<!--end if < -999999 or > 999999
 
--></includeonly><noinclude>
 
{{documentation}}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKI LINKS TO THE DOC PAGE -->
 
</noinclude>
 

Revision as of 04:35, 4 December 2018