[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mediawiki-l
Subject:    Re: [Mediawiki-l] {{PAGENAME}} variable evaluation inside
From:       Satyaseelan Viswanathan <sviswanathan () spikesource ! com>
Date:       2005-08-31 23:37:18
Message-ID: 1125531438.27145.8.camel () riogrande ! spikesource ! com
[Download RAW message or body]

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 mailing list
MediaWiki-l@Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic