Mailing List Archive

Page edit timestamps
Is there a way to get a pages last updated timestamp from somewhere
other than the page itself?

I'd like to build a page which will be a table of certain wiki pages I
keep an eye on, and the timestamp for that pages last update? The
{{REVISIONTIMESTAMP}} magic word only seems to give you the last update
for the page that you're viewing.

--
Stephen Berg
Systems Administrator
NRL Code: 7320
Office: 228-688-5738
stephen.berg.ctr@nrlssc.navy.mil


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Re: Page edit timestamps [ In reply to ]
Special:Watchlist?

----- Original Message -----
From: "Stephen Berg (Contractor)" <stephen.berg.ctr@nrlssc.navy.mil>
To: "MediaWiki-l@lists.wikimedia.org" <MediaWiki-l@lists.wikimedia.org>
Date: Mon, 30 Apr 2012 06:29:18 -0500
Subject: [Mediawiki-l] Page edit timestamps

> Is there a way to get a pages last updated timestamp from somewhere
> other than the page itself?
>
> I'd like to build a page which will be a table of certain wiki pages I
> keep an eye on, and the timestamp for that pages last update? The
> {{REVISIONTIMESTAMP}} magic word only seems to give you the last update
> for the page that you're viewing.
>
> --
> Stephen Berg
> Systems Administrator
> NRL Code: 7320
> Office: 228-688-5738
> stephen.berg.ctr@nrlssc.navy.mil
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Re: Page edit timestamps [ In reply to ]
On 04/30/2012 07:14 AM, Steve VanSlyck wrote:
> Special:Watchlist?
>
>
That gives me the info but I was looking for something a little more
flexible. Like being able to insert a tag into a page that will get
expanded out to a last update timestamp for a specific page. That way I
can include it in a table that contains other info as well.

Something like:
{{LASTUPDATE:Page_Title}}

That would look up the last update timestamp for the "Page Title" wiki
page and insert that timestamp.

I run some perl scripts to collect info from my systems on a regular
basis, (software inventories, systems status etc), write out a text file
in wiki formatting and then inject it into a local mediawiki install.
If I could add a column in one of those pages that showed last update
for the system's main wiki page I could quickly see if a system's page
is not getting that automatic update.

--
Stephen Berg
Systems Administrator
NRL Code: 7320
Office: 228-688-5738
stephen.berg.ctr@nrlssc.navy.mil


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Re: Page edit timestamps [ In reply to ]
On Apr 30, 2012, at 3:02 PM, Stephen Berg (Contractor) wrote:

> On 04/30/2012 07:14 AM, Steve VanSlyck wrote:
>> Special:Watchlist?
>>
>>
> That gives me the info but I was looking for something a little more flexible. Like being able to insert a tag into a page that will get expanded out to a last update timestamp for a specific page. That way I can include it in a table that contains other info as well.
>
> Something like:
> {{LASTUPDATE:Page_Title}}
>
> That would look up the last update timestamp for the "Page Title" wiki page and insert that timestamp.

Already requested in 2006.

BugZilla Search:
> (bug 6092[1]) Create colon parserfunction version of {{REVISIONID}}, {{REVISIONTIMESTAMP}} etc. that take pagename as parameter

{{REVISIONTIMESTAMP:Page Title}}

-- Krinkle

[1] https://bugzilla.wikimedia.org/show_bug.cgi?id=6092
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Re: Page edit timestamps [ In reply to ]
On 04/30/2012 12:55 PM, Krinkle wrote:
> On Apr 30, 2012, at 3:02 PM, Stephen Berg (Contractor) wrote:
>
>> On 04/30/2012 07:14 AM, Steve VanSlyck wrote:
>>> Special:Watchlist?
>>>
>>>
>> That gives me the info but I was looking for something a little more flexible. Like being able to insert a tag into a page that will get expanded out to a last update timestamp for a specific page. That way I can include it in a table that contains other info as well.
>>
>> Something like:
>> {{LASTUPDATE:Page_Title}}
>>
>> That would look up the last update timestamp for the "Page Title" wiki page and insert that timestamp.
> Already requested in 2006.
>
> BugZilla Search:
>> (bug 6092[1]) Create colon parserfunction version of {{REVISIONID}}, {{REVISIONTIMESTAMP}} etc. that take pagename as parameter
> {{REVISIONTIMESTAMP:Page Title}}
>
> -- Krinkle
>
> [1] https://bugzilla.wikimedia.org/show_bug.cgi?id=6092
> _______________________________________________
>
The way I understand it after reading that bugzilla entry is that it was
requested, added, but then removed. I've found a way around with some
perl<->mysql scripting that so far is working to my purposes. But this
kind of magic word would be a whole lot easier. It's kind of hard to
figure out if this feature will be added or not. I'll think I'll just
clean up my perl code and move along unless there's something that can
be done to help that bugzilla entry end up getting resolved into a new
feature. Thanks.

--
Stephen Berg
Systems Administrator
NRL Code: 7320
Office: 228-688-5738
stephen.berg.ctr@nrlssc.navy.mil


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Re: Page edit timestamps [ In reply to ]
On 30/04/12 20:24, Stephen Berg (Contractor) wrote:
> The way I understand it after reading that bugzilla entry is that it was
> requested, added, but then removed. I've found a way around with some
> perl<->mysql scripting that so far is working to my purposes. But this
> kind of magic word would be a whole lot easier. It's kind of hard to
> figure out if this feature will be added or not. I'll think I'll just
> clean up my perl code and move along unless there's something that can
> be done to help that bugzilla entry end up getting resolved into a new
> feature. Thanks.

It's unlikely to be added by default, but could find a place in an
extension.



_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l