Template:Demo/doc

< Template:Demo
Revision as of 20:56, 26 September 2024 by Tom (talk | contribs) (copy from https://dev.fandom.com/wiki/Template:Demo/doc)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Demo is a template that demonstrates how a piece of wikitext renders on a page. It is a copy of Wikpedia's demo template.

Usage

The template takes one unnamed argument: a wikitext wrapped in nowiki tags. It will display the entered wikitext in a pre block and the rendered output below it.

For example, the code

{{demo|'''Bold Text'''}}

creates the following demo:

Lua error in package.lua at line 80: module 'Dev:Arguments' not found.

TemplateData

Demonstrates how a piece of wikitext renders on a page.

Template parameters

ParameterDescriptionTypeStatus
Content1

The wikitext to use. Must be wrapped in nowiki tags.

Contentrequired

See also