Forum:Template Condition A and B or C

How can I write the following conditions in a template:

IF Parameter A is defined AND (Parameter B >= 5 OR Parameter C contains the string gota"boy!)
 * Returns true
 * Returns false

I knew #if: and #ifeq: etc. but all seem to support testing 1 condition only. What syntax should I use to join all those conditions together? --MyBrute Resource Center@Ronga 11:09, 16 May 2009 (UTC)


 * mw:Help:Extension:ParserFunctions. 13:25, 16 May 2009 (UTC)


 * I read this help page long time ago. But it appears it doesn't say anything about the AND or OR operators that I want. What are the equivalents of AND and OR in Mediawiki templates?? --MyBrute Resource Center@Ronga 15:35, 16 May 2009 (UTC)
 * IF I understand you correctly,  might work. I'm not sure if it can look at whether a string contains a specific part, if that is neccesary though.  18:35, 16 May 2009 (UTC)
 * This is an alternative way complex but depends on how big you have the answer of the true or the false


 * Thanks a lot. It seems it's kinda complicated. --MyBrute Resource Center@Ronga 10:44, 19 May 2009 (UTC)

Advanced Replace conditions
{ {#replace:string|search term|replacement term} } This function is case sensitive.

For example I would like to strip off the word "Category:". However some people may type the small cap version, i.e. "category:" too, but this function is case sensitive and it seems I can't switch to case insensitive mode. An "OR" condition comes to mind. { {#replace:xxxx} } OR { {#replace:xxxx} }.

What's the simplest way to achieve this?

So far the only syntax that I could think of:

But it's kinda ugly. It would become really complicated when the terms has more variations, e.g. Good page, good page, Good Pages and so on.

Is this the only way to do it?? Any ideas??--MyBrute Resource Center@Ronga 10:44, 19 May 2009 (UTC)
 * here you may find the answer--


 * Extension:MultiReplace
 * Extension:RegexParserFunctions


 * Yep thanks for the reminder. I knew it but I forget it. Using can somehow workaround the case sensitivity problem (but if you want to keep the cases intact. It still causes problems). Let me note it down anyway. However problems with singular vs plural, and words with spelling variations can't be solved easily without making very complicated conditions. MediaWiki has nesting limits so it would cause a problem. I may miss it but I can't seem to find any magic words which can solve those cases. The extensions seems to be the way to go since MediaWiki doesn't have the basic standards and functions that most programming language has.--MyBrute Resource Center@Ronga 18:55, 22 May 2009 (UTC)


 * OR go and create rules/styles guides so that users follow them Or learn to use the pywikibot and program a scrip to scan constantly the wiki and sort this issues --


 * I'm going to do both. Users over there most likely don't bother learning anything, so this task is left to me to create templates which are as user-friendly as possible. I'm trying to tell pywikibot to check all pages sharing the same namespace. I typed the following command:

replace.py -start:"Template:!" "WordA" "WordB"

But it doesn't work. What should I type so I can tell the bot to check all pages within the same namespace (.e.g all template pages, all pages in the main namespace)?--MyBrute Resource Center@Ronga 04:18, 25 May 2009 (UTC)