Board Thread:Support Requests - Getting Technical/@comment-4189499-20150607233806/@comment-24473195-20150908125214

Imamadmad wrote: Thanks for the additions. Sorry it took a while to get back to you!

I've used your module, and I've made some edits to allow it to accept a parameter for the templates. I tried it out on a test page, however it's been 5 days and the template still hasn't changed, despite me specifying that it should change after only 2 days. Could you please have a look? The test page is here and the minorly edited module is here.

Thanks so much for all your help! Also, the module doesn't seem to work when called from a template. See here for a test page using your exact version of the module, both called from within a template and directly invoked onto a page. I've looked at the templates and my first guess is that for some reason  the cache isn't updating for that particular Doctor Who Answers page because the template in your Imamadmad:Test seems to have changed to "delete" without any problems. It is now using the  template.

As for it not working when invoked using a template. That happens because you have arguments both in a template, and in the page itself. If for example, you included all the arguments you added in the invoke directly on the page, it will work without a hitch, because generally speaking the templates using a module simply have code like:

One other way to use the lua module, is to use the "Date" (YYYY-MM-DD) parameter, e.g.:

Anyway, it can be useful sometimes to have different parameters in both the template and the page itself. Although the problem is actually deciding which parameters should be used, e.g.:

Main Page

or

Template:delete

Page will be deleted because

I'll have a look at the module again to see if I missed something that needs fixing...