Difference between revisions of "Template:Codenowiki/doc"
From MidrangeWiki
MrDolomite (talk | contribs) m (creating like Template:Code/doc) |
MrDolomite (talk | contribs) m |
||
Line 3: | Line 3: | ||
=Documentation= | =Documentation= | ||
<big>{{tl|codenowiki}}</big> is a shorthand notation to enclose the single parameter text inside both the <code><code></code> and <code><nowiki><nowiki></nowiki></code> tags. It is most useful when making a reference to a tag itself, such as code or nowiki. | <big>{{tl|codenowiki}}</big> is a shorthand notation to enclose the single parameter text inside both the <code><code></code> and <code><nowiki><nowiki></nowiki></code> tags. It is most useful when making a reference to a tag itself, such as code or nowiki. | ||
+ | |||
+ | '''This template must be subst:''' | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
− | {{ codenowiki | string to code-icize }} | + | {{ subst:codenowiki | string to code-icize }} |
</pre> | </pre> | ||
Line 14: | Line 16: | ||
! Result | ! Result | ||
|- | |- | ||
− | | <pre>{{codenowiki|this is a test of the quick brown fox}}</pre> | + | | <pre>{{subst:codenowiki|this is a test of <code> the quick brown fox}}</pre> |
− | | | + | | <big><code></noinclude><nowiki>this is a test of the <code> quick brown fox</nowiki> |
|} | |} |
Latest revision as of 05:19, 4 December 2007
Documentation
{{codenowiki}} is a shorthand notation to enclose the single parameter text inside both the <code>
and <nowiki>
tags. It is most useful when making a reference to a tag itself, such as code or nowiki.
This template must be subst:
Usage
{{ subst:codenowiki | string to code-icize }}
Examples
Codenowiki | Result |
---|---|
{{subst:codenowiki|this is a test of <code> the quick brown fox}} |
this is a test of the <code> quick brown fox
|
- This template is a self-reference and so is part of the MidrangeWiki project rather than the content itself.