Template:Codenowiki/doc
Template page
More actions
This template provides a speedy way to wrap template source code in <code> markup. To work correctly, it must be substituted.
<nowiki>...</nowiki></code>
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:
Here be code
Limitations
This template does not work with signatures. Typing {{subst:codenowiki|~~~~}} results in displaying your full signature's code.
See also
Template:Semantic markup templates