Template:Make code/doc

From English Wikipedia @ Freddythechick

This template produces wikicode, which is not transcluded or substituted any further. This is equivalent to replacing the <syntaxhighlight lang="text" class="" style="" inline="1">{{</syntaxhighlight>, <syntaxhighlight lang="text" class="" style="" inline="1">|</syntaxhighlight> and <syntaxhighlight lang="text" class="" style="" inline="1">}}</syntaxhighlight> tokens with {{((}}, {{!}} and {{))}} respectively, which may be tedious. It is meant to replace the <nowiki> tag, which cannot be used as an input to templates like {{Automarkup}}.

Usage

{{Make code|wikitext with {, | and } replaced with <, ! and > respectively}}
Optional parameters
  • { (default value: <syntaxhighlight lang="text" class="" style="" inline="1"><</syntaxhighlight>): String to be replaced with {.
  • ! (default value: <syntaxhighlight lang="text" class="" style="" inline="1">!</syntaxhighlight>): String to be replaced with |.
  • } (default value: <syntaxhighlight lang="text" class="" style="" inline="1">></syntaxhighlight>): String to be replaced with }.

Example

  • <syntaxhighlight lang="wikitext" inline>{{As of|2015}}</syntaxhighlight> → {{As of|2015}}
  • <syntaxhighlight lang="wikitext" inline>x{x|x}x</syntaxhighlight> → x{x|x}x

See also