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
90 stars 23 forks source link

Fix the rest errors when expanding French Wikipedia's "liste des dirigeants successifs" template in page "Ford" #262

Closed xxyzz closed 3 months ago

xxyzz commented 3 months ago

260 fixes the error at here: https://fr.wikipedia.org/wiki/Module:Titulaires#L-904, but the template expands to empty string because mw.wikibase.getAllStatements() returns an empty table. With this pr's changes the "liste des dirigeants successifs" template in page Ford will be expanded to a table successfully.

I didn't update the Lupa type file, IMO it's an unnecessary maintenance burden and should be removed...