Last modified: 2006-06-30 15:15:26 UTC
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.
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.
Thanks Rob!
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".