Last Modified Macro

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: Python##/share/trac/htdocs/css/wiki.txt)

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

Recent Changes

[657] by HorsePunchKid on 04/15/06 09:28:14

LastModifiedMacro:

Fixing bug with query parameterization; works now in 0.9.4; closes #223, #241

[435] by HorsePunchKid on 02/16/06 11:35:34

LastModifiedMacro:

Initial import of LastModified?.py macro

[434] by HorsePunchKid on 02/16/06 11:34:50

LastModifiedMacro:

Initial import of LastModified?.py macro

Author/Contributors

Author: HorsePunchKid
Contributors: Nathan Kidd