| 1 | = Last Modified Macro = |
| 2 | |
| 3 | == Description == |
| 4 | |
| 5 | 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 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 | |
| 11 | Existing bugs and feature requests for LastModifiedMacro are |
| 12 | [report:9?COMPONENT=LastModifiedMacro here]. |
| 13 | |
| 14 | If you have any issues, create a |
| 15 | [http://trac-hacks.org/newticket?component=LastModifiedMacro&owner=HorsePunchKid new ticket]. |
| 16 | |
| 17 | == Download == |
| 18 | |
| 19 | Download the zipped source from [download:lastmodifiedmacro here]. |
| 20 | |
| 21 | == Source == |
| 22 | |
| 23 | You 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 | |
| 27 | Basic usage: |
| 28 | {{{ |
| 29 | [[LastModified]] |
| 30 | [[LastModified(delta)]] |
| 31 | [[LastModified(MacroBazaar)]] |
| 32 | [[LastModified(MacroBazaar,delta)]] |
| 33 | }}} |
| 34 | |
| 35 | For 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 | |
| 40 | Alternatively, {{{ [[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 | |
| 45 | This is a CSS style to apply that will make it about 3.14% slicker: |
| 46 | {{{ |
| 47 | span.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)]] |