Jump to content

Template:Make code/doc

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by FeRDNYC (talk | contribs) at 02:14, 4 March 2024 (Example: Switch from code+nowiki to syntaxhighlight, add some readability spaces into second example). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

This template produces wikicode, which is not transcluded or substituted any further. This is equivalent to replacing the {{, | and }} 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

[edit]
{{Make code|wikitext with {, | and } replaced with <, ! and > respectively}}
Optional parameters
  • { (default value: <): String to be replaced with {.
  • ! (default value: !): String to be replaced with |.
  • } (default value: >): String to be replaced with }.

Example

[edit]
  • {{Make code|<<As of!2015>>}} → {{As of|2015}}
  • {{Make code|xaxbxcx| {=a | !=b | }=c }} → x{x|x}x

See also

[edit]