Changes between Initial Version and Version 1 of LastModifiedMacro


Ignore:
Timestamp:
Feb 16, 2006, 12:27:20 AM (18 years ago)
Author:
HorsePunchKid
Comment:

New hack LastModifiedMacro, created by HorsePunchKid

Legend:

Unmodified
Added
Removed
Modified
  • LastModifiedMacro

    v1 v1  
     1= Last Modified Macro =
     2
     3== Description ==
     4
     5Shows 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 span with a title that gives the exact modification date and the author of the change.
     6
     7''Originally by:'' Steven N. Severinghaus <sns@severinghaus.org>
     8
     9== Bugs/Feature Requests ==
     10
     11Existing bugs and feature requests for LastModifiedMacro are
     12[report:9?COMPONENT=LastModifiedMacro here].
     13
     14If you have any issues, create a
     15[http://trac-hacks.org/newticket?component=LastModifiedMacro&owner=HorsePunchKid new ticket].
     16
     17== Download ==
     18
     19Download the zipped source from [download:lastmodifiedmacro here].
     20
     21== Source ==
     22
     23You can check out LastModifiedMacro from [http://trac-hacks.org/svn/lastmodifiedmacro here] using Subversion, or [source:lastmodifiedmacro browse the source] with Trac.
     24
     25== Example ==
     26
     27Basic usage:
     28{{{
     29[[LastModified]]
     30[[LastModified(delta)]]
     31[[LastModified(MacroBazaar)]]
     32[[LastModified(MacroBazaar,delta)]]
     33}}}
     34
     35For example, {{{ [[LastModified(CustomMacros)]] }}} produces:
     36{{{
     37<span class="last-modified" title="Wed Oct  6 20:34:51 2004 by username">2004-10-06</span>
     38}}}
     39
     40Alternatively, {{{ [[LastModified(CustomMacros,delta)]] }}} produces:
     41{{{
     42<span class="last-modified" title="Wed Oct  6 20:34:51 2004 by username">7 weeks</span>
     43}}}
     44
     45This is a CSS style to apply that will make it about 3.14% slicker:
     46{{{
     47span.last-modified { border-bottom: 1px dotted gray; cursor: help; }
     48}}}
     49
     50== Recent Changes ==
     51
     52[[ChangeLog(lastmodifiedmacro, 3)]]
     53
     54== Author/Contributors ==
     55
     56'''Author:''' [wiki:HorsePunchKid] [[BR]]
     57'''Contributors:'''
     58
     59[[TagIt(macro,HorsePunchKid,0.8,0.9)]]