Release status: stable
|Description||Provides a Last modified date for wiki articles|
|Author(s)||Jeremy Postlethwaite (Jpostlethwaitetalk)|
|Latest version||continuous updates|
Translate the LastModified extension if it is available at translatewiki.net
|Check usage and version matrix; code metrics|
|Bugs: list open list all report|
The LastModified extension displays text on the page showing the last modified page time. See also Timestamp Position Modification.
Customization[edit | edit source]
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[edit | edit source]
You can download the extension directly from the MediaWiki source code repository (browse code). You can get:
- One of the extension's tags
Not all extensions have tags. Some extensions have tags for each release, in which case those tags have the same stability as the release. To download a tag
- Go to the tags list
- Click the name of the tag you want to download
- Click "snapshot"
- The latest version of one of the extension's branches
Each extension has a master branch containing the latest code (might be unstable). Extensions may have further branches as well.
- Go to the branches list
- Click the branch name
- Click "snapshot"
- A snapshot made during the release of a MediaWiki version.
This might be unstable and is not guaranteed to work with the associated MediaWiki version.
After you've got the code, save it into the extensions/LastModified directory of your wiki.
If you are familiar with git and have shell access to your server, you can obtain the extension, with all its tags and branches, as follows:
cd extensions git clone
Installation[edit | edit source]
- Download and extract the file(s) in a directory called
extensions/folder. If you're a developer and this extension is in a Git repository, then instead you should clone the repository.
- Add the following code at the bottom of your LocalSettings.php:
- Done! Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.
Development[edit | edit source]
This extension was created during Tech Days 2011 at the San Francisco Wikimedia office.
- i18n support