Difference between revisions of "Template:Codenowiki"
From MidrangeWiki
MrDolomite (talk | contribs) (rewrite like Template:Code) |
MrDolomite (talk | contribs) m (ok, try to make the nowiki part work only when included) |
||
Line 1: | Line 1: | ||
− | <big><code><nowiki>{{{1}}}</nowiki></code></big><noinclude> | + | <big><code><includeonly><</includeonly>nowiki>{{{1}}}</nowiki></code></big><noinclude> |
{{{{FULLPAGENAME}}/doc}} | {{{{FULLPAGENAME}}/doc}} | ||
<!-- Add cats and interwikis to the /doc subpage, not here! --> | <!-- Add cats and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |
Revision as of 05:04, 4 December 2007
nowiki>{{{1}}}</nowiki>
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}} |
</noinclude>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.