21:
93:
is designed to be used in other templates. It can help editors create template code that is more self documenting. A major advantage of using this template over using the construct
265:
36:
298:
261:
32:
247:
40:
314:
90:
294:
255:
28:
111:
251:
236:
225:
214:
99:
is that if the first parameter is not empty then the second parameter is not evaluated.
308:
15:
131:
This template can also be used to replace the construct
286:
278:
274:
271:Editors can experiment in this template's sandbox
8:
160:
124:are true, the template will return the
7:
48:
14:
172:{{if either |a |b |true |false}}
19:
188:{{if either | |b |true |false}}
180:{{if either |a | |true |false}}
196:{{if either | | |true |false}}
1:
153:, then true; else false").
96:{{#if:{{{1|}}}{{{2|}}} |…}}
331:
245:
299:Subpages of this template
315:If-then-else templates
293:Add categories to the
256:Template:If either/doc
24:Template documentation
149:, then true; else if
77:) is true, (return
69: "If either (
203:
202:
102:The "or" in the "
322:
290:
282:
269:
241:
235:
230:
224:
219:
213:
161:
144:
143:
142:|true |false}}}}
98:
97:
81:,) (else return
66:
44:
25:
23:
22:
330:
329:
325:
324:
323:
321:
320:
319:
305:
304:
303:
302:
292:
284:
272:
270:
259:
244:
239:
233:
228:
222:
217:
211:
208:
159:
133:
132:
95:
94:
91:helper template
45:
26:
20:
18:
12:
11:
5:
328:
326:
318:
317:
307:
306:
283:and testcases
243:
242:
231:
220:
207:
204:
201:
200:
197:
193:
192:
189:
185:
184:
181:
177:
176:
173:
169:
168:
165:
158:
155:
87:
86:
67:
49:{{if either (|
17:
16:
13:
10:
9:
6:
4:
3:
2:
327:
316:
313:
312:
310:
300:
296:
288:
280:
276:
267:
263:
257:
253:
249:
248:documentation
238:
232:
227:
221:
216:
210:
209:
205:
198:
195:
194:
190:
187:
186:
182:
179:
178:
174:
171:
170:
166:
163:
162:
156:
154:
152:
148:
141:
138:|true |{{#if:
137:
129:
127:
123:
120:
117:
113:
109:
105:
100:
92:
84:
83:second result
80:
76:
72:
68:
64:
63:second result
60:
56:
52:
47:
46:
42:
38:
34:
30:
240:}}
234:{{
229:}}
223:{{
218:}}
212:{{
150:
146:
139:
135:
130:
126:first result
125:
121:
118:
115:
107:
103:
101:
88:
82:
79:first result
78:
74:
70:
62:
59:first result
58:
54:
50:
252:transcluded
110:" above is
39:] [
35:] [
31:] [
246:The above
145:(i.e. "if
114:: if both
297:subpage.
112:inclusive
309:Category
237:if empty
206:See also
157:Examples
277:|
266:history
264:|
226:if both
167:Result
37:history
291:pages.
287:create
279:mirror
275:create
215:if all
199:false
134:{{#if:
254:from
191:true
183:true
175:true
89:This
73:or) (
43:]
41:purge
27:[
295:/doc
262:edit
164:Code
61:) (|
57:) (|
53:) (|
33:edit
29:view
250:is
119:and
106:or
85:)."
65:)}}
311::
258:.
128:.
301:.
289:)
285:(
281:)
273:(
268:)
260:(
151:b
147:a
140:b
136:a
122:b
116:a
108:b
104:a
75:b
71:a
55:b
51:a
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.