Template:Make code

From Template Wiki, a repository of MediaWiki templates.
Jump to navigation Jump to search

{{{1}}}

Template documentation[view] [edit] [history] [purge]

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

{{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

  • {{Make code|<<As of!2015>>}} → {{As of|2015}}
  • {{Make code|xaxbxcx|{=a|!=b|}=c}} → x{x|x}x
Wikipedia logo This template uses material from the Wikipedia template Template:Make code, which is released under the Creative Commons Attribution-ShareAlike 3.0 Unported License (view authors).