Template:Suppress TemplateStyles/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

This template removes TemplateStyles strip markers from the passed wikitext.

The intention is to be used in testcase pages. The live and sandbox stylesheets would be loaded like this:

<templatestyles src="Template:Example/styles.css" wrapper="div.live" />
<templatestyles src="Template:Example/sandbox/styles.css" wrapper="div.sandbox" />

and then the test cases would be done like this:

<div class="live">{{Suppress TemplateStyles|{{Example}}}}</div>
<div class="sandbox">{{Suppress TemplateStyles|{{Example/sandbox}}}}</div>

This will prevent the live styles from applying to the sandbox template's output and vice versa.

{{Suppress TemplateStyles|''input text''}}

Examples

[edit source]
Code Output
{{reflist}}
␡'"`UNIQ--templatestyles-0000000B-QINU`"'␡<div>
␡'"`UNIQ--references-0000000D-QINU`"'␡</div>
{{Suppress TemplateStyles|{{reflist}}}}
<div>
␡'"`UNIQ--references-00000012-QINU`"'␡</div>