Template talk:Digits2text/en

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Surprised by what I saw at Category:10000000 (number), I came here to report that this is broken: {{Digits2text|10000000}} → ten million. If it were in Lua, I’d try to fix it, but trying to find out the way among all those wikicode braces… (Honestly, I see no point in using {{Number cat}} on such categories anyway, now that we have Wikidata infobox, but whatever.) --Mormegil (talk) 08:48, 22 March 2023 (UTC)[reply]

Your example above does not state the language for which the conversion is done: this page is rendered in the current user language. I add here the same conversion but explicitly for English, German, French, in the doc page.
Note that plurals for millions/billions... were also not fully tested (needed in French, but this depends if there are lower-order digits to spell or not). For German there's a more visible bug (partly solved as there was an undesired '|' in the code doing some #if tests).
This looks on simplifications made for numbers larger or equal to 10 millions. verdy_p (talk) 20:09, 18 January 2024 (UTC)[reply]
This looks to be solved. The template was not sufficiently tested for such larger absolute values, there were a few incorrect conditions for testing which part to show. verdy_p (talk) 21:07, 18 January 2024 (UTC)[reply]