MediaWiki extensions manual
WarnNotRecentlyUpdated
Release status: unknown
Implementation User interface
Description Warn on legacy, old or out of validity content
Author(s) (Derecksontalk)
MediaWiki
License GNU General Public License 2.0 or later
Download
README
Parameters
$wgWarnNotRecentlyUpdatedDelay
$wgWarnNotRecentlyUpdatedPages
Hooks used
  • ArticleViewHeader
Quarterly downloads 1 (Ranked 169th)
Translate the WarnNotRecentlyUpdated extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

The WarnNotRecentlyUpdated extension checks the last modified date of content pages and print a warning if the page is older than a specific delay.

The intent is to be used for manuals/checklists/documentation for teams where information is known to rot quickly, and where there is a very good chance information older than a certain age can be legacy or are dangerous to trust:

  • network/devops/SRE/operations/systems/infrastructure
  • legal content
  • fiscal content

Installation

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

Configuration parameters

$wgWarnNotRecentlyUpdatedDelay
the delay in seconds for a page to be considered fresh; by default, 31 536 000 seconds (one year)
$wgWarnNotRecentlyUpdatedPages
an array of pages prefix by namespace where the warning should apply

Interface parameters

The $wgWarnNotRecentlyUpdatedPages configuration parameter makes references to the interface messages. Those messages are displayed if the page belongs to one of the prefixes and has been updated a greater delay than configured.

See also

This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.