Page MenuHomePhabricator

Make the name of the country available as parserfunction
Open, LowPublicFeature

Description

Author: romaine.wiki

Description:
Currently we can use {{#language:xx}} to insert the language name in pages, and {{#language:xx|en}} to show language xx in English. Please make such also available for countries, like {{#country:XX}} and {{#country:XX|yy}} with XX replaced by the ISO 3166-1 code of the country and yy the language it should be shown in.

The data is already present in CLDR.


Version: unspecified
Severity: enhancement

Details

Reference
bz53786

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:52 AM
bzimport set Reference to bz53786.
bzimport added a subscriber: Unknown Object (MLST).

romaine.wiki wrote:

And with {{#country:XX}} or unknown code at $2 then English as fallback

Have you considered using Wikidata data for this? It probably has better coverage.

romaine.wiki wrote:

Yes considered, found ways to do so: no. Main issue: titles of articles are not the same as the to be used text.

I noticed that this data is already available in MediaWiki, as it is used in the CentralNotice system for example.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:13 AM
Aklapper removed a subscriber: wikibugs-l-list.