[Mediawiki-l] Detecting main page with conditional statement?

Joshua C. Lerner jlerner at gmail.com
Tue Oct 23 23:41:09 UTC 2007


On 10/23/07, Teemu Lantta <teemu.lantta at helsinki.fi> wrote:

> I just can't figure out how to make an if expression on skin/template
> file that checks if you are on main page or not - and after that writes
> some html. The problem seems to be that I can't find the freakin
> variable that contains the name of current page or article.

You might be looking for something like:

$this->data['title'] == 'Main Page')

Joshua



More information about the MediaWiki-l mailing list