Hi all,
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:
- a new document/article has the 'reliability' status 'green' - after a three months without changes it turns to 'yellow' and after half an year to 'red' and has to be 'verified'.
I`m thinking about using the 'talkpage' for this process and now i`m looking for the neccessary hooks to set this up.
My current ideas are to either: a) dynamic: search for a 'signature' containing a timestamp on the talkpage for each document/article and show the appropiate status each time the document/article is shown.
b)static: use a bot like pybot to do nightly checks (eg, using special:ancientpages) and change a template on all documents/articles where appropiate. (btw: anyone using pybot or another bot for an intranet wiki? can`t get it to work :( )
Are there better ways to do this? Has someone perhaps already implemented a similar solution?
many thanks, dwe
If it were me, (assuming you're sticking with the Monobook skin), I'd hook MonobookTemplateToolboxEnd, do a check on the article's last mod date - then insert a bar of the appropriate color inside an <li> element.
But that's just me. ;)
-- Jim R. Wilson (jimbojw)
On 4/10/07, Dirk Westfal dirk.westfal@frankfurter-verein.de wrote:
Hi all,
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:
- a new document/article has the 'reliability' status 'green'
- after a three months without changes it turns to 'yellow' and after half
an year to 'red' and has to be 'verified'.
I`m thinking about using the 'talkpage' for this process and now i`m looking for the neccessary hooks to set this up.
My current ideas are to either: a) dynamic: search for a 'signature' containing a timestamp on the talkpage for each document/article and show the appropiate status each time the document/article is shown.
b)static: use a bot like pybot to do nightly checks (eg, using special:ancientpages) and change a template on all documents/articles where appropiate. (btw: anyone using pybot or another bot for an intranet wiki? can`t get it to work :( )
Are there better ways to do this? Has someone perhaps already implemented a similar solution?
many thanks, dwe
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
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
mediawiki-l@lists.wikimedia.org