Extension:LastModifiedLink

Last Modified Link provides the option to append the recency of the last modified date / time to an internal link.

What can this extension do?
The Last Modified Link extension extends link markup to append the last modified date of an internal page to it's referring link.

Usage
The link markup is extended by simply appending an "(lm)" to the end of any internal link.

Example

 * 1) displays as MyInternalPage (23 hours)

Limitations
I can't guarantee that this is the best practice, or takes every precaution against cross site scripting attacks ( note the page url is queried against the database. ) Perhaps there should be some sanity checks, but I wrote this for an internal wiki, so I'm not concerned about that.

Download and Installation
Please copy and paste the code found below and place it in

Then add the following to LocalSettings.php:

Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Username and Date
I've customised the function "efParseLastModifiedLinks" to display the username and the date of the last modification. If you keep this patch you can also delete the "time_ago" function that won't be used anymore.