Changes
use {{#if}} to trim any leading or trailing spaces from unnamed parameter 2
<includeonly><nowiki>{{#invoke:</nowiki>[[Module:{{#if:1|{{{1}}}}}|{{#if:1|{{{1}}}}}]]{{#if: {{{2|}}} | <nowiki>|</nowiki>{{#if:1|{{{2}}}}} }}<nowiki>}}</nowiki></includeonly><noinclude>
{{Documentation}}
</noinclude>
{{Documentation}}
</noinclude>