Changes
The module doesn't apply the class to the whole template, just part of it and I know nothing about Lua to add it there.
<span class="template-documentation">{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}</span><noinclude>
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
</noinclude>