Dirk Westfal:
i`m looking for a way to implement an "aging" mechanism for
documents/articles
to indicate the assumed reliability of the content as part of a
quality
management process:
One way would be to put a template on the page itself, which indicates
the status in some non-intrusive way. You can then use REVISIONDAY,
etc.
For example, this template:
Last mod on
{{REVISIONDAY}}/{{REVISIONMONTH}}/{{REVISIONYEAR}}:{{REVISIONTIMESTAMP}}
Now is {{CURRENTTIMESTAMP}}
produces
Last mod on 10/4/2007:20070410075005
Now is 20070410145234
Use the parser functions to do some math on CURRENTTIMESTAMP versus
REVISIONTIMESTAMP, and produce the appropriate output.
Note that CURRENTTIMESTAMP only updates when the page cache expires, so
(depending on the magic $wgCacheEpoch stuff at the end of
LocalSettings.php) it may be a day or two out of date, but it should
suffice for your purposes.
Ian