Шаблон:Codenowiki
{{subst:dtag|nowiki|{{{1}}}}}
![]() | Ignore the code appearing above; it is not how the final result will display |
![]() | Овај шаблон употребљава замршене функције викисинтаксе.
Саветује Вам се да се упознате са поставкама за шаблон и парсер функцијама пре уређивања. Ако Ваша измена проузрокује неочекиване проблеме, молимо да је вратите што је пре могуће, зато што се овај шаблон вероватно користи на великом броју страница. Имајте на уму да можете да проводите експерименте и да требате да тестирате сваку евентуалну измену, или на страници Песак за шаблоне или на сопственој корисничкој подстраници. |
![]() | Овај шаблон би увек требало да буде супституисан, тј. треба користити {{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.