35:
66:
318:
260:{{DEFAULTSORT:<sort key>}} is a magic word used to modify the sequence of pages shown on category pages. Please use {{DEFAULTSORT:Sortkey}} rather than {{DEFAULTSORT|Sortkey}}, with a colon (":"), not a pipe symbol ("|"). This uses the magic word directly instead of using the template to call the magic word.
161:
In the case of multiple default sort key tags, the last DEFAULTSORT on the final rendering of a page applies for all categories, regardless of the position of the category tags. This also means that a DEFAULTSORT tag included from a template is not effective if another DEFAULTSORT tag occurs later on
121:: The specific page will still be listed with its original title, regardless of the modified sort order. The sort key can be overridden for specific categories, if their ] tags contain a differing individual sort key.
191:==Final section== Final line of content in "final section". {{Templates}} {{Last metadata template | LAST PARAMETER OF LAST METADATA TEMPLATE = Parameter content }} {{DEFAULTSORT:Surname, Forename}} ]
200:
184:
should be placed at the left margin of a new line, immediately above the line which begins the list of categories. For example, the last lines of a typical article titled
401:
349:
50:
411:
416:
382:
345:
124:
It is not necessary to use DEFAULTSORT at all if the article or page should be alphabetized according to its title (which is true for most articles).
46:
331:
117:
pages. The given sort key in a specific page is used to determine that page's position in all category pages where the page is listed.
54:
243:
128:
406:
239:
231:
378:
339:
42:
235:
216:
335:
323:
This template may have no transclusions, because the magic word should always be used instead.
162:
the page, even if the later DEFAULTSORT tag is also "hidden" (included by another template).
181:
155:
110:
395:
132:
114:
17:
94:
127:
For background information on how the pages in a category are ordered, see
29:
312:
97:
directly instead of using the template to call the magic word.
60:
201:
Category:Pages which use a template in place of a magic word
149:. It is possible to set a different sort key by using the
143:
By default, pages listed on a category page are sorted by
370:
362:
358:
106:{{DEFAULTSORT:<sort key>}}
355:Editors can experiment in this template's sandbox
129:Knowledge (XXG):Categorization § Sort keys
113:used to modify the sequence of pages shown on
8:
257:
250:in articles based on its TemplateData.
402:Knowledge (XXG) transclusionless templates
263:
133:Help:Category § Default sort key
7:
412:Knowledge (XXG) magic word templates
244:See a monthly parameter usage report
180:to modify the default sort key, the
152:{{DEFAULTSORT}}
25:
417:Templates with no visible output
316:
146:{{PAGENAME}}
64:
33:
65:
1:
253:TemplateData for DEFAULTSORT
433:
329:
234:for this template used by
383:Subpages of this template
271:
139:Understanding DEFAULTSORT
340:Template:DEFAULTSORT/doc
377:Add categories to the
38:Template documentation
248:Template:DEFAULTSORT
18:Template:DefaultSort
311:
268:
266:Template parameters
264:
262:
407:Sorting templates
327:
326:
310:
309:
284:
258:
242:and other tools.
195:Tracking category
188:could look like:
102:
101:
16:(Redirected from
424:
374:
366:
353:
320:
319:
313:
293:
285:
269:
221:
215:
186:Forename Surname
179:
173:
154:
153:
148:
147:
107:
98:
90:
88:
80:
78:
68:
67:
61:
58:
39:
37:
36:
21:
432:
431:
427:
426:
425:
423:
422:
421:
392:
391:
389:
387:
386:
376:
368:
356:
354:
343:
328:
317:
291:
256:
228:
219:
213:
210:
197:
192:
177:
171:
168:
151:
150:
145:
144:
141:
105:
92:
84:
82:
74:
72:
59:
40:
34:
32:
27:
23:
22:
15:
12:
11:
5:
430:
428:
420:
419:
414:
409:
404:
394:
393:
367:and testcases
325:
324:
321:
308:
307:
304:
301:
300:
297:no description
294:
289:
283:
282:
279:
276:
273:
236:TemplateWizard
229:
227:
224:
223:
222:
209:
206:
205:
204:
196:
193:
190:
167:
164:
140:
137:
100:
99:
93:This uses the
81:, rather than
69:
31:
30:
24:
14:
13:
10:
9:
6:
4:
3:
2:
429:
418:
415:
413:
410:
408:
405:
403:
400:
399:
397:
390:
384:
380:
372:
364:
360:
351:
347:
341:
337:
333:
332:documentation
322:
315:
314:
305:
302:
299:
298:
295:
290:
287:
286:
280:
277:
274:
270:
267:
261:
255:
254:
249:
245:
241:
237:
233:
225:
218:
212:
211:
207:
202:
199:
198:
194:
189:
187:
183:
176:
165:
163:
159:
157:
138:
136:
134:
130:
125:
122:
120:
116:
112:
108:
96:
87:
83:{{DEFAULTSORT
77:
73:{{DEFAULTSORT
70:
63:
62:
56:
52:
48:
44:
28:
19:
388:
296:
265:
259:
252:
251:
247:
240:VisualEditor
232:TemplateData
230:This is the
226:TemplateData
220:}}
217:DISPLAYTITLE
214:{{
185:
178:}}
174:
172:{{
169:
160:
142:
126:
123:
118:
104:
103:
85:
75:
26:
336:transcluded
275:Description
175:DEFAULTSORT
170:When using
71:Please use
53:] [
49:] [
45:] [
396:Categories
330:The above
182:magic word
156:magic word
111:magic word
95:magic word
381:subpage.
272:Parameter
203: (3)
166:Placement
89:Sortkey}}
79:Sortkey}}
306:optional
208:See also
115:category
361:|
350:history
348:|
303:Unknown
51:history
375:pages.
371:create
363:mirror
359:create
281:Status
86:|
338:from
109:is a
57:]
55:purge
41:[
379:/doc
346:edit
278:Type
246:for
131:and
119:Note
47:edit
43:view
334:is
398::
342:.
238:,
158:.
135:.
91:.
385:.
373:)
369:(
365:)
357:(
352:)
344:(
292:1
288:1
76::
20:)
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.