Changes
Replace <tt> tag with <code>, since that's what we're marking up – and it looks better that way anyway
<code><nowiki>{{</nowiki>{{#if:{{{1|}}}|[[{{#if:{{NAMESPACE:{{{1|}}}}}|{{{1|}}}|Template:{{{1|}}}}}{{!}}{{{1|}}}{{#if:{{{2|}}}|{{!}}{{{2|}}}{{#if:{{{3|}}}|{{!}}{{{3|}}}{{#if:{{{4|}}}|{{!}}{{{4|}}}{{#if:{{{5|}}}|{{!}}{{{5|}}}{{#if:{{{6|}}}|{{!}}{{{6|}}}{{#if:{{{7|}}}|{{!}}{{{7|}}}{{#if:{{{8|}}}|{{!}}{{{8|}}}}}}}}}}}}}}}}}]]|{{PAGENAME}}}}<nowiki>}}</nowiki></code><noinclude>
{{documentation}}
</noinclude>
{{documentation}}
</noinclude>