Template:Suppress TemplateStyles/doc
Jump to navigation
Jump to search
| This is a documentation subpage for Template:Suppress TemplateStyles. It may contain usage information, categories and other content that is not part of the original template page. |
| 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-0000000B-QINU`"'␡<div> ␡'"`UNIQ--references-0000000D-QINU`"'␡</div> |
{{Suppress TemplateStyles|{{reflist}}}}
|
<div> ␡'"`UNIQ--references-00000012-QINU`"'␡</div> |