On Thu, Sep 23, 2010 at 06:35, Daniel Barrett <[email protected]> wrote:
>>{{#if: {{ns:0}} | My text for sitenotice }}
>
> Nope: {{ns:0} always evaluates to the empty string. You'd really want
> {{#if:{{NAMESPACE}}|My text for sitenotice}}. But this doesn't work either:
> {{NAMESPACE}} is always evaluating to "MediaWiki"
Are you sure that {{NAMESPACE}} behaves this way? Both on my local
install and on mediawiki.org, {{NAMESPACE}} is empty on pages that are
in the default namespace.
This is demonstrated at:
http://www.mediawiki.org/w/index.php?title=Sandbox&oldid=352248
--
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#wikimedia-office Wed. from
16:00-18:00 UTC & Thu. from 04:00-06:00 UTC
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l