Extension:DismissableSiteNotice

From MediaWiki.org

Jump to: navigation, search
Manual on MediaWiki Extensions
List of MediaWiki Extensions
DismissableSiteNotice

Release status: stable

Description Allows users to close the sitenotice
Author(s) Brion Vibber
Download SVN
Example Wikimedia sites
Wikia sites

The DismissableSiteNotice extension allows users to close the sitenotice, using cookies. When you add a new sitenotice and want everyone to see it, remember to bump up the count on MediaWiki:Sitenotice id by one (e.g. if it would be 5, you'd replace the page with the number 6 and so on).

[edit] Installation

To install DismissableSiteNotice, download the files from SVN and put them into your /extensions directory, e.g.:

  • /extensions/DismissableSiteNotice/DismissableSiteNotice.php
  • /extensions/DismissableSiteNotice/DismissableSiteNotice.i18n.php

Then, add the following line near the end of your LocalSettings.php:

require_once( "$IP/extensions/DismissableSiteNotice/DismissableSiteNotice.php" );

This extension is being used on one or more of Wikimedia's wikis. It means that the extension is stable and works well enough to be used by such high traffic websites. A full list of the extensions installed on a particular wiki is produced by Special:Version on that wiki.

Personal tools