Don't forget, you can log in with your Play.net account

Template:IfAND: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
m (Template:IfAND moved to Template:IfAnd: Having problems calling it)
mNo edit summary
 
(12 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|undefined}}}|empty}}
| empty =
| undefined = 1
| <!--defined--> {{#switch: {{#If:{{{2}}}|{{{2|undefined}}}|empty}}
| empty =
| undefined = 1
| <!--defined--> {{#switch: {{#If:{{{3}}}|{{{3|undefined}}}|empty}}
| empty =
| undefined = 1
| <!--defined--> {{#switch: {{#If:{{{4}}}|{{{4|undefined}}}|empty}}
| empty =
| undefined = 1
| <!--defined--> {{#switch: {{#If:{{{5}}}|{{{5|undefined}}}|empty}}
| empty =
| undefined = 1
| <!--defined--> {{#switch: {{#If:{{{6}}}|{{{6|undefined}}}|empty}}
| empty =
| undefined = 1
| <!--defined--> {{#switch: {{#If:{{{7}}}|{{{7|undefined}}}|empty}}
| empty =
| undefined = 1
| <!--defined--> {{#switch: {{#If:{{{8}}}|{{{8|undefined}}}|empty}}
| empty =
| undefined = 1
| <!--defined--> {{#switch: {{#If:{{{9}}}|{{{9|undefined}}}|empty}}
| empty =
| undefined = 1
| <!--defined--> {{#switch: {{#If:{{{10}}}|{{{10|undefined}}}|empty}}
| empty =
| undefined = 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: