From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png

Release status:Extension status stable

LastModified in English
ImplementationTemplate:Extension#type Special page
DescriptionTemplate:Extension#description Provides a Last modified date for wiki articles
Author(s)Template:Extension#username Jeremy Postlethwaite (Jpostlethwaitetalk)
Latest versionTemplate:Extension#version continuous updates
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GNU General Public License 2.0 or later


Hooks usedTemplate:Extension#hook

Translate the LastModified extension if it is available at translatewiki.net

Check usage and version matrix.


Open tasks ยท Report a bug

The LastModified extension displays text on the page showing the last modified page time. See also Timestamp position modification. This extension was created during Tech Days 2011 at the San Francisco Wikimedia office.


Using the $wgLastModifiedRange parameter, you can change the display range (or timelimit) used by the extension. For example, if you only want to display the message for articles that were updated less than 30 days ago, set this value to 2. This will display a message like: "Last updated 20 days ago." You will not see this message for articles that were modifed more than 30 days ago.

The parameter only accepts an integer value. Here are the options available:

  • 0: years - display: years, months, days, hours, minutes, seconds
  • 1: months - display: months, days, hours, minutes, seconds
  • 2: days - display: days, hours, minutes, seconds
  • 3: hours - display: hours, minutes, seconds
  • 4: minutes - display: minutes, seconds
  • 5: seconds - display: seconds

The default used by the extension is "0".


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