wtf_wikipedia
Version:
parse wikiscript into json
46 lines (45 loc) • 857 B
JavaScript
//alt disambig-templates en-wikipedia uses
let d = ' disambiguation'
const templates = [
'dab',
'dab',
'disamb',
'disambig',
'geodis',
'hndis',
'setindex',
'ship index',
'split dab',
'sport index',
'wp disambig',
'disambiguation cleanup',
'airport' + d,
'biology' + d,
'call sign' + d,
'caselaw' + d,
'chinese title' + d,
'genus' + d,
'hospital' + d,
'lake index',
'letter' + d,
'letter-number combination' + d,
'mathematical' + d,
'military unit' + d,
'mountainindex',
'number' + d,
'phonetics' + d,
'place name' + d,
'portal' + d,
'road' + d,
'school' + d,
'species latin name abbreviation' + d,
'species latin name' + d,
'station' + d,
'synagogue' + d,
'taxonomic authority' + d,
'taxonomy' + d,
].reduce((h, str) => {
h[str] = true
return h
}, {})
module.exports = templates