Extension:UILangCode

Category:Obsolete extensions Category:Extensions without an imageCategory:GPL licensed extensions
MediaWiki extensions manual
UILangCode
Release status: stableCategory:Stable extensions
Implementation Parser extension Category:Parser extensions
Description Implements {{UILANGCODE}} magic word to get interface language of the current user
Author(s) Niklas Laxström (Nikerabbittalk)
Latest version 1.0.0
Compatibility policy Snapshots releases along with MediaWiki. Master is not backward compatible.Category:Extensions with release branches compatibility policy
MediaWiki 1.29+Category:Extensions with manual MediaWiki version
Database changes No
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
Example Translatewiki.net
Quarterly downloads 1 (Ranked 115th)
Translate the UILangCode extension if it is available at translatewiki.net
Category:All extensions

The UILangCode extension implements the {{UILANGCODE}} magic word to get the interface language of the current user.

Installation

  • Download and move the extracted UILangCode folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/UILangCode
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'UILangCode' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage

{{UILANGCODE}}

This will make the parser cache vary per user language, greatly decreasing hit rate and increasing storage.

See also

Category:Localisation extensions
Category:All extensions Category:Extensions in Wikimedia version control Category:Extensions with manual MediaWiki version Category:Extensions with release branches compatibility policy Category:Extensions without an image Category:GPL licensed extensions Category:Localisation extensions Category:MagicWordwgVariableIDs extensions Category:Obsolete extensions Category:ParserGetVariableValueSwitch extensions Category:Parser extensions Category:Stable extensions