[Mediawiki-l] {{PAGENAME}} variable evaluation inside extension tags

Satyaseelan Viswanathan sviswanathan at spikesource.com
Wed Aug 31 23:32:33 UTC 2005


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 at 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 at Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l




More information about the MediaWiki-l mailing list