On Wed, Sep 22, 2010 at 00:27, <orschiro(a)googlemail.com> wrote:
...
Nonetheless I'd be interested what you mean by
comparing the namespace
with a parser function. Is there any documentation on this topic?
Platonides is talking about the {{#ifeq ...}} parser function (which
is provided by the ParserFunctions extension
–http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions).
Here's a brief example using #ifeq that would include a page called
SiteNotice if the current page isn't part of a namespace.
{{#ifeq: {{NAMESPACE}} | | {{SiteNotice}} | <!-- This page is part
of a namespace. Do nothing --> }}
For a list of additional magic words (like {{NAMESPACE}} that are
available, read:
http://www.mediawiki.org/wiki/Help:Magic_words
--
Zak Greant (Wikimedia Foundation Contractor)
Plans, reports + logs at
http://mediawiki.org/wiki/User:Zakgreant
Want to talk about the Mediawiki developer docs?
Catch me on irc://irc.freenode.net#mediawiki on Wednesdays from
16:00-18:00 UTC & Thursdays from 04:00-06:00 UTC