ಮಾಡ್ಯೂಲ್ ಚರ್ಚೆಪುಟ:Convert

edit·history·watch·refresh  To-do list for ಮಾಡ್ಯೂಲ್:Convert:

The module went live on 11 December 2013 so I have archived the now obsolete discussions to Archive 2. The error tracking categories are listed in the documentation at the top of the module page, but I'll list them here:

So far, so good. Johnuniq (talk) 06:37, 13 December 2013 (UTC)

Lua Convert in Slovenian Wikipedia

ಬದಲಾಯಿಸಿ

The problem is that that our input and output parameters contain decimal comma system. Example : 2300,12 or 2.300,12: 1234567,89 or 1.234.567,89. I've just stared to work in our sandbox sl:Template:Convert/peskovnik. Is there an easy solution? --Pinky sl (talk) 06:26, 15 January 2014 (UTC)

It's easy, however I'm busy with some off-Wikipedia issues and cannot spend any time on this now. I had a quick look (see sl:User:Johnuniq) and found that the modules are protected so I cannot edit them. Are the modules in use? If they are, I would say you are rather courageous because they need setting up for a non-English site. By the way, when copying stuff from another wiki, the edit summary should provide a link to the source.
I am a courageous gal and there is no rush. I changed cascade sl:Template:Convert protection, so now only main template is protected. Modules will not be in use until I change main Template:Convert into Lua version. I never used edit summary for newly created pages (I thought wikidata is enough). --Pinky sl (talk) 12:26, 15 January 2014 (UTC)
There is a problem which a user from the Vietnamese wiki pointed out here. The problem is that while the module can be customized to output 12.345.678,9 instead of the English 12,345,678.9, doing that means the module will remove all dots from input values, and will regard comma as the decimal mark. The problem occurs when someone copies text from en.wiki—for example, if they copy the English {{convert|12,345.6|m|ft}}, the module would think the input number is 12,3456 (twelve point three four five six).
Current Convert template accepts decimal comma, so our users are used that they have to change input values into:
{{convert|3,21|kg|lb}} = 3,21 kg (7,1 lb)
{{convert|1003,21|kg|lb}} = 1.003,21 kg (2.211,7 lb)
{{convert|1.003,21|kg|lb}} = 1.003,21 kg (2.211,7 lb)--Pinky sl (talk) 12:26, 15 January 2014 (UTC)
I have to go now, but will be available in perhaps 24 hours. Do you want to translate the messages and unit names? That's takes a bit of work, but can be done. An example is at bn:User:Johnuniq/Translation. Johnuniq (talk) 10:51, 15 January 2014 (UTC)
I will translate messages and units, but not until calculations are ok. And again there is no rush, old Convert works fine terrible with limited features. I thought I will upgrade old version, but Lua version is better. And I will not publish new version from sandbox (sl:Template:Convert/peskovnik) until :sl documentation is also ready. One step at a time: first step is that input (in comma decimal system) calculates ok and that output values are also in decimal comma system. No panic said The Good Soldier Švejk. --Pinky sl (talk) 12:26, 15 January 2014 (UTC)

Now comma decimal system works fine. Thank you. I will start with translations. But there is still one problem - it is Slovene declension#Nouns. I cannot know which case (nominative, genitive, dative, accusative, locative, or instrumental) user will use. I'm considering that outputs in our Convert template should only be abbreviations. --Pinky sl (talk) 09:35, 16 January 2014 (UTC)

I prepared the following before seeing your new comment. I'll post it anyway and will think about the abbreviation issue another time.
Re using a linked edit summary when copying from another wiki: That is standard operating procedure and a requirement when material is reused, even when one project uses material from another. I'm used to it, but am not familiar with the rules—possibly WP:REUSE covers it. When an editor here copies text from one page to another without a linked edit summary, they get pointed to WP:CWW. Apart from any requirements, it makes sense so that when someone looks at the page history in the future they can see where the module came from. I think adding an interwiki link via wikidata is regarded as a convenience for a reader/editor, but is not a form of attribution.
Re the problem of numbers being copied from en.wiki and then being misinterpreted: That is a real problem, for example sl:Airbus A380 includes {{convert|8.41|m|ft|abbr=on}} and the "8.41" is interpreted as eight hundred forty-one.
I fixed Template:Convert/sandbox so the module uses "." for number grouping and "," for the decimal mark. I also updated the modules with the new version that will be deployed at en.wiki soon.
Please see the following:
The compare page shows that the module is already getting better results than the old template. We can continue discussing what needs to be done at the above translate page. I'll check it from time to time, but if I don't respond, please ping me here. Johnuniq (talk) 10:47, 16 January 2014 (UTC)
About sl:Airbus A380 - Problem is with one new user, I gave him a warning and reverted his contribution. I will recheck them all. --Pinky sl (talk) 12:54, 16 January 2014 (UTC)
Return to "Convert" page.