[[PageOutline(2-5,Contents,pullout)]] = Automatically add a Last Modified line at the end of each wiki page = == Description == By pasting this snipped at the right place of your site template, all your wiki pages will automatically have a "Last Modified" line added at the very end - without having it to activate manually on each page, as the LastModifiedMacro does. Of course this information will be appended to wiki pages only. == Bugs/Feature Requests == Existing bugs and feature requests for WikiLastModifiedPatch are [report:9?COMPONENT=WikiLastModifiedPatch here]. If you have any issues, create a [http://trac-hacks.org/newticket?component=WikiLastModifiedPatch&owner=izzy new ticket]. == Download == Copy and paste the code from the example below. == Example == This example shows how to add "Last Modified" information to your `site.html` file (see also: t:TracInterfaceCustomization). I left the "site-specific footer" code from the original site template in here to make clear at what place the "last modified" code should go. Of course, you may chose a different text (e.g. localized to your language). {{{ #!xml
${select('*')}
Last modified by ${format_author(page.author)}, ${format_datetime(page.time)} (${dateinfo(page.time)} ago)
${select('*|text()')} }}} Some CSS definitions you may want to add to your style sheet: {{{ #!css div.lastmodified { font-style:italic; font-size: 80%; text-align: center; } }}} == Author/Contributors == '''Author:''' [wiki:izzy] [[BR]] '''Maintainer:''' [wiki:izzy] [[BR]] '''Contributors:'''