Difference between revisions of "Template:Codenowiki"

From MidrangeWiki
Jump to: navigation, search
m (change > to %3E)
(aha, get a bigger hammer from http://en.wikipedia.org/wiki/Template:Nowiki)
 
Line 1: Line 1:
<big><code><includeonly>%3C</includeonly>nowiki<includeonly>%3E</includeonly>{{{1}}}<includeonly>%3C</includeonly>/nowiki<includeonly>%3E</includeonly></code></big><noinclude>
+
<big><code></noinclude><now<noinclude>i</noinclude><includeonly>i</includeonly>ki>{{{1}}}</now<noinclude>i</noinclude><includeonly>i</includeonly>ki><noinclude></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>

Latest revision as of 05:16, 4 December 2007

<nowiki>{{{1}}}</nowiki>


The template documentation below is transcluded from Template:Codenowiki/doc [edit]

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