21:
52:
84:
127:
1440:
457:
386:
are treated by some templates as disambiguation pages, they are actually considered a special type of list and are not treated as disambiguation pages by this module
442:
430:
36:
1435:
58:
468:
426:
389:
As this module relies on detecting templates with names like "disambiguation" in the article text, it is subject to false positives by templates such as
32:
69:
very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is
461:
40:
412:
62:
452:
403:
105:
383:
393:
70:
437:
101:
198:
113:
420:
28:
273:
66:
211:
140:
276:
for the page to check, get the content using the title object's getContent() method, and pass that into
112:. The tested changes can be added to this page in a single edit. Please discuss changes on the
416:
136:
399:. These templates should be added to the falsePositives list in the code to exclude them.
168:
if the page is a disambiguation page, or nothing if the page is not a disambiguation page
100:
To avoid major disruption and server load, any changes should be tested in the module's
109:
1429:
98:
Changes to it can cause immediate changes to the
Knowledge (XXG) user interface.
93:
594:-- line instead. Enwiki uses ASCII string manipulation only here to improve
587:-- disambiguation templates that use Unicode strings, use the commented-out
15:
675:-- return mw.ustring.upper(mw.ustring.sub(1, 1)) .. mw.ustring.sub(2, -1)
326:
If you don't otherwise need the title, you can pass in the page name to
222:{{#invoke:Disambiguation|isDisambiguationPage|{{SUBJECTPAGENAME}}}}
178:
580:-- This function only works on ASCII strings. If your wiki has
188:
152:
This module detects if a given page is a disambiguation page.
121:
78:
46:
160:{{#invoke:Disambiguation|isDisambiguationPage|Page title}}
446:
402:
The list of disambiguation templates is maintained at
879:-- check for disambiguation templates in the content
322:
is a string, the wikitext content of page to check)
132:
This module depends on the following other modules:
1182:-- Look for disamiguation template in page content
1109:-- Look "(disambiguation)" in the title
197:{{#invoke:Disambiguation|isDisambiguationPage|
187:{{#invoke:Disambiguation|isDisambiguationPage|
177:{{#invoke:Disambiguation|isDisambiguationPage|
65:in use by a very large number of pages, or is
8:
90:This Lua module is used in system messages
817:-- redirects are not disambiguation pages
544:'Module:Disambiguation/templates'
1441:Disambiguation and redirection templates
436:Editors can experiment in this module's
372:is a string, the name of page to check)
7:
1436:Modules subject to page protection
207:You can also use magic words like
14:
125:
94:approximately 224,000 pages
82:
50:
19:
770:-- false if there is no content
404:Module:Disambiguation/templates
261:Then you can use the functions
253:'Module:Disambiguation'
1:
1312:-- Entry points for templates
233:Import this module, e.g with
1131:"(disambiguation)"
272:If you have already have a
199:Black swan (disambiguation)
1457:
410:
59:subject to page protection
1414:
1410:
1403:
1366:
1344:
1316:
1309:
1305:
1298:
1273:
1248:
1223:
1186:
1179:
1172:
1159:
1113:
1106:
1078:
1074:
1067:
1057:
1053:
1046:
1036:
990:
983:
979:
972:
965:
955:
933:
899:
883:
876:
872:
865:
855:
821:
814:
810:
803:
793:
774:
767:
739:
735:
728:
712:
690:
686:
679:
672:
605:
513:'Module:Redirect'
421:Module:Disambiguation/doc
116:before implementing them.
108:subpages, or in your own
1008:"__DISAMBIG__"
939:isDisambiguationTemplate
699:isDisambiguationTemplate
598:
591:
584:
577:
555:
551:
520:
495:
479:
476:
362:-- returns true or false
332:
312:-- returns true or false
282:
235:
229:Usage within Lua modules
986:-- check for magic word
923:"{{%s*(-)%s*"
718:disambiguationTemplates
526:disambiguationTemplates
469:Subpages of this module
1378:_isDisambiguationPage
1087:_isDisambiguationPage
394:italic disambiguation
350:_isDisambiguationPage
328:_isDisambiguationPage
267:_isDisambiguationPage
63:highly visible module
1325:isDisambiguationPage
24:Module documentation
377:Internal operations
384:set index articles
833:getTargetFromText
150:
149:
120:
119:
77:
76:
1448:
1422:
1421:
1418:
1412:
1408:
1407:
1401:
1400:
1397:
1394:
1391:
1388:
1385:
1382:
1379:
1376:
1373:
1370:
1364:
1363:
1360:
1357:
1354:
1351:
1348:
1342:
1341:
1338:
1335:
1332:
1329:
1326:
1323:
1320:
1314:
1313:
1307:
1303:
1302:
1296:
1295:
1292:
1289:
1286:
1285:isDisambiguation
1283:
1280:
1277:
1271:
1270:
1267:
1264:
1261:
1258:
1255:
1252:
1246:
1245:
1242:
1239:
1236:
1233:
1230:
1227:
1221:
1220:
1217:
1214:
1211:
1208:
1205:
1202:
1199:
1196:
1193:
1190:
1184:
1183:
1177:
1176:
1170:
1169:
1166:
1163:
1157:
1156:
1153:
1150:
1147:
1144:
1141:
1138:
1135:
1132:
1129:
1126:
1123:
1120:
1117:
1111:
1110:
1104:
1103:
1100:
1097:
1094:
1091:
1088:
1085:
1082:
1076:
1072:
1071:
1065:
1064:
1061:
1055:
1051:
1050:
1044:
1043:
1040:
1034:
1033:
1030:
1027:
1024:
1021:
1018:
1015:
1012:
1009:
1006:
1003:
1000:
997:
994:
988:
987:
981:
977:
976:
970:
969:
963:
962:
959:
953:
952:
949:
946:
943:
940:
937:
931:
930:
927:
924:
921:
918:
915:
912:
909:
906:
903:
897:
896:
893:
890:
887:
881:
880:
874:
870:
869:
863:
862:
859:
853:
852:
849:
846:
843:
840:
837:
834:
831:
828:
825:
819:
818:
812:
808:
807:
801:
800:
797:
791:
790:
787:
784:
781:
778:
772:
771:
765:
764:
761:
758:
755:
752:
749:
748:isDisambiguation
746:
743:
737:
733:
732:
726:
725:
722:
719:
716:
710:
709:
706:
703:
700:
697:
694:
688:
684:
683:
677:
676:
670:
669:
666:
663:
660:
657:
654:
651:
648:
645:
642:
639:
636:
633:
630:
627:
624:
621:
618:
615:
612:
609:
603:
602:
596:
595:
589:
588:
582:
581:
575:
574:
571:
568:
565:
562:
559:
553:
549:
548:
545:
542:
539:
536:
533:
530:
527:
524:
518:
517:
514:
511:
508:
505:
502:
499:
493:
492:
489:
486:
483:
465:
450:
434:
398:
392:
371:
363:
360:
357:
354:
351:
348:
345:
342:
339:
336:
329:
321:
313:
310:
307:
304:
301:
300:isDisambiguation
298:
295:
292:
289:
286:
279:
278:isDisambiguation
268:
264:
263:isDisambiguation
257:
254:
251:
248:
245:
242:
239:
223:
216:
210:
202:
192:
182:
167:
129:
128:
122:
86:
85:
79:
54:
53:
47:
44:
25:
23:
22:
1456:
1455:
1451:
1450:
1449:
1447:
1446:
1445:
1426:
1425:
1424:
1423:
1419:
1416:
1413:
1409:
1405:
1402:
1398:
1395:
1393:"yes"
1392:
1389:
1386:
1383:
1380:
1377:
1374:
1371:
1368:
1365:
1361:
1358:
1355:
1352:
1349:
1346:
1343:
1339:
1336:
1333:
1330:
1327:
1324:
1321:
1318:
1315:
1311:
1308:
1304:
1300:
1297:
1293:
1290:
1287:
1284:
1281:
1278:
1275:
1272:
1268:
1265:
1262:
1259:
1256:
1253:
1250:
1247:
1243:
1240:
1237:
1234:
1231:
1228:
1225:
1222:
1218:
1215:
1212:
1209:
1206:
1203:
1200:
1197:
1194:
1191:
1188:
1185:
1181:
1178:
1174:
1171:
1167:
1164:
1161:
1158:
1154:
1151:
1148:
1145:
1142:
1139:
1136:
1133:
1130:
1127:
1124:
1121:
1118:
1115:
1112:
1108:
1105:
1101:
1098:
1095:
1092:
1089:
1086:
1083:
1080:
1077:
1073:
1069:
1066:
1062:
1059:
1056:
1052:
1048:
1045:
1041:
1038:
1035:
1031:
1028:
1025:
1022:
1019:
1016:
1013:
1010:
1007:
1004:
1001:
998:
995:
992:
989:
985:
982:
978:
974:
971:
967:
964:
960:
957:
954:
950:
947:
944:
941:
938:
935:
932:
928:
925:
922:
919:
916:
913:
910:
907:
904:
901:
898:
894:
891:
888:
885:
882:
878:
875:
871:
867:
864:
860:
857:
854:
850:
847:
844:
841:
838:
835:
832:
829:
826:
823:
820:
816:
813:
809:
805:
802:
798:
795:
792:
788:
785:
782:
779:
776:
773:
769:
766:
762:
759:
756:
753:
750:
747:
744:
741:
738:
734:
730:
727:
723:
720:
717:
714:
711:
707:
704:
701:
698:
695:
692:
689:
685:
681:
678:
674:
671:
667:
664:
661:
658:
655:
652:
649:
646:
643:
640:
637:
634:
631:
628:
625:
622:
619:
616:
613:
610:
607:
604:
601:-- performance.
600:
597:
593:
590:
586:
583:
579:
576:
572:
569:
566:
563:
560:
557:
554:
550:
546:
543:
540:
537:
534:
531:
528:
525:
522:
519:
515:
512:
509:
506:
503:
500:
497:
494:
490:
487:
484:
481:
478:
473:
472:
467:
455:
440:
435:
424:
409:
396:
390:
379:
369:
365:
364:
361:
358:
355:
352:
349:
346:
344:mDisambiguation
343:
340:
337:
334:
327:
319:
315:
314:
311:
308:
305:
302:
299:
296:
294:mDisambiguation
293:
290:
287:
284:
277:
266:
262:
259:
258:
255:
252:
249:
246:
243:
241:mDisambiguation
240:
237:
231:
221:
214:
212:SUBJECTPAGENAME
208:
196:
186:
176:
165:
161:
158:
146:
137:Module:Redirect
126:
99:
97:
83:
57:This module is
51:
45:
26:
20:
18:
12:
11:
5:
1454:
1452:
1444:
1443:
1438:
1428:
1427:
477:
408:
407:
400:
387:
378:
375:
374:
373:
333:
324:
323:
283:
236:
230:
227:
226:
225:
205:
204:
194:
184:
170:
169:
159:
157:
154:
148:
147:
145:
144:
133:
130:
118:
117:
110:module sandbox
87:
75:
74:
55:
17:
16:
13:
10:
9:
6:
4:
3:
2:
1453:
1442:
1439:
1437:
1434:
1433:
1431:
1415:
1411:
1404:
1367:
1345:
1317:
1310:
1306:
1299:
1274:
1249:
1224:
1187:
1180:
1173:
1160:
1114:
1107:
1079:
1075:
1068:
1058:
1054:
1047:
1037:
991:
984:
980:
973:
966:
956:
934:
911:string.gmatch
900:
889:templateNames
884:
877:
873:
866:
856:
822:
815:
811:
804:
794:
775:
768:
740:
736:
729:
713:
691:
687:
680:
673:
606:
599:
592:
585:
578:
556:
552:
521:
496:
480:
475:
470:
463:
459:
454:
448:
444:
439:
432:
428:
422:
418:
414:
413:documentation
405:
401:
395:
388:
385:
381:
380:
376:
367:
366:
331:
317:
316:
281:
275:
270:
234:
228:
220:
219:
218:
213:
200:
195:
190:
185:
180:
175:
174:
173:
163:
162:
155:
153:
142:
138:
135:
134:
131:
124:
123:
115:
111:
107:
103:
95:
91:
88:
81:
80:
73:from editing.
72:
68:
64:
60:
56:
49:
48:
42:
38:
34:
30:
1399:""
474:
397:}}
391:{{
325:
274:Title object
271:
260:
232:
215:}}
209:{{
206:
171:
151:
89:
1119:string.find
996:string.find
417:transcluded
67:substituted
39:] [
35:] [
31:] [
1430:Categories
1266:getContent
564:capitalize
411:The above
172:Examples:
106:/testcases
61:. It is a
827:mRedirect
501:mRedirect
453:testcases
382:Although
114:talk page
92:, and on
71:protected
1331:function
1093:function
945:template
905:template
754:function
705:template
696:function
561:function
538:loadData
370:pageName
356:pageName
164:returns
102:/sandbox
1291:content
1254:content
1002:content
917:content
839:content
780:content
760:content
507:require
460:|
445:|
438:sandbox
431:history
429:|
368:(where
320:content
318:(where
306:content
247:require
141:sandbox
37:history
1417:return
1369:return
1276:return
1238:return
1162:return
1060:return
1039:return
958:return
858:return
796:return
715:return
608:return
466:pages.
1384:title
1356:frame
1350:title
1347:local
1337:frame
1260:title
1251:local
1241:false
1232:title
1204:title
1192:title
1189:local
1063:false
886:local
861:false
799:false
724:false
693:local
635:upper
558:local
523:local
498:local
482:local
419:from
338:isDab
335:local
288:isDab
285:local
238:local
224:→ yes
203:→ yes
193:→ yes
179:Paris
156:Usage
43:]
41:purge
27:[
1362:args
1235:then
1216:page
1165:true
1155:then
1143:true
1125:page
1099:page
1042:true
1032:then
1020:true
961:true
951:then
851:then
789:then
458:edit
451:and
447:diff
443:edit
427:edit
265:and
33:edit
29:view
1406:end
1390:and
1301:end
1244:end
1229:not
1210:new
1175:end
1152:nil
1070:end
1049:end
1029:nil
975:end
968:end
902:for
868:end
848:nil
806:end
786:nil
731:end
682:end
650:sub
617:sub
462:run
415:is
189:New
166:yes
104:or
1432::
1396:or
1269:()
1226:if
1198:mw
1149:~=
1116:if
1026:~=
993:if
936:if
929:do
908:in
895:{}
845:~=
824:if
783:==
777:if
721:or
641:..
638:()
632:):
532:mw
491:{}
423:.
330::
280::
269:.
217::
201:}}
191:}}
181:}}
1420:p
1387:)
1381:(
1375:.
1372:p
1359:.
1353:=
1340:)
1334:(
1328:=
1322:.
1319:p
1294:)
1288:(
1282:.
1279:p
1263::
1257:=
1219:)
1213:(
1207:.
1201:.
1195:=
1168:;
1146:)
1140:,
1137:0
1134:,
1128:,
1122:(
1102:)
1096:(
1090:=
1084:.
1081:p
1023:)
1017:,
1014:1
1011:,
1005:,
999:(
948:)
942:(
926:)
920:,
914:(
892:=
842:)
836:(
830:.
763:)
757:(
751:=
745:.
742:p
708:)
702:(
668:)
665:1
662:-
659:,
656:2
653:(
647::
644:s
629:1
626:,
623:1
620:(
614::
611:s
573:)
570:s
567:(
547:)
541:(
535:.
529:=
516:)
510:(
504:=
488:=
485:p
471:.
464:)
456:(
449:)
441:(
433:)
425:(
406:.
359:)
353:(
347:.
341:=
309:)
303:(
297:.
291:=
256:)
250:(
244:=
183:→
143:)
139:(
96:.
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.