Template talk:Language icon

From OpenStreetMap Wiki
Jump to navigation Jump to search

Simplifying this template, improving translations

This template has a lot of fluff but also lacks flexibility in its tooltip texts. It could be trimmed down to only support icons used to flag links by language such as {{German}} ((de)) without arguments (this template only having a language code argument), also the the tooltip can be optimised to a single {{LangSwitch}} by getting rid of the Lego string colon and replacing {{Languagename}} with Mediawiki’s #language magic word.

Without Lego strings the tooltip can be rephrased, for instance this could appear on English-language pages as “in (language)”, “text in (language)” or “page in (language)” instead of “Language: German”.

--Andrew (talk) 11:04, 5 July 2019 (UTC)

Given how frequently this template is used on a given page, can we remove all {{LangSwitch}} usage, since it has to get reevaluated once per transclusion? I think just the language name would be sufficient. For example, interlanguage links on Wikimedia sites display just the language name as the tooltip. – Minh Nguyễn 💬 12:26, 5 July 2019 (UTC)
Yes, we might as well do that. --Andrew (talk) 08:10, 7 July 2019 (UTC)
For some reason, there is no tooltip any more when using {{English}}(en). @Wynndale In case you changed the input for this template, could you please also review all templates which transclude it? --Tigerfell This user is member of the wiki team of OSM (Let's talk) 17:34, 16 July 2019 (UTC)
Sorry about that. It should work now. --Andrew (talk) 20:45, 16 July 2019 (UTC)