Shows a demonstration of Wikitext code and it's result.
The full documentation of this module can be found on Module:Demo in Wikipedia. In addition, unlike Wikipedia's version, this module also contains a table parameter that can automatically format the output into a table as seen below.
Installation[]
Usage[]
This module does not support direct invocation, it has to be used via a template - see Template:Demo.
{{demo|<nowiki>wikitext</nowiki>|br=<separator>|table=1}}
Note: The passed code has to be wrapped in <nowiki>...</nowiki> tags.
Examples[]
{{demo|<nowiki>'''Bold Text'''</nowiki>}} returns
'''Bold Text'''
Bold Text
{{demo|<nowiki>{{#expr:5 * 7}}</nowiki>}} returns
{{#expr:5 * 7}}
35
{{demo|<nowiki>{{#expr:5 * 7}}</nowiki>|table=1}} returns
| Code | Output |
|---|---|
| {{#expr:5 * 7}} | 35 |
See also[]
Template:Demo — a Wikitext template wrapping the call to this module.