Modul munozarasi:Convert

Sahifa kontenti boshqa tillarda dastaklanmaydi.
Vikipediya, ochiq ensiklopediya

Arxivlar

Error on Tewiki for a testcase[manbasini tahrirlash]

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)

@Arjunaraoc: 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):
  • {{convert|1+2/3|ft|in}}1 23 feet (20 in)
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)
@Arjunaraoc: 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 {{convert|1234567890|m|m}} 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)