Extension:PopupAlerts

Category:Unmaintained extensions#PopupAlerts Category:Extensions without an imageCategory:Extensions with invalid or missing typeCategory:MIT licensed extensions
MediaWiki extensions manual
PopupAlerts
Release status: unmaintainedCategory:Unmaintained extensions
Description Adds popup alerts to wiki pages with optionally specified expiration dates
Author(s) Vedmaka, Ike Hecht
Latest version 0.1 (March 2019)
Compatibility policy For every MediaWiki release that is a Long Term Support release there is a corresponding branch in the extension.Category:Extensions with long-term support release branches compatibility policy
MediaWiki 1.31+Category:Extensions with manual MediaWiki version
Database changes No
License MIT License
Download Category:Extensions in Wikimedia version control
Quarterly downloads 2 (Ranked 114th)
Translate the PopupAlerts extension if it is available at translatewiki.net
Issues Open tasks · Report a bug
Category:All extensions

The PopupAlerts extension allows to add popup alerts to wiki pages with an optionally specified expiration date so it can be controlled when (and if) 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.

This extension was created for WikiWorks.

Installation

  • Download and move the extracted PopupAlerts folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/PopupAlerts
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'PopupAlerts' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage

{{#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 added intentionally to prevent wiki pages from being spammed with popups.

Category:Popup extensions
Category:All extensions Category:Extensions in Wikimedia version control Category:Extensions with invalid or missing type Category:Extensions with long-term support release branches compatibility policy Category:Extensions with manual MediaWiki version Category:Extensions without an image Category:MIT licensed extensions Category:ParserFirstCallInit extensions Category:Popup extensions Category:Unmaintained extensions