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