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--