Extension:LanguageCode

MediaWiki extensions manual
LanguageCode
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
README
Releases

The LanguageCode extension adds some magic words that display the current user or page language code.

Installation edit

  • Download and place the file(s) in a directory called LanguageCode in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'LanguageCode' );
    
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage edit

Display the user language edit

{{USERLANGUAGE}}

Display the page language edit

{{PAGELANGUAGE}}

See also edit