Module talk:Convert

Error on Tewiki for a testcase
While most test cases on Tewiki are successful, {convert|2|and|5|km|mi|sigfig=3|abbr=off}} gives → Lua error in మాడ్యూల్:Convert at line 1850: attempt to index local 'en_value' (a nil value).  Need help to fix this. Arjunaraoc (talk) 04:38, 17 August 2022 (UTC)
 * The reason is that you have the most recent Module:Convert but an old Module:Convert/text. Several other things would also fail, for example fractions. Try this at tewiki (it won't work):
 * → 1+2/3 ft
 * I'll do some editing possibly in a few hours or possibly in a day or two. Wait for me to contact you again before proceeding. Feel free to remind me if 48 hours passes and it looks like I've forgotten. Johnuniq (talk) 05:32, 17 August 2022 (UTC)
 * I was able to update te:Module:Convert/text sooner than expected. That should fix errors due to inconsistency due to differing versions. For your information, I put some notes at te:User:Johnuniq/translate in 2015. You might like to review that and let me know if anything is wanted. For example, I was told that  should display 1,23,45,67,890 for the input number. If that is wanted, I have to add more options to Module:Convert/text. Johnuniq (talk) 07:52, 17 August 2022 (UTC)
 * @Johnuniq, Thanks for your quick action. The errors have disappeared. I have reviewed the past discussion notes. Many of the usecases are covered. In Tewiki, we use International and Indian number punctuation depending on the units (Ex:million (International), lakhs (Indian, equivalent to 1/10 of million), in articles. So unless we have a way of specifying that, we may not be able to use that. Arjunaraoc (talk) 12:36, 22 August 2022 (UTC)
 * There is no option to sometimes use one numeric style and sometimes another so you might have to put up with how it is. Johnuniq (talk) 08:51, 23 August 2022 (UTC)

bnwiki
Hi, We didn't update bnwiki's Module:Convert since 2014. Can i update it without updating bn:Module:Convert/data, bn:Module:Convert/text? Will it break anything? আফতাবুজ্জামান (talk) 19:15, 17 December 2023 (UTC)
 * @আফতাবুজ্জামান: Convert and Convert/text must be updated together. The above section describes a problem due to use of a new Convert with an old Convert/text. Convert/data would generally not be a problem and would not need to be updated. I have prepared a new Convert/text for bnwiki but have no idea where to save it. Johnuniq (talk) 03:56, 18 December 2023 (UTC)
 * I worked out the location of the bnwiki module sandbox and created:
 * bn:Module:খেলাঘর/Johnuniq/Convert • Copy from Module:Convert (I used the wrong edit summary: the comment fix is in the next module).
 * bn:Module:খেলাঘর/Johnuniq/Convert/text • Copy from Module:Convert/text and then edited with the bnwiki translations.
 * I think this will work but there are some very significant changes and it would take hours of examination to be confident about that. You might have to try it and see what happens. Johnuniq (talk) 05:31, 18 December 2023 (UTC)
 * In Convert/text, see the two TODO comments that I left for your attention. You will need to also fix the cvt_xxx messages under . That is because the old convert used   to identify where substituted parameters need to go, while the new convert uses   for the first parameter,   for the second, etc. That should be better but it means every   needs to be replaced. Johnuniq (talk) 05:47, 18 December 2023 (UTC)
 * @Johnuniq, 12 cm is giving "12 centimetres (4.7 inches)" instead of "12 centimetres or 4.7 inches". Other than that, everything is working as before. Thank you. আফতাবুজ্জামান (talk) 18:33, 18 December 2023 (UTC)
 * @আফতাবুজ্জামান: Try my most recent edit at bnwiki. I wondered why "or" was missing from that table while comparing the enwiki/bnwiki versions. You can change the text on the right-hand side but "or" on the left-hand side must be unchanged. If that doesn't work, you would need to set up sandbox modules and a template that I can experiment with and add links to them maybe on my bnwiki talk so I can find them in the future. Johnuniq (talk) 22:30, 18 December 2023 (UTC)
 * @Johnuniq, Thanks. আফতাবুজ্জামান (talk) 22:14, 19 December 2023 (UTC)

Discussion at Wikipedia:Village pump (technical) § Let's make Template:convert go away.
You are invited to join the discussion at Wikipedia:Village pump (technical) § Let's make Template:convert go away.. – Novem Linguae (talk) 07:37, 15 January 2024 (UTC)