Jump to content

Module talk:Convert

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Johnuniq (talk | contribs) at 07:52, 17 August 2022 (Error on Tewiki for a testcase: done). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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)[reply]

@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)[reply]
@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)[reply]