Шаблон:Codenowiki

{{subst:dtag|nowiki|{{{1}}}}}

Документација шаблона[прикажи] [уреди] [историја] [освежи]

This template provides a speedy way to wrap template source code in <code><nowiki>...</nowiki></code> markup. To work correctly, it must be substituted.

Recommended use is:

{{subst:codenowiki |1=(code)}}

i.e. so that anything before an equals (=) sign in the code isn't interpreted as a parameter name.

ExampleУреди

{{subst:codenowiki |1=Here be code}} ... outputs: ...  Here be code

The code produced by the template for this output is:

<code><nowiki>Here be code</nowiki></code>

Embedded substitutionУреди

If the template is transcluded rather than substituted on a page, its output can be corrected by re-saving the page, triggering the substitution embedded within it:

{{subst:Nowiki|Here be code}}

LimitationsУреди

This template does not work with signatures. Typing {{subst:codenowiki|~~~~}} results in displaying your full signature's code.

See alsoУреди