Argh. Apparently ctrl+enter sends the message, whoops. Anyway, otherwise
you can use RequestContext::getMain()->getWikiPage()->getId();
On 29 July 2014 16:42, Alex Monk <krenair(a)gmail.com> wrote:
You may already have an OutputPage object, which is a
context source. If
so you can just do $out->getWikiPage()->getId();
On 29 July 2014 16:26, Grue Grue <gruealta(a)gmail.com> wrote:
Disclaimer: I am not a coder. I need to pull in
a unique identifier for
each Wiki page for use as a Javascript variable for a script in a
customized Monobook skin (pre v1.16). wgArticleId seems to be the perfect
way to do so, as it does not change with redirects and is not defined for
deleted or special pages. Can someone point me in the correct direction on
how to pull in this value within the skin's PHP file itself? I'm not
looking for an extension, etc. I need to make the changes directly in the
skin.
Thanks for your assistance!
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l