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

Remove the limit of unnamed template argument number #277

Closed xxyzz closed 3 months ago

xxyzz commented 3 months ago

0 and above 1000 are allowed in MediaWiki, for example, fr edition's "cardinaux/vi" template: https://fr.wiktionary.org/wiki/Modèle:cardinaux/vi

xxyzz commented 3 months ago

0 is also allowed and str.isdigit() returns False for negative string number so I think we don't need more checks.

kristian-clausal commented 3 months ago

Then everything seems correct.