[Mediawiki-l] mediawiki:sitenotice

Alexis Moinet alexis.moinet at fpms.ac.be
Wed May 30 07:07:53 UTC 2007

Alexis Moinet a écrit :
> aretai aretai wrote :
>>>>> I've a problem - I'd like to put some info on most of the pages in my
>>>> wiki
>>>>> (including the ones that are being edited). I know that it's possible
>>>> with
>>>>> mediawiki:sitenotice - to put some info on all the pages. However I
>>>> need
>>>>> to
>>>>> exclude the main page (have it clearer) and some other pages that
>>>> don't
>>>>> require this info. Is there a way to achieve it?
> what about using some template with #if: ? (I don't know the syntax of it but it could be something like #if: {{PAGENAME}} is not {{MAINPAGENAME}} do something)

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

Does anyone know about a variable for Main Page (something like {{MAINPAGE}}) ?

More information about the MediaWiki-l mailing list