Difference between revisions of "Template:Make code/doc"

From blackwiki
Jump to navigation Jump to search
imported>Petr Matas
(Created page with '{{Documentation subpage}} This template produces wikicode, which is not transcluded or substituted any further. This is equivalent to replacing the {{code|{{((}}...')
 
imported>Petr Matas
Line 14: Line 14:
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||
 
[[Category:Wikipedia character-substitution templates]]
 
[[Category:Wikipedia character-substitution templates]]
 +
[[Category:Documentation assistance templates]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 10:46, 14 July 2016

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|<<Period start!Cretaceous>>}}Template:MultiReplace