See T359761: Create a parser function to get the direction of a language or script and T310581: Make LanguageCode::bcp47() available in Lua.
This proposes {{#bcp47|sr-ec}} to yield (eg) sr-Cyrl.
See T359761: Create a parser function to get the direction of a language or script and T310581: Make LanguageCode::bcp47() available in Lua.
This proposes {{#bcp47|sr-ec}} to yield (eg) sr-Cyrl.
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Add {{#bcp47}} parser function | mediawiki/core | master | +141 -0 |
Change #1038879 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):
[mediawiki/core@master] Add {{#bcp47}} parser function
Change #1038879 merged by jenkins-bot:
[mediawiki/core@master] Add {{#bcp47}} parser function
Working with @Ebrahim, we got most of the uses of c:Template:BCP47 replaced with #bcp47 parser function, at least in template namespace. Number of transclusions still listing just under 5M.
The code seem to be deployed and working. All places using the the template version on Commons were replaced with the parser function, and the template was deprecated. I think it is time to close this task