Page MenuHomePhabricator

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



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



Event Timeline

bzimport raised the priority of this task from to Low.
bzimport set Reference to bz53786.
bzimport added a subscriber: Unknown Object (MLST).
bzimport created this task.Sep 5 2013, 12:31 AM 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. 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.

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 19 2015, 9:36 AM
awight removed a subscriber: awight.Mar 21 2019, 4:06 PM
Restricted Application added a subscriber: Liuxinyu970226. · View Herald TranscriptMar 21 2019, 4:06 PM