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:Code: Difference between revisions

Template page
categorized
Redirected page to {{codenowiki}}
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<onlyinclude><code>{{nowiki|{{{1}}}}}</code></onlyinclude>
#REDIRECT [[Template:codenowiki]]
 
Copied from [http://en.wikipedia.org/w/index.php?title=Template:Code&oldid=290943733 Wikipedia], can be used in place of {{code|<code>&lt;nowiki> ... &lt;/nowiki></code>}} constructs.
 
== Examples ==
{|class="wikitable"
!Code
!Result
!Remarks
|-
|{{code|1={{code{{!}}FOR i:=1 TO &#x221e; & beyond}}}}
|{{code|1=FOR i:=1 TO &#x221e; & beyond}}
|
|-
|{{code|{{code{{!}}&amp;lt;nowiki> ... &amp;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;}}
|-
|{{code|{{code{{!}}<table>TEXT</table>}}}}
|{{code|<table>TEXT</table>}}
|Most other HTML/XML tags should work without escaping
|-
|{{code|{{code{{!}}{{shortcuts{{!}}COM:SCOPE}}}}}}
|{{code|{{shortcuts|COM:SCOPE}}}}
|rowspan="2" valign="top"|Template calls may work if you escape the pipe character {{code|{{!}}}}
|-
|{{code|{{code{{!}}{{shortcuts{{((}}!{{))}}COM:SCOPE}}}}}}
|{{code|{{shortcuts{{!}}COM:SCOPE}}}}
|
|}
 
== See also ==
* {{tl|codef}} Same as this, but without the nowiki functionality, useful when the argument needs processing, e. g. italicizing
 
[[category:helper templates]]

Latest revision as of 02:03, 21 July 2021

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