-
Notifications
You must be signed in to change notification settings - Fork 129
/
Copy pathwtf_wikipedia.cjs
11441 lines (10805 loc) · 311 KB
/
wtf_wikipedia.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*! wtf_wikipedia MIT */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('isomorphic-unfetch')) :
typeof define === 'function' && define.amd ? define(['isomorphic-unfetch'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.wtf = factory(global.unfetch));
})(this, (function (unfetch) { 'use strict';
/**
* Parses out the domain and title from a url
*
* @private
* @param {string} url The url that will be parsed
* @returns {{domain: string, title: string}} The domain and title of a url
*/
const parseUrl = function (url) {
let parsed = new URL(url); // eslint-disable-line
let title = parsed.pathname.replace(/^\/(wiki\/)?/, '');
title = decodeURIComponent(title);
return {
domain: parsed.host,
title: title,
}
};
/**
* capitalizes the input
* hello -> Hello
* hello there -> Hello there
*
* @private
* @param {string} [str] the string that will be capitalized
* @returns {string} the capitalized string
*/
/**
* trim whitespaces of the ends normalize 2 spaces into one and removes whitespaces before commas
*
* @private
* @param {string} [str] the string that will be processed
* @returns {string} the processed string
*/
function trim_whitespace(str) {
if (str && typeof str === 'string') {
str = str.replace(/^\s+/, '');
str = str.replace(/\s+$/, '');
str = str.replace(/ {2}/, ' ');
str = str.replace(/\s, /, ', ');
return str
}
return ''
}
/**
* determines if an variable is an array or not
*
* @private
* @param {*} x the variable that needs to be checked
* @returns {boolean} whether the variable is an array
*/
function isArray(x) {
return Object.prototype.toString.call(x) === '[object Array]'
}
/**
* determines if an variable is an object or not
*
* @private
* @param {*} x the variable that needs to be checked
* @returns {boolean} whether the variable is an object
*/
function isObject(x) {
return x && Object.prototype.toString.call(x) === '[object Object]'
}
const isInterWiki =
/(wikibooks|wikidata|wikimedia|wikinews|wikipedia|wikiquote|wikisource|wikispecies|wikiversity|wikivoyage|wiktionary|foundation|meta)\.org/;
const defaults$c = {
action: 'query',
prop: 'revisions|pageprops', // we use the 'revisions' api here, instead of the Raw api, for its CORS-rules..
rvprop: 'content|ids|timestamp',
maxlag: 5,
rvslots: 'main',
origin: '*',
format: 'json',
redirects: 'true',
};
/**
* turns a object into a query string
*
* @private
* @param {Object<string, string | number | boolean>} obj
* @returns {string} QueryString
*/
const toQueryString = function (obj) {
return Object.entries(obj)
.map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`)
.join('&')
};
/**
* cleans and prepares the tile by replacing the spaces with underscores (_) and trimming the white spaces of the ends
*
* @private
* @param {string} page the title that needs cleaning
* @returns {string} the cleaned title
*/
const cleanTitle = (page) => {
return page.replace(/ /g, '_').trim()
};
/**
* generates the url for fetching the pages
*
* @private
* @param {import('.').fetchDefaults} options
* @param {Object} [parameters]
* @returns {string} the url that can be used to make the fetch
*/
const makeUrl = function (options, parameters = defaults$c) {
let params = Object.assign({}, parameters);
//default url
let apiPath = '';
//add support for third party apis
if (options.domain) {
//wikimedia is the only api that uses `/w/api` as its path. other wikis use other paths
let path = isInterWiki.test(options.domain) ? 'w/api.php' : options.path;
apiPath = `https://${options.domain}/${path}?`;
} else if (options.lang && options.wiki) {
apiPath = `https://${options.lang}.${options.wiki}.org/w/api.php?`;
} else {
return ''
}
if (!options.follow_redirects) {
delete params.redirects;
}
// the origin header and url parameters need to be the same
// if one is provided we should change both the header and the parameter
if (options.origin) {
params.origin = options.origin;
}
//support numerical ids
let title = options.title;
if (typeof title === 'number') {
//single pageId
params.pageids = title;
} else if (typeof title === 'string') {
//single page title
params.titles = cleanTitle(title);
} else if (title !== undefined && isArray(title) && typeof title[0] === 'number') {
//pageid array
params.pageids = title.filter((t) => t).join('|');
} else if (title !== undefined && isArray(title) === true && typeof title[0] === 'string') {
//title array
params.titles = title
.filter((t) => t)
.map(cleanTitle)
.join('|');
} else {
return ''
}
//make it!
return `${apiPath}${toQueryString(params)}`
};
/**
* parses the media wiki api response to something we can use
*
* the data-format from mediawiki api is nutso
*
* @private
* @param {object} data
* @param {object} [options]
* @returns {*} result
*/
const getResult = function (data, options = {}) {
// handle nothing found or no data passed
if (!data?.query?.pages || !data?.query || !data) {
return null
}
//get all the pagesIds from the result
let pages = Object.keys(data.query.pages);
// map over the pageIds to parse out all the information
return pages.map((id) => {
// get the page by pageID
let page = data.query.pages[id] || {};
// if the page is missing or not found than return null
if (page.hasOwnProperty('missing') || page.hasOwnProperty('invalid')) {
return null
}
// get the text from the object
let text = page.revisions[0]['*'];
// if the text is not found in the regular place than it is at the other place
if (!text && page.revisions[0].slots) {
text = page.revisions[0].slots.main['*'];
}
let revisionID = page.revisions[0].revid;
let timestamp = page.revisions[0].timestamp;
page.pageprops = page.pageprops || {};
let domain = options.domain;
if (!domain && options.wiki) {
domain = `${options.wiki}.org`;
}
let meta = Object.assign({}, options, {
title: page.title,
pageID: page.pageid,
namespace: page.ns,
domain,
revisionID,
timestamp,
pageImage: page.pageprops['page_image_free'],
wikidata: page.pageprops.wikibase_item,
description: page.pageprops['wikibase-shortdesc'],
});
return { wiki: text, meta: meta }
})
};
/**
* helper for looping around all sections of a document
*
* @private
* @param {object} doc the document with the sections
* @param {string} fn the function name of the function that will be called
* @param {string | number} [clue] the clue that will be used with the function
* @returns {Array|*} the array of item at the index of the clue
*/
const sectionMap = function (doc, fn, clue) {
let arr = [];
doc.sections().forEach((sec) => {
let list = [];
if (typeof clue === 'string') {
list = sec[fn](clue);
} else {
list = sec[fn]();
}
list.forEach((t) => {
arr.push(t);
});
});
if (typeof clue === 'number') {
if (arr[clue] === undefined) {
return []
}
return [arr[clue]]
}
return arr
};
/**
* applies the the key values of defaults to options
*
* @private
* @param {object} options the user options
* @param {object} defaults the defaults
* @returns {object} the user options with the defaults applied
*/
const setDefaults = function (options, defaults) {
return Object.assign({}, defaults, options)
};
/**
* @typedef DocumentToJsonOptions
* @property {boolean | undefined} title
* @property {boolean | undefined} pageID
* @property {boolean | undefined} categories
* @property {boolean | undefined} sections
* @property {boolean | undefined} coordinates
* @property {boolean | undefined} infoboxes
* @property {boolean | undefined} images
* @property {boolean | undefined} plaintext
* @property {boolean | undefined} citations
* @property {boolean | undefined} references
*/
const defaults$b = {
title: true,
sections: true,
pageID: true,
categories: true,
wikidata: true,
description: true,
revisionID: false,
timestamp: false,
pageImage: false,
domain: false,
language: false,
};
/**
* @typedef documentToJsonReturn
* @property {string | undefined} title
* @property {number | null | undefined} pageID
* @property {string[] | undefined} categories
* @property {object[] | undefined} sections
* @property {boolean | undefined} isRedirect
* @property {object | undefined} redirectTo
* @property {object[] | undefined} coordinates
* @property {object[] | undefined} infoboxes
* @property {object[] | undefined} images
* @property {string | undefined} plaintext
* @property {object[] | undefined} references
*/
/**
* an opinionated output of the most-wanted data
*
* @private
* @param {object} doc
* @param {DocumentToJsonOptions} options
* @returns {documentToJsonReturn}
*/
const toJSON$2 = function (doc, options) {
options = setDefaults(options, defaults$b);
/**
* @type {documentToJsonReturn}
*/
let data = {};
if (options.title) {
data.title = doc.title();
}
// present only if true
if (doc.isRedirect() === true) {
data.isRedirect = true;
data.redirectTo = doc.redirectTo();
data.sections = [];
}
if (doc.isStub() === true) {
data.isStub = true;
}
if (doc.isDisambiguation() === true) {
data.isDisambiguation = true;
}
// metadata
if (options.pageID && doc.pageID()) {
data.pageID = doc.pageID();
}
if (options.wikidata && doc.wikidata()) {
data.wikidata = doc.wikidata();
}
if (options.revisionID && doc.revisionID()) {
data.revisionID = doc.revisionID();
}
if (options.timestamp && doc.timestamp()) {
data.timestamp = doc.timestamp();
}
if (options.description && doc.description()) {
data.description = doc.description();
}
// page sections
if (options.categories) {
data.categories = doc.categories();
}
if (options.sections) {
data.sections = doc.sections().map((i) => i.json(options));
}
if (options.infoboxes) {
data.infoboxes = doc.infoboxes().map((i) => i.json(options));
}
if (options.images) {
data.images = doc.images().map((i) => i.json(options));
}
if (options.citations || options.references) {
data.references = doc.references();
}
if (options.coordinates) {
data.coordinates = doc.coordinates();
}
if (options.plaintext) {
data.plaintext = doc.text(options);
}
return data
};
var _categories = [
'category', //en
'abdeeling', // pdc
'bólkur', // fo
'catagóir', // ga
'categori', // cy
'categoria',
'categoria', // co
'categoría', // es
'categorîa', // lij
'categorìa', // pms
'catégorie',
'categorie',
'catègorie', // frp
'category',
'categuria', // lmo
'catigurìa', // scn
'class', // kw
'ẹ̀ka', // yo
'flocc',
'flocc', // ang
'flokkur',
'grup', // tpi
'jamii', // sw
'kaarangay', // war
'kateggoría', // lad
'kategooria', // et
'kategori', // da
'kategorî', // ku
'kategoria', // eu
'kategória', // hu
'kategorie', //de
'kategoriija', // se
'kategorija', // sl
'kategorio', // eo
'kategoriya',
'kategoriýa', // tk
'kategoriye', // diq
'kategory', // fy
'kategorya', // tl
'kateqoriya', // az
'katiguriya', // qu
'klad', // vo
'luokka',
'ñemohenda', // gn
'roinn', //-seòrsa gd
'ronney', // gv
'rummad', // br
'setensele', // nso
'sokajy', // mg
'sumut', // atassuseq kl
'thể', // loại vi
'turkum', // uz
'категорија',
'категория', // ru
'категорія', // uk
'катэгорыя',
'төркем', // tt
'קטגוריה', // he
'تصنيف',
'تۈر', // ug
'رده',
'श्रेणी',
'श्रेणी', // hi
'বিষয়শ্রেণী', // bn
'หมวดหมู่', // th
'분류', // ko
'분류', //ko
'分类', // za
//--
];
var disambig_templates = [
'dab', //en
'disamb', //en
'disambig', //en
'disambiguation', //en
'aðgreining',
'aðgreining', //is
'aimai', //ja
'airport disambiguation',
'ałtsʼáʼáztiin', //nv
'anlam ayrımı', //gag
'anlam ayrımı', //tr
'apartigilo', //eo
'argipen', //eu
'begriepskloorenge', //stq
'begriffsklärung', //als
'begriffsklärung', //de
'begriffsklärung', //pdc
'begriffsklearung', //bar
'biology disambiguation',
'bisongidila', //kg
'bkl', //pfl
'bokokani', //ln
'caddayn', //so
'call sign disambiguation',
'caselaw disambiguation',
'chinese title disambiguation',
'clerheans', //kw
'cudakirin', //ku
'čvor', //bs
'db', //vls
'desambig', //nov
'desambigación', //an
'desambiguação', //pt
'desambiguació', //ca
'desambiguación', //es
'desambiguáncia', //ext
'desambiguasion', //lad
'desambiguassiù', //lmo
'desambigui', //lfn
'dezambiguizare', //ro
'dezanbìgua',
'dəqiqləşdirmə',
'dəqiqləşdirmə', //az
'disamb-term',
'disamb-terms',
'disamb2',
'disamb3',
'disamb4',
'disambigua', //it
'disambìgua', //sc
'disambiguasi',
'disambiguation cleanup',
'disambiguation lead name',
'disambiguation lead',
'disambiguation name',
'disambiguazion',
'disambigue',
'discretiva',
'discretiva', //la
'disheñvelout', //br
'disingkek', //min
'dixanbigua', //vec
'dixebra', //ast
'diżambigwazzjoni', //mt
'dmbox',
'doorverwijspagina', //nl
'dp', //nl
'dubbelsinnig',
'dubbelsinnig', //af
'dudalipen', //rmy
'dv', //nds_nl
'egyért', //hu
'faaleaogaina',
'fleiri týdningar', //fo
'fleirtyding', //nn
'flertydig', //da
'förgrening', //sv
'genus disambiguation',
'gì-ngiê', //cdo
'giklaro', //ceb
'gwahaniaethu', //cy
'homonimo', //io
'homónimos', //gl
'homonymie', //fr
'hospital disambiguation',
'huaʻōlelo puana like',
'huaʻōlelo puana like', //haw
'human name disambiguation cleanup',
'human name disambiguation',
'idirdhealú', //ga
'khu-pia̍t', //zh_min_nan
'kthjellim', //sq
'kujekesa', //sn
'letter-number combination disambiguation',
'letter-numbercombdisambig',
'maana', //sw
'maneo bin', //diq
'mathematical disambiguation',
'mehrdüdig begreep', //nds
'menm non', //ht
'military unit disambiguation',
'muardüüdag artiikel', //frr
'music disambiguation',
'myesakãrã',
'neibetsjuttings', //fy
'nozīmju atdalīšana', //lv
'number disambiguation',
'nuorodinis', //lt
'nyahkekaburan', //ms
'omonimeye', //wa
'omonimi',
'omonimia', //oc
'opus number disambiguation',
'page dé frouque', //nrm
'paglilinaw', //tl
'panangilawlawag', //ilo
'pansayod', //war
'pejy mitovy anarana', //mg
'peker', //no
'phonetics disambiguation',
'place name disambiguation',
'portal disambiguation',
'razdvojba', //hr
'razločitev', //sl
'razvrstavanje', //sh
'reddaghey', //gv
'road disambiguation',
'rozcestník', //cs
'rozlišovacia stránka', //sk
'school disambiguation',
'sclerir noziun', //rm
'selvendyssivu', //olo
'soilleireachadh', //gd
'species latin name abbreviation disambiguation',
'species latin name disambiguation',
'station disambiguation',
'suzmunski', //jbo
'synagogue disambiguation',
'täpsustuslehekülg', //et
'täsmennyssivu', //fi
'taxonomic authority disambiguation',
'taxonomy disambiguation',
'telplänov', //vo
'template disambiguation',
'tlahtolmelahuacatlaliztli', //nah
'trang định hướng', //vi
'ujednoznacznienie', //pl
'verdudeliking', //li
'wěcejwóznamowosć', //dsb
'wjacezmyslnosć', //hsb
'z',
'zambiguaçon', //mwl
'zeimeibu škiršona', //ltg
'αποσαφήνιση', //el
'айрық', //kk
'аҵакырацәа', //ab
'бир аайы јок',
'вишезначна одредница', //sr
'ибҳомзудоӣ', //tg
'кёб магъаналы', //krc
'күп мәгънәләр', //tt
'күп мәғәнәлелек', //ba
'массехк маӏан хилар',
'мъногосъмꙑслиѥ', //cu
'неадназначнасць', //be
'неадназначнасьць', //be_x_old
'неоднозначность', //ru
'олон удхатай', //bxr
'појаснување', //mk
'пояснение', //bg
'са шумуд манавал', //lez
'салаа утгатай', //mn
'суолталар', //sah
'текмаанисиздик', //ky
'цо магіна гуреб', //av
'чеперушка', //rue
'чолхалла', //ce
'шуко ончыктымаш-влак', //mhr
'მრავალმნიშვნელოვანი', //ka
'բազմիմաստութիւն', //hyw
'բազմիմաստություն', //hy
'באדייטן', //yi
'פירושונים', //he
'ابهامزدایی', //fa
'توضيح', //ar
'توضيح', //arz
'دقیقلشدیرمه', //azb
'ڕوونکردنەوە', //ckb
'سلجهائپ', //sd
'ضد ابہام', //ur
'گجگجی بیری', //mzn
'نامبهمېدنه', //ps
'መንታ', //am
'अस्पष्टता', //ne
'बहुअर्थी', //bh
'बहुविकल्पी शब्द', //hi
'দ্ব্যর্থতা নিরসন', //bn
'ਗੁੰਝਲ-ਖੋਲ੍ਹ', //pa
'સંદિગ્ધ શીર્ષક', //gu
'பக்கவழி நெறிப்படுத்தல்', //ta
'అయోమయ నివృత్తి', //te
'ದ್ವಂದ್ವ ನಿವಾರಣೆ', //kn
'വിവക്ഷകൾ', //ml
'වක්රෝත්ති', //si
'แก้ความกำกวม', //th
'သံတူကြောင်းကွဲ', //my
'သဵင်မိူၼ် တူၼ်ႈထႅဝ်ပႅၵ်ႇ',
'ណែនាំ', //km
'អសង្ស័យកម្ម',
'동음이의', //ko
'扤清楚', //gan
'搞清楚', //zh_yue
'曖昧さ回避', //ja
'消歧义', //zh
'釋義', //zh_classical
"gestion dj'omònim", //pms
"sut'ichana qillqa", //qu
// 'z', //vep
// 'သဵင်မိူၼ် တူၼ်ႈထႅဝ်ပႅၵ်ႇ', //shn
`gestion dj'omònim`,
`sut'ichana qillqa`,
];
// used in titles to denote disambiguation pages
// see 'Football_(disambiguation)'
var disambig_titles = [
'disambiguation', //en
'homonymie', //fr
'توضيح', //ar
'desambiguação', //pt
'Begriffsklärung', //de
'disambigua', //it
'曖昧さ回避', //ja
'消歧義', //zh
'搞清楚', //zh-yue
'значения', //ru
'ابهامزدایی', //fa
'د ابہام', //ur
'동음이의', //ko
'dubbelsinnig', //af
'այլ կիրառումներ', //hy
'ujednoznacznienie', //pl
];
var images = [
'file', //en
'image', //en
'चित्र', //img
'archivo', //es
'attēls', //lv
'berkas', //id
'bestand', //nl
'datei', //de
'dosiero', //eo
'dosya', //lad
'fájl', //hu
'fasciculus', //la
'fichier', //fr
'fil', //da
'fitxategi', //eu
'fitxer', //ca
'gambar', //su
'imagem', //pt
'imej', //ms
'immagine', //it
'larawan', //tl
'lêer', //af
'plik', //pl
'restr', //br
'slika', //bs
'wêne', //ku
'wobraz', //dsb
'выява', //be
'податотека', //mk
'слика', //sr
'файл', //ru
'სურათი', //ka
'պատկեր', //hy
'קובץ', //he
'پرونده', //fa
'دوتنه', //ps
'ملف', //ar
'وێنە', //ckb
'चित्र', //hi
'ไฟล์', //th
'파일', //ko
'ファイル', //ja
];
// https://en.m.wikipedia.org/wiki/Template:Stub#/languages
var stubs = [
'aboç',
'ahurhire',
'aizmetnis',
'amud',
'avixo de spigaso',
// 'begin',
'beginnetje',
'bibarilo',
'borrador',
'buáng-nàng-hâ',
'bun',
'buntato',
'c-supranu',
'cahrot',
'chala',
'choutchette',
'ciot',
'csonk',
'cung',
'danvez pennad',
'djermon',
'ébauche',
'ébeuche',
'ebòch',
'édéntạ',
'eginyn',
'ẹ̀kúnrẹ́rẹ́',
'en progreso',
'entamu',
'esboço',
'esborrany',
'esbòs',
'esbozo',
'ĝermo',
'gumud',
'ʻōmuku',
'junj',
'klado',
'maramara',
'mayele',
'mbegu',
'mrva',
'na mulno',
'nadabeigts rakstīņs',
'nalta',
'narcce',
'pahýl',
'pecietta',
'phí',
'pondok',
'por mejoral',
'potuʻi',
'pungol',
'qaralama',
'rabisco',
'rancangan',
'rintisan',
'saadjie',
'saha',
'sbozz',
'sid',
'síol',
'şitil',
'sjtumpke',
'skizz',
'skizze',
'škrbina',
'sơ khai',
'spire',
'stipula',
'stob',
'stobbe',
// 'stock',
'stompje',
'stub',
'stubben',
'stubbi',
'stubbur',
'stump',
'stumpen',
'stycce',
'suli',
'taslak',
'taslaq',
'tunas',
'turók',
'tynkä',
// 'u začetku',
'vangovango',
'vernuşte',
'výhonok',
'xinnoo',
'zarodk',
'zirriborroa',
'επέκταση',
'әҙерләмә',
'заготовка',
'керф',
'кечдар',
'клица',
'къæртт',
'кьурхь',
'мәкалә төпчеге',
'мъниче',
'накід',
'нєꙁаврьшєнъ члѣнъ',
'никулец',
'омоон',
'стыржень',
'хурд',
'хӏадурунжо',
'ესკიზი',
'መዋቅር',
'መዋቕር',
'अपूर्णलेखः',
'आधार',
'ठुटो',
'धाक्टें पान',
'विस्तार',
'অসম্পূর্ণ',
'পোখালি',
'સ્ટબ',
'ଅଧାଗଢ଼ା',
'குறுங்கட்டுரை',
'మొలక',
'ಎಲ್ಯ',
'ಚುಟುಕು',
'അപൂർണ്ണം',
'අංකුරය',
'โครง',
'ཆ་མི་ཚང་བ',
'អត្ថបទខ្លីមិនពេញលេញ',
'토막글',
'楔',
'芻文',
];
var infoboxes$1 = [
'infobox', //en
'amatl',
'anfo', //mwl
'anuāmapa', //haw
'bilgi kutusu', //tr
'bilgi', //tr
'bilgiquti', //uz
'boaty fampahalalana',
'boaty', //mg
'boestkelaouiñ', //br
'bosca', //ga
'capsa', //la
'diehtokássa', //se
'faktamall', //sv
'ficha', //es
'generalni', //hr
'gwybodlen3', //cy
'hộp thông tin',
'info', //pt
'infoboesse 2',
'infobokis', //tpi
'infoboks', //da
'infobox deleted',
'infobox generic',
'infobox generiek',
'infochascha', //rm
'infokašćik', //dsb
'infokast', //et
'infokutija', //bs
'infolentelė', //lt
'infookvir',
'infopolje', //sl
'informkesto', //eo
'infoschede',
'infoskreine', //ltg
'infotaula', //eu
'inligtingskas',
'inligtingskas3', //af
'inligtingskas4', //af
'kishtey fys',
'kotak info',
'kotak', //su
'məlumat qutusu',
'simple box',
'tertcita tanxe',
'tertcita', //jbo
'tiätuloová',
'tietolaatikko', //fi
'wd bosca sonraí',
'yerleşim bilgi kutusu',
'ynfoboks generyk',
'ynfoboks', //fy
'πλαίσιο πληροφοριών',
'πλαίσιο', //el
'акарточка', //ab
'аҥа', //mhr
'инфобокс', //kk
'инфокутија', //sr
'инфокутия', //bg
'інфобокс', //rue
'канадский',
'картка', //be
'карточка', //ru
'карточка2', //mdf
'карточкарус', //ba
'картуш', //koi
'қуттӣ', //tg
'ინფოდაფა', //ka
'տեղեկաքարտ', //hy
'תבנית', //he
'بطاقة', //ar
'ڄاڻخانو', //sd
'خانہ', //ur
'لغة',
'معلوٗمات ڈَبہٕ',
'ज्ञानसन्दूक', //hi
'তথ্যছক', //bn
'ਜਾਣਕਾਰੀਡੱਬਾ', //pa
'సమాచారపెట్టె', //te
'තොරතුරුකොටුව', //si
'กล่องข้อมูล', //th
'ກ່ອງຂໍ້ມູນ',
'ប្រអប់ព័ត៌មាន', //km
'정보상자', //ko
'明細', //zh_yue
];
var redirects = [
'aanstuur', //af
'aastiurey',
'adkas', //br
'ailgyfeirio',
'alidirekto',
'alih', //id
'aýdaw',
'baw-ing',
'beralîkirin', //ku
'birzuzendu',