earwig / mwparserfromhell

A Python parser for MediaWiki wikicode
https://mwparserfromhell.readthedocs.io/
MIT License
741 stars 74 forks source link

add `after` parameter to Template.add() method #281

Closed RheingoldRiver closed 7 months ago

RheingoldRiver commented 2 years ago

This would be a nice QOL update that doesn't really add missing functionality per se, but I often try to convince people how easy it is to edit wikis with Python scripts, and one sticking point is that it's just a bit tricky to add one parameter after another, when someone is brand-new to coding. And usually adding a new parameter after an existing one is the desired use case for Template.add (e.g. template.add('image_unlined', 'Yes', after='image') etc).

earwig commented 7 months ago

Fixed in #315.