Hi,
Is it possible to know using the MediaWiki API when an article was added to a given category? More specifically, I'm looking for the dates when featured articles where labeled as featured.
If this turns out to be impossible via the API, how can this information be obtained otherwise?
Thanks in advance for your comments, -- Sérgio Nunes
2010/2/10 S. Nunes snunes@gmail.com:
Hi,
Is it possible to know using the MediaWiki API when an article was added to a given category? More specifically, I'm looking for the dates when featured articles where labeled as featured.
If this turns out to be impossible via the API, how can this information be obtained otherwise?
This data isn't really stored anywhere. There's a timestamp in the categorylinks table, but that's not totally reliable: if a vandal blanks the page and someone restores it, the latter edit will be considered as having added the category. I'm also not sure cl_timestamp correctly identifies the last edit that added the category in all cases anyway.
To obtain this timestamp (with limited usefulness as described above), use one of: http://en.wikipedia.org/w/api.php?action=query&prop=categories&clpro... http://en.wikipedia.org/w/api.php?action=query&list=categorymembers&...
Roan Kattouw (Catrope)
Thanks for the quick feedback.
One additional question - aren't "Featured articles" locked when they are labeled as such? Could we say that timestamps for the "Category:Featured article" are more reliable because less vulnerable to vandalism?
-- Sérgio Nunes
On 10 February 2010 11:50, Roan Kattouw roan.kattouw@gmail.com wrote:
2010/2/10 S. Nunes snunes@gmail.com:
Hi,
Is it possible to know using the MediaWiki API when an article was added to a given category? More specifically, I'm looking for the dates when featured articles where labeled as featured.
If this turns out to be impossible via the API, how can this information be obtained otherwise?
This data isn't really stored anywhere. There's a timestamp in the categorylinks table, but that's not totally reliable: if a vandal blanks the page and someone restores it, the latter edit will be considered as having added the category. I'm also not sure cl_timestamp correctly identifies the last edit that added the category in all cases anyway.
To obtain this timestamp (with limited usefulness as described above), use one of: http://en.wikipedia.org/w/api.php?action=query&prop=categories&clpro... http://en.wikipedia.org/w/api.php?action=query&list=categorymembers&...
Roan Kattouw (Catrope)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
2010/2/10 S. Nunes snunes@gmail.com:
Thanks for the quick feedback.
One additional question - aren't "Featured articles" locked when they are labeled as such? Could we say that timestamps for the "Category:Featured article" are more reliable because less vulnerable to vandalism?
Probably, yes. I recommend you take a sample of some cl_timestamps for featured articles and check their accuracy by hand to see how well this works.
Roan Kattouw (Catrope)
mediawiki-api@lists.wikimedia.org