Template:Nowiki

From MozillaWiki
Jump to: navigation, search

{{{1}}}

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

Usage

{{nowiki}} encloses the entered text in <nowiki> tags, in order to prevent wiki markup to be parsed and executed along with all the other wiki text on a page. If you, for instance, want to prevent an URL to become a clickable link, or need to demonstrate how to create an internal wiki-link, {{nowiki}} is a useful template.

Limitations

  1. <nowiki> tags doesn't escape ampersand functions, such as HTML character entities. If you want the output page to show the entity code, use the character entity of the ampersand (&), &amp;, to produce the ampersand in the entity you want to demonstrate. Example: to show the entity for a non-braking space, &nbsp;, type &amp;nbsp;.
  2. Template markup, i.e. curly brackets, will be parsed, but not executed, using this template. That means the underlying code, that is applied on your text, will show in the output. For demonstrating template markup, you should instead use {{tl}}/{{tn}}, {{tlc}}, {{tlf}}, {{tlp}}, or other templates that specifically target that issue.

Parameters

There is only 1 parameter, which is unnamed and required.

Syntax

The template's syntax is

  • {{nowiki|custom text with wiki markup }}

Required parameter

1

Text with wiki markup
Usage
  • {{nowiki|1}}

Examples

Case What you type What you see Comments
Basic use You '''can''' ''demonstrate'' [[how to use]] <u>wiki</u> {{sup|markup}}}} You '''can''' ''demonstrate'' [[how to use]] <u>wiki</u> <sup>markup</sup> Notice that templates are parsed, but not executed using this template.
URL https://www.example.moz}} https://www.example.moz Without <nowiki> tags, URLs automatically become clickable, e.g. https://www.example.moz