24:
55:
270:
221:
39:
203:
254:
217:
35:
120:
43:
77:
73:
69:
80:. The tested changes can be added to this page in a single edit. Consider discussing changes on the
167:
except that the parser function strips whitespace between parameters whereas the templates don't.
98:
simply return the first respectively second unnamed input parameter respectively. For example:
207:
81:
250:
211:
68:
To avoid major disruption and server load, any changes should be tested in the template's
31:
123:}} parser function, to switch between outputs based on whether the input is "1" or "2":
264:
179:
191:
91:
119:
These templates can be used inside other templates as an alternative to the {{
62:
18:
63:
approximately 330,000 pages, or roughly 1% of all pages
49:
242:
234:
230:
112:{{P2|foo|bar|baz}}
104:{{P1|foo|bar|baz}}
227:Editors can experiment in this template's sandbox
8:
7:
197:, a functionally equivalent template
185:, returns the last unnamed parameter
153:{{#switch:{{{1}}}|1=
14:
53:
22:
147:, this syntax is equivalent to
1:
271:Parameter selection templates
287:
201:
129:{{P{{{1}}}|
255:Subpages of this template
84:before implementing them.
76:subpages, or in your own
61:This template is used on
249:Add categories to the
27:Template documentation
88:
87:
278:
246:
238:
225:
196:
190:
184:
178:
163:
162:
146:
139:
138:
114:
113:
106:
105:
57:
56:
50:
47:
28:
26:
25:
286:
285:
281:
280:
279:
277:
276:
275:
261:
260:
259:
258:
248:
240:
228:
226:
215:
212:Template:P2/doc
200:
194:
188:
182:
176:
173:
152:
151:
144:
128:
127:
111:
110:
103:
102:
67:
54:
48:
29:
23:
21:
12:
11:
5:
284:
282:
274:
273:
263:
262:
239:and testcases
199:
198:
186:
172:
169:
165:
164:
141:
140:
117:
116:
108:
90:The templates
86:
85:
58:
20:
19:
13:
10:
9:
6:
4:
3:
2:
283:
272:
269:
268:
266:
256:
252:
244:
236:
232:
223:
219:
213:
209:
205:
204:documentation
193:
187:
181:
175:
174:
170:
168:
160:
156:
150:
149:
148:
136:
132:
126:
125:
124:
122:
109:
101:
100:
99:
97:
93:
83:
79:
75:
71:
65:
64:
59:
52:
51:
45:
41:
37:
33:
17:
195:}}
189:{{
183:}}
177:{{
166:
161:}}
158:
154:
142:
137:}}
134:
130:
118:
95:
89:
78:user subpage
60:
15:
208:transcluded
159:output if 2
155:output if 1
145:{{#switch}}
135:output if 2
131:output if 1
115:returns bar
107:returns foo
42:] [
38:] [
34:] [
202:The above
74:/testcases
253:subpage.
82:talk page
265:Category
171:See also
157:|2=
70:/sandbox
16:{{{2}}}
233:|
222:history
220:|
121:#switch
40:history
247:pages.
243:create
235:mirror
231:create
143:Using
133:|
210:from
46:]
44:purge
30:[
251:/doc
218:edit
94:and
36:edit
32:view
206:is
180:P-1
72:or
267::
214:.
192:1x
96:P2
92:P1
257:.
245:)
241:(
237:)
229:(
224:)
216:(
66:.
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.