Using unregistered transliteration modules

Fragment of a discussion from User talk:Rua

It would be possible to add a "module_override" parameter to transliterate in Module:languages. That way you could transliterate texts with a module other than the registered one. Your method would not work, because the language code is also passed to the transliteration module as a parameter.

We should make it clear though that this new function would only be for testing purposes, to avoid people using it too often. Maybe a tracking template should track all uses of this parameter?

CodeCat14:23, 16 August 2014

That sounds like a good idea. I assume you mean something like {{xlit|module_override=Module:ar-translit}}?

WikiTiki8914:30, 16 August 2014

Well, the function I mentioned would also need such a parameter for it to work. But yes, {{xlit}} would also need to support that parameter.

CodeCat14:33, 16 August 2014

Oh I see, there are more intermediate functions. I think for the transliterate function, "module_override" is a good parameter name, but for the {{xlit}} it should probably be shorter. Something like {{xlit|mod=Module:ar-translit}}, possibly even without the Module: part if we know with 100% certainty that all modules will be in the module namespace.

WikiTiki8914:39, 16 August 2014

Yes, I agree. I'll make the change.

CodeCat14:40, 16 August 2014
 

Ok, it's done. See the change I made to Module talk:languages.

CodeCat14:49, 16 August 2014

Ok, thanks! I've been wanting this for a while.

WikiTiki8914:51, 16 August 2014