I have the following piece of code embedded in the wiki page
<comments> title={{PAGENAME}} namespace={{NAMESPACE}} </comments>
hoping that this will pass the title of the page and namespace to be passed as my extension arguments. But these variables are not eveluated inside the custom tags. Is there a work around to make it work?.
Thanks Satya
On 8/31/05, Satyaseelan Viswanathan sviswanathan@spikesource.com wrote:
I have the following piece of code embedded in the wiki page
<comments> title={{PAGENAME}} namespace={{NAMESPACE}} </comments>
Do you actually need those there? If you're running an extension, don't you have access to directly to $this->mTitle->getText() and $wgLang->getNsText($this->mTitle->getNamespace()) or whatever they're called nowadays?
Dori
Yes, i do. Thanks for waking me up.
On Wed, 2005-08-31 at 18:12 -0500, Dori wrote:
On 8/31/05, Satyaseelan Viswanathan sviswanathan@spikesource.com wrote:
I have the following piece of code embedded in the wiki page
<comments> title={{PAGENAME}} namespace={{NAMESPACE}} </comments>
Do you actually need those there? If you're running an extension, don't you have access to directly to $this->mTitle->getText() and $wgLang->getNsText($this->mTitle->getNamespace()) or whatever they're called nowadays?
Dori _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
I do have access to the title and namespace which i didn't think about earlier.
Thanks, satya On Wed, 2005-08-31 at 18:12 -0500, Dori wrote:
On 8/31/05, Satyaseelan Viswanathan sviswanathan@spikesource.com wrote:
I have the following piece of code embedded in the wiki page
<comments> title={{PAGENAME}} namespace={{NAMESPACE}} </comments>
Do you actually need those there? If you're running an extension, don't you have access to directly to $this->mTitle->getText() and $wgLang->getNsText($this->mTitle->getNamespace()) or whatever they're called nowadays?
Dori _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org