This is a documentation subpage for Template:Demo. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
This template simply places template code (or any other code) in a <syntaxhighlight lang="wikitext">...</syntaxhighlight>
tag and then places the rendering of that code below.
{{demo|<nowiki>{{your template}}</nowiki>}}
IMPORTANT: You must wrap <nowiki>...</nowiki>
tags around the source to be demonstrated (or use {{escape}}, which has a demo-escape example), like so:
{{demo|<nowiki>[template source]</nowiki>}}
Failure to wrap <nowiki>...</nowiki>
tags around the source may cause the source to be executed before it reaches this template.
{{demo|{{fail}}}}
produces:
<big style="color:#DF0A24; font-size:1.4em;">✗</big> '''Fail'''
✗ Fail