![]() Release status: unmaintained |
|
---|---|
Implementation | Variable |
Description | Magic words that display the current user or page language code |
Author(s) | Pierre Rudloff (Rudlofftalk) |
MediaWiki | |
Composer | archi-strasbourg/language-code |
License | GNU General Public License 3.0 |
Download | GitHub: Note: README Releases |
Hooks used
|
|
The LanguageCode extension adds some magic words that display the current user or page language code.
Installation
- Download and place the file(s) in a directory called
LanguageCode
in yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php
wfLoadExtension( 'LanguageCode' );
file: Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Usage
Display the user language
{{USERLANGUAGE}}
Display the page language
{{PAGELANGUAGE}}
See also
- Extension:UILangCode
- Extension:MyVariables
- Extension:Semantic Interlanguage Links
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.