Extension:WarnNotRecentlyUpdated
![]() Release status: unknown |
|
---|---|
![]() |
|
Implementation | User interface |
Description | Warn on legacy, old or out of validity content |
Author(s) | (Derecksontalk) |
MediaWiki | >= 1.35.0 |
License | GNU General Public License 2.0 or later |
Download | README |
$wgWarnNotRecentlyUpdatedDelay $wgWarnNotRecentlyUpdatedPages |
|
Quarterly downloads | 0 |
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 Edit
- Download and place the file(s) in a directory called
WarnNotRecentlyUpdated
in yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php file:
require_once "$IP/extensions/WarnNotRecentlyUpdated/WarnNotRecentlyUpdated.php";
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Configuration parameters Edit
- $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 Edit
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 Edit
- Extension:LastModified puts visibly the update date on the top of the page