Template:Suppress TemplateStyles
Jump to navigation
Jump to search
| This template uses Lua: |
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.
Usage
[edit source]{{Suppress TemplateStyles|''input text''}}
Examples
[edit source]| Code | Output |
|---|---|
{{reflist}}
|
␡'"`UNIQ--templatestyles-00000009-QINU`"'␡<div> ␡'"`UNIQ--references-0000000B-QINU`"'␡</div> |
{{Suppress TemplateStyles|{{reflist}}}}
|
<div> ␡'"`UNIQ--references-00000010-QINU`"'␡</div> |
| File:Wiki letter w.svg | This template has not been added to any categories. Please help out by adding categories to it so that it can be listed with similar templates. |