Module talk:Val: Difference between revisions

Content deleted Content added
Line 31:
:::Hi, thankx. I will look into it. I prefer an external module because is simpler to keep files synced across different wiki, but moving all the messages and localisation options to the top of the file could be a also be a solution.--[[User:Moroboshi|Moroboshi]] ([[User talk:Moroboshi|talk]]) 10:54, 3 June 2019 (UTC)
 
:::::Hi. I read the discussion [[Template_talk:Val/Archive_6#Comma_as_decimal_separator]]. Currently on it.wiki numbers are formatted directly or indirectly using the [[Help:Magic_words|magic word]] <code>formatnum</code>, so the expected input is a number with dot (".") as decimal separator and no group separator. The outuput is a number with nobreaking space ("&amp;amp;"") as group separator and comma (",") as decimal separator. For consistency with the convert module I would like that comma could also be used in input as decimal separator in alternative to dot.
:::::I have uploaded in the [[Module:Val/sandbox]] a test version with all the error messages listed in a table at the top of the file. It pass all test in [[Template talk:Val/testcases]] except for 27 cases, but the previous version in sandbox was failing them too. Ithaquabe the expected result should be corrected in the table of test ?
:::::I have also added a test on row 133-135 <code><nowiki>if numdot ~= '.' then arg = arg:gsub(numdot, '.') end</nowiki></code> to replace the locale numdot with "." if different from dot. --[[User:Moroboshi|Moroboshi]] ([[User talk:Moroboshi|talk]]) 11:40, 6 June 2019 (UTC)