Thread:Dessamator/@comment-5065259-20160222210830/@comment-24473195-20160224202038

I looked into this, and got it mostly working.

  I added data-parametername and data-templatename. They contain the template which needs to be changed and the parameter name.

The javascript code I used:

Enjoy.

P.S. You might have to add extra code to deal with "frankentemplates", templates within templates within templates, e.g..