Template:CURRENTCONTENTLANGUAGE: Difference between revisions

small clarification
(creation of a sort of current content language)
 
(small clarification)
Line 2:
 
Examples:
* on "FooBar/barfoo", this template returns "en";
* on "FooBar/barfoo/hu", this template return "hu".
(Note: on "Foo/bar" it returns "bar" because "bar" is the language code for Bavarian; "foo" is not a language code; very small (2 or 3 letters) last words can be a problem as seen here.)
 
This template takes no argument, and acts as a magic word. If such a magic word is created in MediaWiki, this template could be deleted. Note that the definition of "content language" here is broader than the (page-specific) content language in MediaWiki, which can currently only be set by the Translate extension or some very special pages.
0

edits