Extension:GlobalNotice

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

Release status:Extension status stable

ImplementationTemplate:Extension#type Notify
DescriptionTemplate:Extension#description Global sitenotice(s) for wiki farms
Author(s)Template:Extension#username Misza
Jack Phoenix
Latest versionTemplate:Extension#version 0.4 (2015-11-22; 15 months ago (2015-11-22))
MediaWikiTemplate:Extension#mediawiki 1.28+
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download
ExampleTemplate:Extension#example ShoutWiki
Hooks usedTemplate:Extension#hook
SiteNoticeAfterManual:Hooks/SiteNoticeAfter
EditPage::showEditForm:initialManual:Hooks/EditPage::showEditForm:initial

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

Check usage and version matrix.

GlobalNotice is a MediaWiki extension that allows to create global sitenotices, which cannot be dismissed, on a wiki farm (such as ShoutWiki).

Dependency[edit]

Installation[edit]

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

To users running MediaWiki 1.24 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension() If you need to install this extension on these earlier versions (MediaWiki 1.24 and earlier), instead of wfLoadExtension( 'GlobalNotice' );, you need to use:

require_once "$IP/extensions/GlobalNotice/GlobalNotice.php";

Usage[edit]