On Thu, Mar 14, 2013 at 8:11 AM, Platonides <platonides(a)gmail.com> wrote:
On 14/03/13 15:43, Jiang BIAN wrote:
Hi MediaWiki dev,
I want to know the revision of a HTML of an article.
I noticed that every page (no matter which namespace an article is in),
the HTML contains a section "printfooter", and there will be a url after
that looks like:
http://www.mediawiki.org/w/index.php?title=Manual:Footer&oldid=6595…
http://www.mediawiki.org/w/index.php?title=Manual:Footer&oldid=6595…
The "oldid=659536" is just the revision id of the HTML of an article.
My question is, if this is a reliable way to find out the revision? Or
is there other recommended way?
Thanks
You will also have it in the "Permanent link" link of the sidebar and as
Thanks for pointing out :) seems I can use this as a double-check.
wgCurRevisionId in the javascript variables set at the top.
The value in this variable should always be the
latest revision of the
article, right?
> _______________________________________________
> Mediawiki-api mailing list
> Mediawiki-api(a)lists.wikimedia.org
>
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
--
Jiang BIAN
This email may be confidential or privileged. If you received this
communication by mistake, please don't forward it to anyone else, please
erase all copies and attachments, and please let me know that it went to
the wrong person. Thanks.