vedmaka / mediawiki-extensions-PopupAlerts

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PopupAlerts

The extension allows adding popup alerts to wiki pages with an optional expiration date to allow controlling if and when users will see the popup again. It also has an integrated checksum-based invalidation mechanism to detect popup content change and hence reset the "already-seen" markers.

Requirements

  • Mediawiki 1.31+

Installation

  • Add wfLoadExtension('PopupAlerts'); to the bottom of your LocalSettings.php file

Usage

Just add the following parser function to the page markup:

{{#popupalert:some random wiki markup}} - popup will be seen once in 100 years
{{#popupalert:some random wiki markup|3600}} - popup will be seen once in one hour (3600 seconds)

Note: if you have many popups added to the page only the first one will be taken into account. This limitation was made intentionally to prevent wiki pages from being spammed with popups.

About

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

License:MIT License


Languages

Language:JavaScript 72.0%Language:PHP 13.4%Language:Less 11.4%Language:Mustache 3.2%