Topic on Project:Support desk

[RESOLVED] AND OR statement for parserfunctions?

3
141.165.165.123 (talkcontribs)

Hello. I'm managing a wiki and I'm trying to fix a template in which a column of the table won't appear unless -x- is filled out. It works fine... but it is more complicated than that.

It goes like this basically: -if --money-- is filled out, then show header: header --money-- --stuff-- --stuff-- --etc--

So, if the user fills out the --money-- option on a form for example, then it will work fine. The header will appear as planned and all is well. BUT, if the user doesn't fill out the --money-- option on the form and instead skips and fills out --stuff--, then the column won't appear even though I need it to.

Is it possible to have a statement that says if --money-- OR --stuff-- is filled out, then show header?


MediaWiki 1.22.0 PHP 5.3.13 (cgi-fcgi) MySQL 5.5.32-log

Ciencia Al Poder (talkcontribs)

{{#if: {{{money|}}}{{{stuff|}}} | show header | show nothing }}

141.165.165.123 (talkcontribs)

Funnily enough I tried this already but it didn't work, now it does. I suppose I must have made a small error somewhere. Ha.

Thanks!

Reply to "[RESOLVED] AND OR statement for parserfunctions?"