Template talk:TaginfoLinksPerLanguage

From OpenStreetMap Wiki
Latest comment: 20 days ago by 99 tabazan in topic Belgium
Jump to navigation Jump to search

Catalan doesn't work

Catalan language isn't recognized by this template, I can't find the bug.
{{TaginfoLinksPerLanguage|ES|lang=es}} generates yes
{{TaginfoLinksPerLanguage|ES|lang=ca}} generates "no", but it should be "yes".
The links to Taginfo Spain and Andorra are added to this template,
in Template:TaginfoLinksPerLanguage there are defined countries for Catalan language:
ca={{#switch:{{UC:{{{1}}}}}}|#default=no|ES|AD|FR|IT=yes}}
, also in Template:DescriptionLinks links are added.
Links to country-specific Taginfo websites are listed in the table after a link to main Taginfo website on ES:Tag:office=notary, but on Ca:Tag:office=notary there aren't any. There should be links AD and ES maro21 19:11, 23 April 2021 (UTC)Reply

|pa= is 2x

@Bgo eiu: Your edit from 3.10.2022 causes an error message when editing pages about keys and tags. Change the |pa= to the correct value please. -- Lenochod (talk) 16:42, 4. October 2022 (UTC)
Fixed, sorry about that -Bgo eiu (talk) 15:53, 4 October 2022 (UTC)Reply

Belgium

Belgium has country code "BE" but not the language code "be" which is Belarusian language instead. – For regional taginfo instances for Belgium you could use "nl" or "fr", those inlcude a "BE" link. – (I mixed that up with my previous edit. @99 tabazan: Thanks for reverting that!) -- Chris2map (talk) 10:37, 11 April 2026 (UTC)Reply

It got me confused too. Maybe "taginfo-regional" should be "taginfo-langlinks" or similar. --99 tabazan (talk) 20:59, 12 April 2026 (UTC)Reply
Rather, I think, it is the other way around and we should write the taginfo links in Template:DescriptionLinks in uppercase, because these are links to specific taginfo instances for geographic regions or countries, not for languages. What is already displayed in the tag description box are uppercase country codes. To me, it would be coherent if the codes in the template source were also uppercase. -- Chris2map (talk) 17:49, 14 April 2026 (UTC)Reply
We could have input either by uppercase country code or lowercase language code. --99 tabazan (talk) 09:10, 15 April 2026 (UTC)Reply