Reputation: 7110
MediaWiki creates <pre>
tags after parse {{Template}} with html code.
How to prevent this tags?
Example template:
<span style="color:#FF0000">{{{1}}}</span>
In wiki html page looks like:
<pre>
<span style="color:#FF0000">Some Text</span>
</pre>
In basic templates like:
My name is {{{1}}}
no problem with <pre>
tags.
PS <pre>
tag creates unwanted borders around elements in MediaWiki.
Upvotes: 0
Views: 820
Reputation: 2572
Bergi's solution: avoid to indent some markup (either in the template or outside at the inclusion) with one (or more) spaces.
Upvotes: 1