Template talk:LangSelect

From Meta, a Wikimedia project coordination wiki

Does show nothing for some languages[edit]

Throwing this here and trying to ping User:Verdy p as having done some stuff on this template, after it didn't get any attention at Tech#Template:LangSelect doesn't work with all language settings: Template:LangSelect displays nothing if the language is set to for example de-CH.

Would also be nice if it'd fall back to de or even en or any other available language to at least display something instead of just nothing, or maybe give a hint about the selection box at the very top of the page if the current language isn't translated for some text. --Nenntmichruhigip (talk) 21:12, 27 March 2021 (UTC)[reply]

This legacy template performs specific tests on language codes used as parameter names, to order them also correctly if the full list is displayed. Not all possible parameter names are detected. I added "de-CH". The template is large because languages are tested by parameter names and this is unusual in templates (the alternative would be to use a Lua module that could validate the parameter list (recognize only valid codes) and then format the list in the correct order).
Note: you wrote your first message on a page that I do not follow (Tech is renamed regularly when it is archived: if you want to have someone seeing your message there, you need to ping them explicitly). verdy_p (talk) 23:15, 27 March 2021 (UTC)[reply]