Extension:MessageCommons

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
MessageCommons

Release status:Extension status beta

ImplementationTemplate:Extension#type User interface, Database
DescriptionTemplate:Extension#description Allows MediaWiki messages to be shared from a central database.
Author(s)Template:Extension#username Daniel Friesen
Nathaniel Herman
Jack Phoenix
Latest versionTemplate:Extension#version 1.9.1
MediaWikiTemplate:Extension#mediawiki 1.25+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download
ExampleTemplate:Extension#example ShoutWiki & Interface Messages Wiki (ShoutWiki's MessageCommons wiki)
ParametersTemplate:Extension#parameters
  • $wgMessageCommonsIsCommons
  • $wgMessageCommonsLang
  • $wgMessageCommonsDatabase
Hooks usedTemplate:Extension#hook
MessagesPreLoadManual:Hooks/MessagesPreLoad
EditPage::showEditForm:initialManual:Hooks/EditPage::showEditForm:initial

Translate the MessageCommons extension if it is available at translatewiki.net

Check usage and version matrix.

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

Installation[edit]

  • Download and place the file(s) in a directory called MessageCommons in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    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
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Parameters[edit]

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

See also[edit]