Page MenuHomePhabricator

names from Names.php should be available as {{names:foo}} like {{ns:bar}}
Closed, ResolvedPublic

Description

Author: gangleri

Description:
Hallo!

The names from Names.php should be available as {{names:foo}} (or whatever you
like {{language:foo}} etc.) same as {{ns:bar}}. This would allow to build
categories for wiktionaries by language codes.

Regards reinhardt [[user:gangleri]]

P.S. Maybe we need a tracking bug about requests for new variables and / or new
pseudo templates.


Version: unspecified
Severity: enhancement

Details

Reference
bz3926

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:53 PM
bzimport set Reference to bz3926.
bzimport added a subscriber: Unknown Object (MLST).

robchur wrote:

Added in SVN trunk, r14490. It's called {{#language:}} - Brion suggested the
ParserFunctionsesque syntax as a means of avoiding collisions, since there are
bound to be conflicts on large Wikimedia wikis.

omniplex wrote:

I miss zh-Hans and zh-Hant (registered under the old RFC 3066 rules).

For 3066ter (the next already approved is 3066bis) you need several
thousands of languages times relevant scripts.

For the approved 3066bis (the syntax won't change for 3066ter) look
into the spec., executive summary: language (alpha2 or alpha3), then
up to three alpha3 "extlang" (unused in 3066bis), an optional alpha4
script (Latn, Cyrl, Hans, Hant, etc.), alpha2 region (= ISO country
code) or three digits (UN code), then four digits or five to eight
alpanum "variant" (one or more).

Putting it together, de-CH-1996 means language "de", no extlang in
sight, also no script (Latn is the default for de), and so CH is the
region, and 1996 is the variant.

That's actually already a registered and valid 3066 code, just like
zh-Hans. Stuff like en-GB-oed is "grandfathered".

epriestley added a commit: Unknown Object (Diffusion Commit).Mar 4 2015, 8:16 AM