Help:Parser extension tags/nowiki

From Disney•Pixar CARS Wiki
Jump to navigation Jump to search
<nowiki>
{{nowiki}}
Help

Wrap any block of text to print the literal, plain text interpretation, rather than as wikitext markup. Ideal for escaping characters with special meaning to the parser, like {} curly brackets, | pipes, # number sign, and everything beyond.

<nowiki> wrappers can't be nested in templates to escape the raw parameter markup; however, {{#tag:}} is helpful for handling the result of said markup. The former parameter values will always need to be individually wrapped as they are passed: {{template|param= <nowiki> {{function}}</nowiki> }}

To achieve the previous example, it is necessary to substitute at least one < or > in each of the inner start and end tags with their HTML-escaped character counterpart (&lt; or &gt;). Those contain the following: <nowiki>&amp;</nowiki>lt;. Those... you know what, just look inside. The trick is basically just to prevent any one part from being on the same escape "level", even if they are already broken up.

Returns
Escaped contents, basically "plain text".
Example
{{code|Insert [[Wikitext]] here}} --> {{code|Insert [[Wikitext]] here}}
Comparison here -->
See also
<pre>, the conventional HTML method - close, but not quite as "outside the box".