Adjust the lua templates for the lua modules.
Merge pull request #7764 from natural-law/v3

Adjust the lua templates for the lua modules.