Extension:MessageCommons

Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:GPL licensed extensions
MediaWiki extensions manual
MessageCommons
Release status: betaCategory:Beta status extensions
Implementation User interfaceCategory:User interface extensions, Database Category:Database extensions
Description Allows MediaWiki messages to be shared from a central database.
Author(s)
Latest version 2.0 (2020-05-26)
MediaWiki 1.43+Category:Extensions with manual MediaWiki version
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
Example ShoutWiki & Interface Messages Wiki (ShoutWiki's MessageCommons wiki)
  • $wgMessageCommonsLang
  • $wgMessageCommonsIsCommons
  • $wgMessageCommonsDatabase
Quarterly downloads 0
Public wikis using 1,150 (Ranked 239th)
Translate the MessageCommons extension if it is available at translatewiki.net
Issues Open tasks · Report a bug
Category:All extensions

The MessageCommons extension allows MediaWiki messages to be shared from a central database.

Installation

  • Download and move the extracted MessageCommons 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/MessageCommons
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'MessageCommons' );
    
  • Set $wgMessageCommonsIsCommons to true for the wiki where messages should be fetched from and set $wgMessageCommonsLang and $wgMessageCommonsDatabase in the wiki farm's GlobalSettings.php/CommonSettings.php
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Parameters

  • $wgMessageCommonsIsCommons (boolean)
Set this to true for the wiki which "hosts" MessageCommons
  • $wgMessageCommonsLang (string)
Set this to the language code ($wgLanguageCode) of the MessageCommons wiki
  • $wgMessageCommonsDatabase (string)
Set this to the database name of the MessageCommons wiki

See also

Category:Extensions by ShoutWiki
Category:All extensions Category:Beta status extensions Category:Database extensions Category:EditPage::showEditForm:initial extensions Category:Extensions by ShoutWiki Category:Extensions in Wikimedia version control Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:GPL licensed extensions Category:MessagesPreLoad extensions Category:User interface extensions