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
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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
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@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Hi Hans, sorry.... confused for a moment. It is not reading the !{{ns:0}} condtion.
PM Poon
On Mon, Jan 26, 2009 at 3:16 PM, Ekompute .info ekompute@gmail.com wrote:
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@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
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@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Hi thanks Hans... Actually I did try the one line statement but it just took on the second value. So I decided to split it. I tried again and it didn't work. Never mind, let me tinker with it. It should work, maybe I make a mistake somewhere.
Thank you for your kind assistance.
PM Poon
On Mon, Jan 26, 2009 at 4:31 PM, Hans hans@antheii.nl wrote:
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@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
That works for me:
{{#ifeq: {{NAMESPACE}} | | main namespace text | other name space text }}
Cheers, Gu
Quoting "Ekompute .info" ekompute@gmail.com:
Hi thanks Hans... Actually I did try the one line statement but it just took on the second value. So I decided to split it. I tried again and it didn't work. Never mind, let me tinker with it. It should work, maybe I make a mistake somewhere.
Thank you for your kind assistance.
PM Poon
On Mon, Jan 26, 2009 at 4:31 PM, Hans hans@antheii.nl wrote:
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@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org