Template talk:LangSwitch
Jump to navigation
Jump to search
Rewrite from Commons
This rewrite is based on the Wikimedia Commons template of the same name, however it has been modified to default to the language inferred from the name of the page for compatibility with existing use. The core is now in Lua with Mediawiki’s native language fallbacks and the {{Langcode|{{{lang|}}}}}
pessimisation is no longer used. If you want to implement the Commons default of the user’s interface language in the future you will need to add to add |lang={{langcode}}
to every use of the template without a lang
argument, and to implement Mediawiki’s {{int:lang}}
facility in this wiki. --Andrew (talk) 21:35, 30 December 2019 (UTC)
- @Wynndale: This edit added thousands of pages to Category:LangSwitch template without default version. Is the big red "no default" error significant? If so, what's needed to resolve them all? – Minh Nguyễn 💬 06:59, 31 December 2019 (UTC)
- The big red error is shown on all pages that use templates such as {{IconNode}}. @Wynndale: It's not yet fixed. For one, there's a missing
|
before thedefault
parameter. But that doesn't yet solve it: this parameter must be non-empty. You can re-add the fallback logic of the previous version to solve it. —M!dgard [ talk ] 11:07, 31 December 2019 (UTC)
- The big red error is shown on all pages that use templates such as {{IconNode}}. @Wynndale: It's not yet fixed. For one, there's a missing
- There is a problem with place pages in Ukrainian. The link to Here maps uses the LangSwitch fallbacks to link to a language version of Here (which isn’t available in Ukrainian) and it chokes. Do we actually need to pass a language anyway instead of letting Here sort it out, or indeed do we want links from place pages to non-OSM maps at all? --Andrew (talk) 17:06, 1 January 2020 (UTC)
- @M!dgard: Do you believe there is a problem apart from pages in Ukrainian? For Ukrainian-language pages I would prefer either a specific fix to the Here maps link that Ukrainian speakers agree with or a more general review of the Here link that I mentioned above. --Andrew (talk) 09:51, 4 January 2020 (UTC)
- There's a
|
missing in the red box on this image of the code: code. I haven't seen any symptoms of this yet, but I would expect it gives problems with defaults. I'm proposing to edit the template (like the {{Heavily used template}} in the template asks to do before editing). —M!dgard [ talk ] 11:50, 4 January 2020 (UTC)
- There's a
- Has this red "no default" error ever been fixed ? It's again (or still) showing that error. Links on Portal:Press are broken - only showing a ]]... --katpatuka (talk) 05:52, 6 November 2021 (UTC)
- The reason is that Template:langcode doesn’t return the correct language for Portal:Press at the moment, see Template talk:Langcode#More_robust_implementation. --Andrew (talk) 21:10, 6 November 2021 (UTC)
- It was a guy on #osm channel who had said it had been working a day before so I had a short look at the main templates used but I didn't notice any recent changes in the templates - just that error message. I don't look at modules because those are finally too cryptic for me ;) --katpatuka (talk) 05:06, 7 November 2021 (UTC)