Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Codenowiki/doc: Difference between revisions

Template page
Examples: Use {{tag}}, {{tld}}, {{tlf}}, {{magic word}}, and <syntaxhighlight>
Remove red-link transclusion of Template:Semantic markup templates (B3)
 
(4 intermediate revisions by 4 users not shown)
Line 28: Line 28:
|-
|-
| {{tld|nowrap=1|code|{{tlf|shortcuts|COM:SCOPE}}}}
| {{tld|nowrap=1|code|{{tlf|shortcuts|COM:SCOPE}}}}
| {{code|{{shortcuts|COM:SCOPE}}}}
| {{code|{{shortcut|COM:SCOPE}}}}
| rowspan="2" | Template calls may work if you escape the pipe character {{code|{{!}}}}, or the opening {{code|({{((}}}}) and closing brackets ({{code|{{))}}}})
| rowspan="2" | Template calls may work if you escape the pipe character {{code|{{!}}}}, or the opening {{code|({{((}}}}) and closing brackets ({{code|{{))}}}})
|-
|-
Line 40: Line 40:
== See also ==
== See also ==
* {{tld|codef}} Same as this, but without the nowiki functionality, useful when the argument needs processing, e. g. italicizing
* {{tld|codef}} Same as this, but without the nowiki functionality, useful when the argument needs processing, e. g. italicizing
* {{tld|pre}}
* {{T|Syntaxhighlight}}


{{Semantic markup templates}}
<includeonly>{{Sandbox other||
<includeonly>{{Sandbox other||
| <!-- Categories below this line, please; interwikis at Wikidata -->
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Semantic markup templates]]
[[Category:Semantic markup templates]]
[[Category:Typing-aid templates]]
[[Category:Typing-aid templates]]
}}</includeonly>
}}</includeonly>

Latest revision as of 04:56, 11 August 2026

This has been copied from the English Wikipedia's Codenowiki template. Some features may be missing.

This template provides a speedy way to wrap template source code in ‎<code>‎<nowiki>...‎</nowiki>‎</code> markup.

Examples

Code Result Remarks
{{code|1=FOR i:=1 TO ∞ & beyond}} FOR i:=1 TO ∞ & beyond
{{code|&lt;nowiki> ... &lt;/nowiki>}} <nowiki> ... </nowiki> You can use ‎<nowiki> and ‎</nowiki> tags in the argument if you escape them with &lt;
{{code|‎<table>TEXT‎</table>}} <table>TEXT</table> Most other HTML/XML tags should work without escaping
{{code|{{shortcuts|COM:SCOPE}}}} <span id="shortcut" class="coordinates" style="display: inline; white-space:nowrap;">[[Commons:Shortcuts|Shortcut]]: [[:COM:SCOPE|COM:SCOPE]]</span> Template calls may work if you escape the pipe character |, or the opening ({{) and closing brackets (}})
{{code|{{((}}shortcuts{{!}}COM:SCOPE{{))}}}} {{shortcuts|COM:SCOPE}}

Limitations

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

See also

  • {{codef}} Same as this, but without the nowiki functionality, useful when the argument needs processing, e. g. italicizing
  • {{pre}}
  • {{Syntaxhighlight}}


Cookies help us deliver our services. By using our services, you agree to our use of cookies.