wtf_wikipedia
Version:
parse wikiscript into json
34 lines (33 loc) • 825 B
JavaScript
//we explicitly ignore these, because they sometimes have resolve some data
const list = [
//https://en.wikipedia.org/wiki/category:templates_with_no_visible_output
'anchor',
'defaultsort',
'use list-defined references',
'void',
//https://en.wikipedia.org/wiki/Category:Protection_templates
'pp',
'pp-move-indef',
'pp-semi-indef',
'pp-vandalism',
//out-of-scope still - https://en.wikipedia.org/wiki/Template:Tag
'#tag',
//https://en.wikipedia.org/wiki/Template:Navboxes
// 'navboxes',
// 'reflist',
// 'ref-list',
'div col',
// 'authority control',
//https://en.wikipedia.org/wiki/Template:End
'pope list end',
'shipwreck list end',
'starbox end',
'end box',
'end',
's-end',
]
const ignore = list.reduce((h, str) => {
h[str] = true
return h
}, {})
export default ignore