Global Lua Modules/Demo

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.
== ==
== ==
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.
== ==
{{demo|<nowiki>Bold Text</nowiki>}} returns
----
{{demo|<nowiki>{{#expr:5 * 7}}</nowiki>}} returns
----
{{demo|<nowiki>{{#expr:5 * 7}}</nowiki>|table=1}} returns
== See also ==
Template:Demo — a Wikitext template wrapping the call to this module.