Skip to content

Github mirror of MediaWiki extension DismissableSiteNotice - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)

License

Notifications You must be signed in to change notification settings

kolzchut/mediawiki-extensions-DismissableSiteNotice

 
 

Repository files navigation

DismissableSiteNotice extension for MediaWiki

The DismissableSiteNotice extension allows users to close the sitenotice, using Javascript and cookies.

Configuration

  • $wgDismissableSiteNoticeForAnons: false by default. Set to true to allow unregistered users to dismiss the sitenotice.

  • $wgDismissableSiteNoticeCloseIcon: false by default. Set to true to replace the textual close link with an icon.

  • When you add a new sitenotice and want everyone to see it, you can change one of the following (the code takes them both into account):

    • [[MediaWiki:Sitenotice id]] - set to a higher number than the current.
    • $wgSiteNoticeId: set to a higher number than last.
  • To change the text of the "Hide" link, you can edit [[MediaWiki:Sitenotice_close]]. If you want to remove or change the enclosing parantheses, edit [[MediaWiki:sitenotice_close-brackets]].

About

Github mirror of MediaWiki extension DismissableSiteNotice - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 62.6%
  • JavaScript 30.1%
  • CSS 7.3%