Show last modification date of wiki page

Description

Shows the last modification date of the specified page, or the page the macro appears in if not specified. An optional argument, delta, can be given to show the time elapsed since the last modification. The output is placed in a <span> with a title that gives the exact modification date and the author of the change.

Bugs/Feature Requests

Existing bugs and feature requests for LastModifiedMacro are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out LastModifiedMacro from here using Subversion, or browse the source with Trac.

Example

Basic usage:

[[LastModified]]
[[LastModified(delta)]]
[[LastModified(MacroBazaar)]]
[[LastModified(MacroBazaar,delta)]]

For example, [[LastModified(CustomMacros)]] produces:

<span class="last-modified" title="Wed Oct  6
    20:34:51 2004 by username">2004-10-06</span>

Alternatively, [[LastModified(CustomMacros,delta)]] produces:

<span class="last-modified" title="Wed Oct  6
    20:34:51 2004 by username">7 weeks</span>

This is a CSS style to apply that will make it about 3.14% slicker:

span.last-modified
{
    border-bottom: 1px dotted gray;
    cursor: help;
}

Building off the above style, I did the following to match the colour of the TocMacro. (To apply this to all projects, append the below text to this file: /usr/share/trac/htdocs/css/wiki.css)

/* Styles for the LastModified wikimacro */
span.last-modified
{
    border-bottom: 1px dotted gray;
    border-top: 1px dotted gray;
    background: #FFFFDD;
    cursor: help;
}

Recent Changes

[12207] by rjollos on 10/19/12 02:45:43

Fixes #7530: Changed license to 3-Clause BSD, with permission of original author.

[12203] by rjollos on 10/19/12 00:25:07

Refs #8527: Added more metadata to the source file.

[12202] by rjollos on 10/19/12 00:01:06

Refs #8527: Updated documentation.

[12201] by rjollos on 10/18/12 23:45:40

Refs #8527: Renamed 0.11 directory to trunk. Moved 0.8 and 0.9 directories to branches.

See Also

The WikinfoPlugin retrieves information from the database and add it to a wikipage. Currently supported keywords: author, version, changed_by, comment, changed_ts.

Author/Contributors

Author: HorsePunchKid
Maintainer: rjollos
Contributors: Nathan Kidd, Bill Coffman
License: 3-Clause BSD