tatuylonen / wikitextprocessor

Python package for WikiMedia dump processing (Wiktionary, Wikipedia etc). Wikitext parsing, template expansion, Lua module execution. For data extraction, bulk syntax checking, error detection, and offline formatting.
Other
93 stars 23 forks source link

Getbadge #235

Closed kristian-clausal closed 7 months ago

kristian-clausal commented 7 months ago

Incomplete getBadge() implementation; return an empty table. We don't really need to know what badges a wikipedia page has for parsing, and this will fix issues.

getBadge was introduces in 2022~2023, so it is not strange it was unimplemented.

Afaict, the code doesn't call anything like Wikidata for the badge stuff, it's internal stuff (but with globalsiteid??), and I'm not even sure the dump data has badge data at all.