Extension:LanguageCode

MediaWiki extensions manual
OOjs UI icon advanced-invert.svg
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.

InstallationEdit

  • 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 :
    wfLoadExtension( 'LanguageCode' );
    
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

UsageEdit

Display the user languageEdit

{{USERLANGUAGE}}

Display the page languageEdit

{{PAGELANGUAGE}}

See alsoEdit