Template:IfAND: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
(22 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 |
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 for Templates|{{PAGENAME}}]] |
|||
<pre> |
|||
{{IfAND|variable1|...|variable10}} |
|||
Additional options: |
|||
|true= |
|||
|fals= |
|||
</pre> |
|||
==Also See:== |
|||
* [[Template:IfMatch]] |
|||
* [[Template:IfTHEN]] |
|||
* [[Template:IfXOR]] |
|||
</noinclude> |
</noinclude> |
||
<includeonly> |
|||
{{#if: |
|||
{{#if:{{{1|}}}| |
|||
{{#if:{{{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=