|
|
(2 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| <code>{{nowiki|{{{1}}}}}</code><noinclude> | | <code {{#if:{{{class|}}}|class="{{{class}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}}>{{#tag:syntaxhighlight|{{{code|{{{1}}}}}}|lang="{{{lang|{{{2|text}}}}}}"|enclose="none"}}</code><noinclude> |
| | | {{documentation}} |
| Copied from [http://en.wikipedia.org/w/index.php?title=Template:Code&oldid=290943733 Wikipedia], can be used in place of {{code|<code><nowiki> ... </nowiki></code>}} constructs.
| |
| | |
| == Examples ==
| |
| {|class="wikitable"
| |
| !Code
| |
| !Result
| |
| !Remarks
| |
| |-
| |
| |{{code|1={{code{{!}}FOR i:=1 TO ∞ & beyond}}}}
| |
| |{{code|1=FOR i:=1 TO ∞ & beyond}}
| |
| |
| |
| |-
| |
| |{{code|{{code{{!}}&lt;nowiki> ... &lt;/nowiki>}}}}
| |
| |{{codef|<nowiki> ... </nowiki>}} | |
| |You can use {{code|<nowiki>}} and {{code|</nowiki>}} tags in the argument if you escape them with {{code|&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:Template namespace templates|{{PAGENAME}}]]
| |
| </noinclude> | | </noinclude> |