Template:Code demo

From NPOWiki
Jump to navigation Jump to search

{{{1}}} produces: {{{1}}}

Documentation [edit]

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]]''

The above documentation is transcluded from Template:Code demo/doc.