Template:IfAND: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{#If:{{{1}}}|{{{1|undefined}}}|empty}}|empty={{#If:{{{false|}}}|{{{false}}}}}|undefined={{#If:{{{true}}}|{{#If:{{{true|}}}|{{{true}}}|1}}}}| {{#switch:{{#If:{{{2}}}|{{{2|undefined}}}|empty}}|empty={{#If:{{{false|}}}|{{{false}}}}}|undefined={{#If:{{{true}}}|{{#If:{{{true|}}}|{{{true}}}|1}}}}|{{#switch:{{#If:{{{3}}}|{{{3|undefined}}}|empty}}|empty={{#If:{{{false|}}}|{{{false}}}}}|undefined={{#If:{{{true}}}|{{#If:{{{true|}}}|{{{true}}}|1}}}}|{{#switch:{{#If:{{{4}}}|{{{4|undefined}}}|empty}}|empty={{#If:{{{false|}}}|{{{false}}}}}|undefined={{#If:{{{true}}}|{{#If:{{{true|}}}|{{{true}}}|1}}}}|{{#switch:{{#If:{{{5}}}|{{{5|undefined}}}|empty}}|empty={{#If:{{{false|}}}|{{{false}}}}}|undefined={{#If:{{{true}}}|{{#If:{{{true|}}}|{{{true}}}|1}}}}|{{#switch:{{#If:{{{6}}}|{{{6|undefined}}}|empty}}|empty={{#If:{{{false|}}}|{{{false}}}}}|undefined={{#If:{{{true}}}|{{#If:{{{true|}}}|{{{true}}}|1}}}}|{{#switch:{{#If:{{{7}}}|{{{7|undefined}}}|empty}}|empty={{#If:{{{false|}}}|{{{false}}}}}|undefined={{#If:{{{true}}}|{{#If:{{{true|}}}|{{{true}}}|1}}}}|{{#switch:{{#If:{{{8}}}|{{{8|undefined}}}|empty}}|empty={{#If:{{{false|}}}|{{{false}}}}}|undefined={{#If:{{{true}}}|{{#If:{{{true|}}}|{{{true}}}|1}}}}|{{#switch:{{#If:{{{9}}}|{{{9|undefined}}}|empty}}|empty={{#If:{{{false|}}}|{{{false}}}}}|undefined={{#If:{{{true}}}|{{#If:{{{true|}}}|{{{true}}}|1}}}}|{{#switch:{{#If:{{{10}}}|{{{10|undefined}}}|empty}}|empty={{#If:{{{false|}}}|{{{false}}}}}|undefined={{#If:{{{true}}}|{{#If:{{{true|}}}|{{{true}}}|1}}}}|1}}}}}}}}}}}}}}}}}}}}</includeonly><noinclude>
<noinclude>
{{essential}}
==Use==
==Usage Documentation==
This template will accept 10 variable names and return 1 if they all exist and nothing if any one of them is nonexistant or whitespace.
This template will accept 10 variable names and return 1 if they all exist and nothing if any one of them is nonexistant or whitespace.

If <nowiki>|true=</nowiki> or <nowiki>|false=</nowiki> is set, it will return custom strings for matches or no matches.
[[Category:Templates|{{PAGENAME}}]]
[[Category:Templates|{{PAGENAME}}]]
[[Category:Templates for Templates|{{PAGENAME}}]]
[[Category:Templates for Templates|{{PAGENAME}}]]
<pre>
<pre>
{{IfAND|variable1|...|variable10}}
{{IfAND|variable1|...|variable10}}
Additional options:
|true=
|fals=
</pre>
</pre>

==Also See:==
* [[Template:IfMatch]]
* [[Template:IfTHEN]]
* [[Template:IfXOR]]
</noinclude>
</noinclude>
<includeonly>
{{#switch: {{#if:{{{1}}}|{{{1|2}}}|1}}
| 1 =
| 2 = 1
| {{#switch: {{#if:{{{2}}}|{{{2|2}}}|1}}
| 1 =
| 2 = 1
| {{#switch: {{#if:{{{3}}}|{{{3|2}}}|1}}
| 1 =
| 2 = 1
| {{#switch: {{#if:{{{4}}}|{{{4|2}}}|1}}
| 1 =
| 2 = 1
| {{#switch: {{#if:{{{5}}}|{{{5|2}}}|1}}
| 1 =
| 2 = 1
| {{#switch: {{#if:{{{6}}}|{{{6|2}}}|1}}
| 1 =
| 2 = 1
| {{#switch: {{#if:{{{7}}}|{{{7|2}}}|1}}
| 1 =
| 2 = 1
| {{#switch: {{#if:{{{8}}}|{{{8|2}}}|1}}
| 1 =
| 2 = 1
| {{#switch: {{#if:{{{9}}}|{{{9|2}}}|1}}
| 1 =
| 2 = 1
| {{#switch: {{#if:{{{10}}}|{{{10|2}}}|1}}
| 1 =
| 2 = 1
| 1
}}
}}
}}
}}
}}
}}
}}
}}
}}
}}
</includeonly>

Latest revision as of 19:27, 22 January 2009

Essential Template
  • This template is so essential that it has been protected to prevent tampering.
  • If you have suggestions to extend its function or have observed bugs, please post to the discussion page.


Usage Documentation

This template will accept 10 variable names and return 1 if they all exist and nothing if any one of them is nonexistant or whitespace.

If |true= or |false= is set, it will return custom strings for matches or no matches.

{{IfAND|variable1|...|variable10}}
Additional options:
|true=
|fals=

Also See: