wikilint 2.20.2 → 2.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/enwiki.json +114 -112
- package/config/jawiki.json +9 -2
- package/config/llwiki.json +199 -199
- package/config/zhwiki.json +361 -359
- package/dist/bin/cli.js +3 -12
- package/dist/bin/config.js +3 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/dist/lib/node.d.ts +3 -1
- package/dist/lib/text.js +28 -7
- package/dist/lib/title.js +2 -1
- package/dist/src/arg.js +7 -7
- package/dist/src/heading.js +6 -3
- package/dist/src/index.js +13 -0
- package/dist/src/link/base.js +1 -1
- package/dist/src/transclude.js +1 -1
- package/i18n/zh-hans.json +2 -2
- package/package.json +4 -2
package/config/enwiki.json
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"ext": [
|
|
3
|
-
"nowiki",
|
|
4
3
|
"pre",
|
|
4
|
+
"nowiki",
|
|
5
5
|
"gallery",
|
|
6
6
|
"indicator",
|
|
7
|
-
"
|
|
7
|
+
"langconvert",
|
|
8
|
+
"graph",
|
|
9
|
+
"timeline",
|
|
10
|
+
"hiero",
|
|
11
|
+
"charinsert",
|
|
8
12
|
"ref",
|
|
9
13
|
"references",
|
|
10
|
-
"categorytree",
|
|
11
|
-
"charinsert",
|
|
12
|
-
"imagemap",
|
|
13
14
|
"inputbox",
|
|
14
|
-
"
|
|
15
|
+
"imagemap",
|
|
16
|
+
"source",
|
|
17
|
+
"syntaxhighlight",
|
|
18
|
+
"poem",
|
|
19
|
+
"categorytree",
|
|
20
|
+
"section",
|
|
15
21
|
"score",
|
|
22
|
+
"templatestyles",
|
|
23
|
+
"templatedata",
|
|
24
|
+
"math",
|
|
16
25
|
"ce",
|
|
17
26
|
"chem",
|
|
18
|
-
"graph",
|
|
19
|
-
"hiero",
|
|
20
|
-
"langconvert",
|
|
21
|
-
"mapframe",
|
|
22
27
|
"maplink",
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"source",
|
|
27
|
-
"syntaxhighlight",
|
|
28
|
-
"templatedata",
|
|
29
|
-
"timeline",
|
|
30
|
-
"page-collection"
|
|
28
|
+
"mapframe",
|
|
29
|
+
"page-collection",
|
|
30
|
+
"phonos"
|
|
31
31
|
],
|
|
32
32
|
"html": [
|
|
33
33
|
[
|
|
@@ -99,8 +99,6 @@
|
|
|
99
99
|
]
|
|
100
100
|
],
|
|
101
101
|
"namespaces": {
|
|
102
|
-
"-2": "Media",
|
|
103
|
-
"-1": "Special",
|
|
104
102
|
"0": "",
|
|
105
103
|
"1": "Talk",
|
|
106
104
|
"2": "User",
|
|
@@ -128,29 +126,24 @@
|
|
|
128
126
|
"828": "Module",
|
|
129
127
|
"829": "Module talk",
|
|
130
128
|
"1728": "Event",
|
|
131
|
-
"1729": "Event talk"
|
|
129
|
+
"1729": "Event talk",
|
|
130
|
+
"-2": "Media",
|
|
131
|
+
"-1": "Special"
|
|
132
132
|
},
|
|
133
133
|
"nsid": {
|
|
134
134
|
"": 0,
|
|
135
|
-
"media": -2,
|
|
136
|
-
"special": -1,
|
|
137
135
|
"talk": 1,
|
|
138
136
|
"user": 2,
|
|
139
137
|
"user talk": 3,
|
|
140
|
-
"wp": 4,
|
|
141
138
|
"wikipedia": 4,
|
|
142
139
|
"project": 4,
|
|
143
|
-
"wt": 5,
|
|
144
140
|
"wikipedia talk": 5,
|
|
145
141
|
"project talk": 5,
|
|
146
142
|
"file": 6,
|
|
147
|
-
"image": 6,
|
|
148
143
|
"file talk": 7,
|
|
149
|
-
"image talk": 7,
|
|
150
144
|
"mediawiki": 8,
|
|
151
145
|
"mediawiki talk": 9,
|
|
152
146
|
"template": 10,
|
|
153
|
-
"tm": 10,
|
|
154
147
|
"template talk": 11,
|
|
155
148
|
"help": 12,
|
|
156
149
|
"help talk": 13,
|
|
@@ -167,10 +160,16 @@
|
|
|
167
160
|
"module": 828,
|
|
168
161
|
"module talk": 829,
|
|
169
162
|
"event": 1728,
|
|
170
|
-
"event talk": 1729
|
|
163
|
+
"event talk": 1729,
|
|
164
|
+
"media": -2,
|
|
165
|
+
"special": -1,
|
|
166
|
+
"wp": 4,
|
|
167
|
+
"wt": 5,
|
|
168
|
+
"image": 6,
|
|
169
|
+
"image talk": 7,
|
|
170
|
+
"tm": 10
|
|
171
171
|
},
|
|
172
172
|
"functionHook": [
|
|
173
|
-
"msgnw",
|
|
174
173
|
"ns",
|
|
175
174
|
"nse",
|
|
176
175
|
"urlencode",
|
|
@@ -278,7 +277,9 @@
|
|
|
278
277
|
"statements",
|
|
279
278
|
"commaseparatedlist",
|
|
280
279
|
"assessment",
|
|
281
|
-
"
|
|
280
|
+
"chart",
|
|
281
|
+
"mentor",
|
|
282
|
+
"msgnw"
|
|
282
283
|
],
|
|
283
284
|
"variable": [
|
|
284
285
|
"!",
|
|
@@ -365,9 +366,9 @@
|
|
|
365
366
|
"dir",
|
|
366
367
|
"language",
|
|
367
368
|
"numberofwikis",
|
|
368
|
-
"pendingchangelevel",
|
|
369
369
|
"noexternallanglinks",
|
|
370
|
-
"wbreponame"
|
|
370
|
+
"wbreponame",
|
|
371
|
+
"pendingchangelevel"
|
|
371
372
|
],
|
|
372
373
|
"parserFunction": [
|
|
373
374
|
{
|
|
@@ -401,7 +402,6 @@
|
|
|
401
402
|
"#tag": "tag",
|
|
402
403
|
"#formatdate": "formatdate",
|
|
403
404
|
"#dateformat": "formatdate",
|
|
404
|
-
"#invoke": "invoke",
|
|
405
405
|
"#if": "if",
|
|
406
406
|
"#ifeq": "ifeq",
|
|
407
407
|
"#switch": "switch",
|
|
@@ -415,41 +415,37 @@
|
|
|
415
415
|
"#titleparts": "titleparts",
|
|
416
416
|
"pendingchangelevel": "pendingchangelevel",
|
|
417
417
|
"#categorytree": "categorytree",
|
|
418
|
-
"articlepath": "articlepath",
|
|
419
|
-
"server": "server",
|
|
420
|
-
"servername": "servername",
|
|
421
|
-
"scriptpath": "scriptpath",
|
|
422
|
-
"stylepath": "stylepath",
|
|
423
|
-
"msgnw": "msgnw",
|
|
424
|
-
"#related": "related",
|
|
425
|
-
"#babel": "babel",
|
|
426
|
-
"#commaseparatedlist": "commaseparatedlist",
|
|
427
|
-
"#coordinates": "coordinates",
|
|
428
418
|
"#lst": "lst",
|
|
429
419
|
"#section": "lst",
|
|
430
|
-
"#lsth": "lsth",
|
|
431
|
-
"#section-h": "lsth",
|
|
432
420
|
"#lstx": "lstx",
|
|
433
421
|
"#section-x": "lstx",
|
|
434
|
-
"#
|
|
435
|
-
"#
|
|
436
|
-
"#property": "property",
|
|
422
|
+
"#lsth": "lsth",
|
|
423
|
+
"#section-h": "lsth",
|
|
437
424
|
"#target": "target",
|
|
425
|
+
"#babel": "babel",
|
|
426
|
+
"#coordinates": "coordinates",
|
|
427
|
+
"#invoke": "invoke",
|
|
428
|
+
"#related": "related",
|
|
438
429
|
"noexternallanglinks": "noexternallanglinks",
|
|
430
|
+
"#property": "property",
|
|
439
431
|
"#statements": "statements",
|
|
432
|
+
"#commaseparatedlist": "commaseparatedlist",
|
|
433
|
+
"#assessment": "assessment",
|
|
434
|
+
"#chart": "chart",
|
|
435
|
+
"#mentor": "mentor",
|
|
436
|
+
"articlepath": "articlepath",
|
|
437
|
+
"server": "server",
|
|
438
|
+
"servername": "servername",
|
|
439
|
+
"scriptpath": "scriptpath",
|
|
440
|
+
"stylepath": "stylepath",
|
|
440
441
|
"numberofwikis": "numberofwikis",
|
|
441
|
-
"wbreponame": "wbreponame"
|
|
442
|
+
"wbreponame": "wbreponame",
|
|
443
|
+
"msgnw": "msgnw"
|
|
442
444
|
},
|
|
443
445
|
{
|
|
444
|
-
"
|
|
445
|
-
"NUMBEROFUSERS": "numberofusers",
|
|
446
|
-
"NUMBEROFACTIVEUSERS": "numberofactiveusers",
|
|
447
|
-
"NUMBEROFARTICLES": "numberofarticles",
|
|
448
|
-
"NUMBEROFFILES": "numberoffiles",
|
|
449
|
-
"NUMBEROFADMINS": "numberofadmins",
|
|
446
|
+
"#FORMAL": "formal",
|
|
450
447
|
"NUMBERINGROUP": "numberingroup",
|
|
451
448
|
"NUMINGROUP": "numberingroup",
|
|
452
|
-
"NUMBEROFEDITS": "numberofedits",
|
|
453
449
|
"DEFAULTSORT": "defaultsort",
|
|
454
450
|
"DEFAULTSORTKEY": "defaultsort",
|
|
455
451
|
"DEFAULTCATEGORYSORT": "defaultsort",
|
|
@@ -458,24 +454,16 @@
|
|
|
458
454
|
"PAGESIZE": "pagesize",
|
|
459
455
|
"PROTECTIONLEVEL": "protectionlevel",
|
|
460
456
|
"PROTECTIONEXPIRY": "protectionexpiry",
|
|
461
|
-
"NAMESPACEE": "namespacee",
|
|
462
|
-
"NAMESPACENUMBER": "namespacenumber",
|
|
463
|
-
"TALKSPACE": "talkspace",
|
|
464
|
-
"TALKSPACEE": "talkspacee",
|
|
465
|
-
"SUBJECTSPACE": "subjectspace",
|
|
466
|
-
"ARTICLESPACE": "subjectspace",
|
|
467
|
-
"SUBJECTSPACEE": "subjectspacee",
|
|
468
|
-
"ARTICLESPACEE": "subjectspacee",
|
|
469
457
|
"PAGENAME": "pagename",
|
|
470
458
|
"PAGENAMEE": "pagenamee",
|
|
471
459
|
"FULLPAGENAME": "fullpagename",
|
|
472
460
|
"FULLPAGENAMEE": "fullpagenamee",
|
|
461
|
+
"SUBPAGENAME": "subpagename",
|
|
462
|
+
"SUBPAGENAMEE": "subpagenamee",
|
|
473
463
|
"ROOTPAGENAME": "rootpagename",
|
|
474
464
|
"ROOTPAGENAMEE": "rootpagenamee",
|
|
475
465
|
"BASEPAGENAME": "basepagename",
|
|
476
466
|
"BASEPAGENAMEE": "basepagenamee",
|
|
477
|
-
"SUBPAGENAME": "subpagename",
|
|
478
|
-
"SUBPAGENAMEE": "subpagenamee",
|
|
479
467
|
"TALKPAGENAME": "talkpagename",
|
|
480
468
|
"TALKPAGENAMEE": "talkpagenamee",
|
|
481
469
|
"SUBJECTPAGENAME": "subjectpagename",
|
|
@@ -492,9 +480,31 @@
|
|
|
492
480
|
"REVISIONUSER": "revisionuser",
|
|
493
481
|
"CASCADINGSOURCES": "cascadingsources",
|
|
494
482
|
"NAMESPACE": "namespace",
|
|
483
|
+
"NAMESPACEE": "namespacee",
|
|
484
|
+
"NAMESPACENUMBER": "namespacenumber",
|
|
485
|
+
"TALKSPACE": "talkspace",
|
|
486
|
+
"TALKSPACEE": "talkspacee",
|
|
487
|
+
"SUBJECTSPACE": "subjectspace",
|
|
488
|
+
"ARTICLESPACE": "subjectspace",
|
|
489
|
+
"SUBJECTSPACEE": "subjectspacee",
|
|
490
|
+
"ARTICLESPACEE": "subjectspacee",
|
|
491
|
+
"NUMBEROFARTICLES": "numberofarticles",
|
|
492
|
+
"NUMBEROFFILES": "numberoffiles",
|
|
493
|
+
"NUMBEROFUSERS": "numberofusers",
|
|
494
|
+
"NUMBEROFACTIVEUSERS": "numberofactiveusers",
|
|
495
|
+
"NUMBEROFPAGES": "numberofpages",
|
|
496
|
+
"NUMBEROFADMINS": "numberofadmins",
|
|
497
|
+
"NUMBEROFEDITS": "numberofedits",
|
|
498
|
+
"#bcp47": "bcp47",
|
|
499
|
+
"#dir": "dir",
|
|
500
|
+
"#interwikilink": "interwikilink",
|
|
501
|
+
"#interlanguagelink": "interlanguagelink",
|
|
495
502
|
"DISPLAYTITLE": "displaytitle",
|
|
503
|
+
"#timef": "timef",
|
|
504
|
+
"#timefl": "timefl",
|
|
496
505
|
"SHORTDESC": "shortdesc",
|
|
497
506
|
"!": "!",
|
|
507
|
+
"=": "=",
|
|
498
508
|
"CURRENTMONTH": "currentmonth",
|
|
499
509
|
"CURRENTMONTH2": "currentmonth",
|
|
500
510
|
"CURRENTMONTH1": "currentmonth1",
|
|
@@ -532,16 +542,8 @@
|
|
|
532
542
|
"DIRMARK": "directionmark",
|
|
533
543
|
"CONTENTLANGUAGE": "contentlanguage",
|
|
534
544
|
"CONTENTLANG": "contentlanguage",
|
|
535
|
-
"
|
|
536
|
-
"
|
|
537
|
-
"#FORMAL": "formal",
|
|
538
|
-
"#bcp47": "bcp47",
|
|
539
|
-
"#dir": "dir",
|
|
540
|
-
"#interwikilink": "interwikilink",
|
|
541
|
-
"#interlanguagelink": "interlanguagelink",
|
|
542
|
-
"#timef": "timef",
|
|
543
|
-
"#timefl": "timefl",
|
|
544
|
-
"USERLANGUAGE": "userlanguage"
|
|
545
|
+
"USERLANGUAGE": "userlanguage",
|
|
546
|
+
"PAGELANGUAGE": "pagelanguage"
|
|
545
547
|
},
|
|
546
548
|
[
|
|
547
549
|
"msg",
|
|
@@ -556,68 +558,68 @@
|
|
|
556
558
|
[],
|
|
557
559
|
[],
|
|
558
560
|
{
|
|
561
|
+
"notoc": "notoc",
|
|
562
|
+
"nogallery": "nogallery",
|
|
559
563
|
"forcetoc": "forcetoc",
|
|
560
|
-
"
|
|
561
|
-
"nocontentconvert": "nocontentconvert",
|
|
564
|
+
"toc": "toc",
|
|
562
565
|
"noeditsection": "noeditsection",
|
|
563
|
-
"nogallery": "nogallery",
|
|
564
|
-
"notc": "notitleconvert",
|
|
565
566
|
"notitleconvert": "notitleconvert",
|
|
566
|
-
"
|
|
567
|
-
"
|
|
567
|
+
"notc": "notitleconvert",
|
|
568
|
+
"nocontentconvert": "nocontentconvert",
|
|
569
|
+
"nocc": "nocontentconvert",
|
|
568
570
|
"archivedtalk": "archivedtalk",
|
|
569
571
|
"notalk": "notalk"
|
|
570
572
|
},
|
|
571
573
|
{
|
|
572
|
-
"
|
|
573
|
-
"
|
|
574
|
+
"NEWSECTIONLINK": "NEWSECTIONLINK",
|
|
575
|
+
"NONEWSECTIONLINK": "NONEWSECTIONLINK",
|
|
574
576
|
"HIDDENCAT": "HIDDENCAT",
|
|
577
|
+
"EXPECTUNUSEDCATEGORY": "EXPECTUNUSEDCATEGORY",
|
|
578
|
+
"EXPECTUNUSEDTEMPLATE": "EXPECTUNUSEDTEMPLATE",
|
|
575
579
|
"INDEX": "INDEX",
|
|
576
|
-
"NEWSECTIONLINK": "NEWSECTIONLINK",
|
|
577
580
|
"NOINDEX": "NOINDEX",
|
|
578
|
-
"NONEWSECTIONLINK": "NONEWSECTIONLINK",
|
|
579
581
|
"STATICREDIRECT": "STATICREDIRECT",
|
|
580
582
|
"NOGLOBAL": "NOGLOBAL",
|
|
581
|
-
"
|
|
582
|
-
"
|
|
583
|
+
"DISAMBIG": "DISAMBIGUATION",
|
|
584
|
+
"EXPECTED_UNCONNECTED_PAGE": "EXPECTEDUNCONNECTEDPAGE"
|
|
583
585
|
}
|
|
584
586
|
],
|
|
585
587
|
"protocol": "bitcoin:|ftp://|ftps://|geo:|git://|gopher://|http://|https://|irc://|ircs://|magnet:|mailto:|matrix:|mms://|news:|nntp://|redis://|sftp://|sip:|sips:|sms:|ssh://|svn://|tel:|telnet://|urn:|worldwind://|xmpp:",
|
|
586
588
|
"interwiki": [],
|
|
587
589
|
"img": {
|
|
588
|
-
"
|
|
589
|
-
"
|
|
590
|
-
"
|
|
591
|
-
"
|
|
592
|
-
"left": "left",
|
|
593
|
-
"right": "right",
|
|
594
|
-
"none": "none",
|
|
595
|
-
"$1px": "width",
|
|
590
|
+
"alt=$1": "alt",
|
|
591
|
+
"baseline": "baseline",
|
|
592
|
+
"border": "border",
|
|
593
|
+
"bottom": "bottom",
|
|
596
594
|
"center": "center",
|
|
597
595
|
"centre": "center",
|
|
596
|
+
"class=$1": "class",
|
|
597
|
+
"frame": "framed",
|
|
598
598
|
"framed": "framed",
|
|
599
599
|
"enframed": "framed",
|
|
600
|
-
"frame": "framed",
|
|
601
600
|
"frameless": "frameless",
|
|
602
|
-
"
|
|
603
|
-
"
|
|
604
|
-
"upright $1": "upright",
|
|
605
|
-
"border": "border",
|
|
606
|
-
"alt=$1": "alt",
|
|
607
|
-
"class=$1": "class",
|
|
601
|
+
"lang=$1": "lang",
|
|
602
|
+
"left": "left",
|
|
608
603
|
"link=$1": "link",
|
|
609
|
-
"
|
|
604
|
+
"thumbnail=$1": "manualthumb",
|
|
605
|
+
"thumb=$1": "manualthumb",
|
|
606
|
+
"middle": "middle",
|
|
607
|
+
"none": "none",
|
|
608
|
+
"page=$1": "page",
|
|
609
|
+
"page $1": "page",
|
|
610
|
+
"right": "right",
|
|
610
611
|
"sub": "sub",
|
|
611
612
|
"super": "super",
|
|
612
613
|
"sup": "super",
|
|
613
|
-
"top": "top",
|
|
614
|
-
"text-top": "text-top",
|
|
615
|
-
"middle": "middle",
|
|
616
|
-
"bottom": "bottom",
|
|
617
614
|
"text-bottom": "text-bottom",
|
|
618
|
-
"
|
|
619
|
-
"
|
|
620
|
-
"
|
|
615
|
+
"text-top": "text-top",
|
|
616
|
+
"thumb": "thumbnail",
|
|
617
|
+
"thumbnail": "thumbnail",
|
|
618
|
+
"top": "top",
|
|
619
|
+
"upright": "upright",
|
|
620
|
+
"upright=$1": "upright",
|
|
621
|
+
"upright $1": "upright",
|
|
622
|
+
"$1px": "width"
|
|
621
623
|
},
|
|
622
624
|
"redirection": [
|
|
623
625
|
"#redirect"
|
package/config/jawiki.json
CHANGED
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"chem",
|
|
27
27
|
"maplink",
|
|
28
28
|
"mapframe",
|
|
29
|
+
"page-collection",
|
|
29
30
|
"phonos"
|
|
30
31
|
],
|
|
31
32
|
"html": [
|
|
@@ -124,6 +125,8 @@
|
|
|
124
125
|
"711": "TimedText talk",
|
|
125
126
|
"828": "Module",
|
|
126
127
|
"829": "Module talk",
|
|
128
|
+
"1728": "Event",
|
|
129
|
+
"1729": "Event talk",
|
|
127
130
|
"-2": "Media",
|
|
128
131
|
"-1": "Special"
|
|
129
132
|
},
|
|
@@ -167,6 +170,8 @@
|
|
|
167
170
|
"module": 828,
|
|
168
171
|
"モジュール‐ノート": 829,
|
|
169
172
|
"module talk": 829,
|
|
173
|
+
"event": 1728,
|
|
174
|
+
"event talk": 1729,
|
|
170
175
|
"メディア": -2,
|
|
171
176
|
"media": -2,
|
|
172
177
|
"特別": -1,
|
|
@@ -194,7 +199,6 @@
|
|
|
194
199
|
"モジュール・トーク": 829
|
|
195
200
|
},
|
|
196
201
|
"functionHook": [
|
|
197
|
-
"msgnw",
|
|
198
202
|
"ns",
|
|
199
203
|
"nse",
|
|
200
204
|
"urlencode",
|
|
@@ -299,7 +303,9 @@
|
|
|
299
303
|
"property",
|
|
300
304
|
"statements",
|
|
301
305
|
"commaseparatedlist",
|
|
302
|
-
"
|
|
306
|
+
"chart",
|
|
307
|
+
"mentor",
|
|
308
|
+
"msgnw"
|
|
303
309
|
],
|
|
304
310
|
"variable": [
|
|
305
311
|
"!",
|
|
@@ -507,6 +513,7 @@
|
|
|
507
513
|
"#property": "property",
|
|
508
514
|
"#statements": "statements",
|
|
509
515
|
"#commaseparatedlist": "commaseparatedlist",
|
|
516
|
+
"#chart": "chart",
|
|
510
517
|
"#mentor": "mentor",
|
|
511
518
|
"記事パス": "articlepath",
|
|
512
519
|
"articlepath": "articlepath",
|