Difference between revisions of "Template:If all/doc"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
m (→‎See also: template name)
imported>Obsuser
Line 5: Line 5:
  
 
=== Usage ===
 
=== Usage ===
 +
{{col-begin}}
 +
{{col-4}}
 
<pre style="margin:0; width:19em">
 
<pre style="margin:0; width:19em">
 
{{if all|1|2|3|4|5|6|7|8|9|10
 
{{if all|1|2|3|4|5|6|7|8|9|10
 
  | n = 10
 
  | n = 10
  | then = All there.
+
  | then = All there!
  | else = Something is missing.
+
  | else = Something is missing!?
 
}}
 
}}
 
</pre>
 
</pre>
Line 15: Line 17:
 
{{if all|1|2|3|4|5|6|7|8|9|10
 
{{if all|1|2|3|4|5|6|7|8|9|10
 
  | n = 10
 
  | n = 10
  | then = All there.
+
  | then = All there!
  | else = Something is missing.
+
  | else = Something is missing!?
 
}}
 
}}
  
  
 +
<pre style="margin:0; width:19em">
 +
{{if all|1|2|3
 +
| n = 3
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
</pre>
 +
 +
{{if all|1|2|3
 +
| n = 3
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
 +
 +
 +
;Other examples
 +
<pre style="margin:0; width:19em">
 +
{{if all|1|2|3
 +
| n = 2
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
</pre>
 +
 +
{{if all|1|2|3
 +
| n = 2
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
 +
 +
<pre style="margin:0; width:19em">
 +
{{if all| |2|3
 +
| n = 2
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
</pre>
 +
 +
{{if all| |2|3
 +
| n = 2
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
 +
 +
<pre style="margin:0; width:19em">
 +
{{if all|1|2|
 +
| n = 2
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
</pre>
 +
 +
{{if all|1|2|
 +
| n = 2
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
 +
 +
<pre style="margin:0; width:19em">
 +
{{if all|
 +
| n = 1
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
</pre>
 +
 +
{{if all|
 +
| n = 1
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
 +
 +
<pre style="margin:0; width:19em">
 +
{{if all
 +
| n = 1
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
</pre>
 +
 +
{{if all
 +
| n = 1
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
 +
 +
{{col-4}}
 
<pre style="margin:0; width:19em">
 
<pre style="margin:0; width:19em">
 
{{if all|1|2|3|4|5|6|7|8| |10
 
{{if all|1|2|3|4|5|6|7|8| |10
 
  | n = 10
 
  | n = 10
  | then = All there.
+
  | then = All there!
  | else = Something is missing.
+
  | else = Something is missing!?
 
}}
 
}}
 
</pre>
 
</pre>
Line 30: Line 125:
 
{{if all|1|2|3|4|5|6|7|8| |10
 
{{if all|1|2|3|4|5|6|7|8| |10
 
  | n = 10
 
  | n = 10
  | then = All there.
+
  | then = All there!
  | else = Something is missing.
+
  | else = Something is missing!?
 +
}}
 +
 
 +
 
 +
<pre style="margin:0; width:19em">
 +
{{if all| |2|3
 +
| n = 3
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
</pre>
 +
 +
{{if all| |2|3
 +
| n = 3
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
 
 +
 
 +
 
 +
 
 +
<pre style="margin:0; width:19em">
 +
{{if all|1|2|3
 +
| n = 4
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
</pre>
 +
 +
{{if all|1|2|3
 +
| n = 4
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
 
 +
 
 +
<pre style="margin:0; width:19em">
 +
{{if all| |2|3
 +
| n = 4
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
</pre>
 +
 +
{{if all| |2|3
 +
| n = 4
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
 
 +
 
 +
<pre style="margin:0; width:19em">
 +
{{if all|1|2|
 +
| n = 4
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
</pre>
 +
 +
{{if all|1|2|
 +
| n = 4
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
 
 +
 
 +
<pre style="margin:0; width:19em">
 +
{{if all|
 +
| n = 0
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
</pre>
 +
 +
{{if all|
 +
| n = 0
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
 
 +
 
 +
<pre style="margin:0; width:19em">
 +
{{if all
 +
| n = 0
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
</pre>
 +
 +
{{if all
 +
| n = 0
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
 
 +
 
 +
{{col-4}}
 +
<pre style="margin:0; width:19em">
 +
{{if all|1|2|3|4|5|6|7| | |10
 +
| n = 10
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
</pre>
 +
 +
{{if all|1|2|3|4|5|6|7| | |10
 +
| n = 10
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
 
 +
 
 +
<pre style="margin:0; width:19em">
 +
{{if all| | |3
 +
| n = 3
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
</pre>
 +
 +
{{if all| | |3
 +
| n = 3
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
 
 +
 
 +
{{col-4}}
 +
<pre style="margin:0; width:19em">
 +
{{if all| | | | | | | | | |10
 +
| n = 10
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
</pre>
 +
 +
{{if all| | | | | | | | | |10
 +
| n = 10
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
 
 +
 
 +
<pre style="margin:0; width:19em">
 +
{{if all| | |
 +
| n = 3
 +
| then = All there!
 +
| else = Something is missing!?
 +
}}
 +
</pre>
 +
 +
{{if all| | |
 +
| n = 3
 +
| then = All there!
 +
| else = Something is missing!?
 
}}
 
}}
 +
{{col-end}}
  
 
=== See also ===
 
=== See also ===

Revision as of 00:39, 25 February 2016

This helper template performs a logical and on n parameters where n is between 1 and 10. It is intended to be used in other templates.

Usage

See also