Template:Code demo/doc

From NPOWiki
Revision as of 10:12, 3 July 2020 by Bobogoobo (talk | contribs) (create)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This page contains the documentation for Template:Code demo. It includes information about the template, such as usage and categories, and is not displayed when using the template itself.

This is a shortcut for wrapping some wikitext in code and nowiki tags. By default, it also shows the result of the wikitext.

Unfortunately, it cannot be used with template code, because it is expanded before it can be nowiki'd.

Parameters

  • First unnamed parameter: the wikitext to display.
  • Second unnamed parameter: if this is not defined, the template will show the actual output of the wikitext.

Examples

  • {{code demo|[[Lord of Darkness|LoD]]}} produces the following: [[Lord of Darkness|LoD]] produces: LoD
  • {{code demo|''[[some link]]''|x}} produces: ''[[some link]]''