Jump to content

Template:Nowiki/doc: Difference between revisions

From Wiki - Scioly.org
Added brief doc
 
Pi-Bot (talk | contribs)
m Removing the TemplateDocStart template from documentation for formatting purposes.
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{TemplateDocStart}}
 
The '''Nowiki template''' is used to insert <code><nowiki><nowiki></nowiki></code> and <code><nowiki></nowiki></nowiki></code> tags around a certain piece of content.
The '''Nowiki template''' is used to insert <code><nowiki><nowiki></nowiki></code> and <code><nowiki></nowiki></nowiki></code> tags around a certain piece of content.


Line 6: Line 6:


<code><nowiki>{{<includeonly>subst:</includeonly>Nowiki|content}}</nowiki></code> produces <code><nowiki><nowiki></nowiki> content <nowiki></nowiki></nowiki></code>.
<code><nowiki>{{<includeonly>subst:</includeonly>Nowiki|content}}</nowiki></code> produces <code><nowiki><nowiki></nowiki> content <nowiki></nowiki></nowiki></code>.
<noinclude>
[[Category:Templates]]
[[Category:Organization Templates]]
</noinclude>

Latest revision as of 00:37, 6 August 2020

The Nowiki template is used to insert <nowiki> and </nowiki> tags around a certain piece of content.

Usage

Unless the template is already being substituted in an area with <includeonly> tags, then the <includeonly> and </includeonly> tags should surround the subst: to produce the desired effect.

{{<includeonly>subst:</includeonly>Nowiki|content}} produces <nowiki> content </nowiki>.