ढाँचा:Codenowiki
{{subst:dtag|nowiki|{{{1}}}}}
Ignore the code appearing above; it is not how the final result will display |
This ढाँचा employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
This template should always be substituted (i.e., use {{subst:Codenowiki}}). |
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.
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.