Board Thread:Support Requests - Getting Technical/@comment-45820645-20200707203649/@comment-168424-20200708172323

Readible wrote: Fandyllic wrote: You don't need to use &lt;br&gt; before and after the &lt;div&gt; and there is a linebreak in your stub template because you foolishly used &lt;includeonly&gt; and &lt;noinclude&gt; which doesn't prevent linebreaks from getting into your template. I see, thanks. Sorry, could you elaborate on how I can fix this? I'm not the best with code stuff :/ And is the br a part of the issue? Because if not, I'd prefer it to stay so the templates aren't so close to page text

I use &lt;onlyinclude&gt; around the exact part of the template code I want to transclude and I don't use &lt;noinclude&gt;. Protecting your template makes it hard to experiment without making copies which makes troubleshooting more difficult.

FYI, &lt;includeonly&gt; doesn't prevent stuff outside these tags from getting transcluded, so if you have linebreaks after the tag, they will get transcluded... this is also true for linebreaks after or before &lt;noinclude&gt; tags.