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
Merge documentation from {{code}}
Examples: Use {{tag}}, {{tld}}, {{tlf}}, {{magic word}}, and <syntaxhighlight>
Line 15: Line 15:
! Remarks
! Remarks
|-
|-
| {{code|1={{code{{!}}FOR i:=1 TO &#x221e; & beyond}}}}
| {{tld|nowrap=1|code|2=1=FOR i:=1 TO &#x221e; & beyond}}
| {{code|1=FOR i:=1 TO &#x221e; & beyond}}
| {{code|1=FOR i:=1 TO &#x221e; & beyond}}
|
|
|-
|-
| {{code|{{code{{!}}&amp;lt;nowiki> ... &amp;lt;/nowiki>}}}}
| {{tld|nowrap=1|code|&amp;lt;nowiki> ... &amp;lt;/nowiki>}}
| {{codef|&lt;nowiki> ... &lt;/nowiki>}}
| {{codef|&lt;nowiki> ... &lt;/nowiki>}}
| You can use {{code|&lt;nowiki>}} and {{code|&lt;/nowiki>}} tags in the argument if you escape them with {{code|&amp;lt;}}
| You can use {{tag|nowiki|o}} and {{tag|nowiki|c}} tags in the argument if you escape them with <syntaxhighlight inline lang="html">&lt;</syntaxhighlight>
|-
|-
| {{code|{{code{{!}}<table>TEXT</table>}}}}
| {{tld|nowrap=1|code|{{#tag:span|{{tag|plain=1|table|content=TEXT}}|class=mw-highlight}}}}
| {{code|<table>TEXT</table>}}
| {{code|<table>TEXT</table>}}
| Most other HTML/XML tags should work without escaping
| Most other HTML/XML tags should work without escaping
|-
|-
| {{code|{{code{{!}}{{shortcuts{{!}}COM:SCOPE}}}}}}
| {{tld|nowrap=1|code|{{tlf|shortcuts|COM:SCOPE}}}}
| {{code|{{shortcuts|COM:SCOPE}}}}
| {{code|{{shortcuts|COM:SCOPE}}}}
| rowspan="2" | Template calls may work if you escape the pipe character {{code|{{!}}}}  
| rowspan="2" | Template calls may work if you escape the pipe character {{code|{{!}}}}, or the opening {{code|({{((}}}}) and closing brackets ({{code|{{))}}}})
|-
|-
| {{code|{{code{{!}}{{shortcuts{{((}}!{{))}}COM:SCOPE}}}}}}
| {{tld|nowrap=1|code|{{tld|((}}shortcuts{{magic word|!}}COM:SCOPE{{tld|))}}}}
| {{code|{{shortcuts{{!}}COM:SCOPE}}}}
| {{code|{{((}}shortcuts{{!}}COM:SCOPE{{))}}}}
|}
|}



Revision as of 02:02, 21 July 2021

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}}}} [[:Template:Shortcuts]] 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

Template:Semantic markup templates

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