[Mediawiki-l] mediawiki:sitenotice

Roger Chrisman roger at rogerchrisman.com
Wed May 30 07:49:30 UTC 2007


Alexis Moinet wrote:
> {{ #ifeq: {{PAGENAME}} | Main Page | <todo if equal> | <to do if not
> equal>  }}
>
> Does anyone know about a variable for Main Page (something like
> {{MAINPAGE}}) ?

There is [[MediaWiki:Mainpage]] (it is used in the default 
[[MediaWiki:Sidebar]] for example), the contents of which can be 
inserted into a page or into your #ifeq parameter with 
{{MediaWiki:Mainpage}}. So:

{{ #ifeq: {{MediaWiki:Mainpage}} | Main Page | <todo if equal> | <to do 
if not equal>  }}


I think... forgive me if I've mixed something up...

-- 
Roger Chrisman  :-)    http://Wikigogy.org <-- to share lesson plans



More information about the MediaWiki-l mailing list