[Mediawiki-l] Getting page title and namespace from within an extension
Adam Meyer
meyer7 at mindspring.com
Mon May 31 03:38:16 UTC 2010
I have a simple tage extension that I wrote. It currently gets the name of the article through $_GET['article']
However this is an issue where pages that are not the main name space do not work because $_GET['article'] ends up equaling something like nameSpace:articleName
Is there a way to grab the article name and name space separately?
It would be even better if I could access the page id.
The php in the extension where I need to use this is
function efBildrTagsRender( $input, $args, $parser ) {
return '<img src="http://test.com/'.$_GET['title'].'.jpg" />';
}
Thanks,
-Adam
More information about the MediaWiki-l
mailing list