Extension:PopupAlerts

MediaWiki extensions manual
OOjs UI icon advanced.svg
PopupAlerts
Release status: beta
Description Adds popup alerts to wiki pages with optionally specified expiration dates
Author(s) Vedmaka, Ike Hecht
Maintainer(s) WikiTeq team
Latest version 0.1 (March 2019)
Compatibility policy Follows the MediaWiki version lifecycle. Master is not backward compatible.
MediaWiki 1.31+
Database changes No
License MIT License
Download
Translate the PopupAlerts extension if it is available at translatewiki.net

Check usage and version matrix.

Issues Open tasks · Report a bug

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.

InstallationEdit

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

UsageEdit

{{#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.

  This extension is professionally maintained by the WikiTeq team.