Board Thread:Support Requests - Getting Technical/@comment-188432-20130624203859/@comment-5716479-20130625140628

This code might cause problems when there are more than one template with parameters on the page. Also various templates require different alignments.

You might want to try this "low tech" quick solution. Note, I am not familiar with python or pywikipedia, so this is just scheme: Replace(@"\|name(.*?)\=", "|name         ="); Replace(@"\|made before(.*?)\= ", "|made after   ="); Replace(@"\|made after(.*?)\= ", "|made after   ="); Replace(@"\|prev(.*?)\= "     , "|prev          =");

I presume that you have code for empty templates, which can be turned to this with quick two regex substitutions(use tab). It has less chance to cause problems and easier to understand to others who might follow.

Also if you interested AWB has a set of tools which help you automate much of this.