Hi,
I'm not an expert on this (and not able to test at this moment), but I see
one potential issue; there is no pipe symbol between the "value if true"
and "value if false" in your statement.
I think it should look like;
{{#if: {{ns:0}}
| xxxxxxxxxxxx
| xxxxxxxxxxxx
}}
{{#if: !{{ns:0}}
| xxxxxxxxxxxx
| xxxxxxxxxxxx
}}
As a side note, why don't you put this in only one statement, like
{{#if: {{ns:0}}
| what if ns:0
| what if all other namespaces
}}
Regards,
Hans
Hi Hans, I did... problem is it is not reading the
{{ns:0}} condition. If
the condition syntax wrong?
PM Poon
On Mon, Jan 26, 2009 at 3:10 PM, Hans <hans(a)antheii.nl> wrote:
Hi,
Have you installed the ParserFunctions
(
http://www.mediawiki.org/wiki/Extension:ParserFunctions) ?
Regards,
Hans
Hi, I am trying to have 2 sitenotices, one for
the main namespace and
one
for ALL the rest. I tried:
{{#if: {{ns:0}} |
xxxxxxxxxxxx
xxxxxxxxxxxx
}}
{{#if: !{{ns:0}} |
xxxxxxxxxxxx
xxxxxxxxxxxx
}}
but it is not working. Your assistance is deeply appreciated.
PM Poon
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l