Teamplaid:codenowiki
Coltas
This template should always be substituted (i.e., use {{subst:codenowiki}}). Any accidental transclusions will be automatically substituted by a bot. |
Ignore the code appearing above; it is not how the final result will display |
This template provides a speedy way to wrap template source code in <code>
markup. To work correctly, it must be substituted.
<nowiki>...</nowiki>
</code>
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.
Eisimpleir - Example
[deasaich]- {{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
[deasaich]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}}
Crìochan - Limitations
[deasaich]This template does not work with signatures. Typing {{subst:codenowiki|~~~~}}
results in displaying your full signature's code.
Faic cuideachd - Also see
The above documentation is transcluded from Teamplaid:codenowiki/documentation. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /documentation subpage. Subpages of this template. |