Closed mhl closed 7 years ago
One thing to consider is whether all this new code should be in a separate gem, since it's quite a generic way of rewriting MediaWiki pages based on template parameters, and not really specific to this application.
I would be very much in favour of separating this out like that. (Even if not an entirely separate gem — though that would be my preference — I think it should at least live in a conceptually different class within this gem)
This code has now been moved out to the everypolitician/mediawiki-page-replaceable_content library.
[This isn't quite ready yet; e.g. there are a few tests I'd like to add, and the prompt script hasn't been updated to use this. It's probably still worth getting comments on at this stage.]
One thing to consider is whether all this new code should be in a separate gem, since it's quite a generic way of rewriting MediaWiki pages based on template parameters, and not really specific to this application.
As an example of usage, You could do:
This has been run twice on: https://www.wikidata.org/wiki/User:Mhl20/test_template for example.