|
|
| (6 intermediate revisions by 3 users not shown) |
| Line 1: |
Line 1: |
| <includeonly><code>{{nowiki|{{{1}}}}}</code></includeonly><noinclude>
| | #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><nowiki> ... </nowiki></code>}} constructs.
| |
| | |
| {{code|1={{code{{!}}FOR i:=1 TO ∞ & beyond}}}} yields {{code|1=FOR i:=1 TO ∞ & beyond}}
| |
| | |
| | |
| You can use {{code|<nowiki>}} and {{code|</nowiki>}} tags in the argument if you escape them with {{code|&lt;}}
| |
| * {{code|{{code{{!}}&lt;nowiki> ... &lt;/nowiki>}}}} yields <code><nowiki> ... </nowiki></code>
| |
| | |
| | |
| Most other HTML/XML tags should work when you explicitly assign the parameter
| |
| | |
| * {{code|{{code{{!}}<div style="float left; width:2em; height:2em">TEXT</div>}}
| |
| }} yields {{code|<div style="float left; width:2em; height:2em">TEXT</div>}}
| |
| * {{code|{{code{{!}}1=<div style="float left; width:2em; height:2em">TEXT</div>}}
| |
| }} yields {{code|1=<div style="float left; width:2em; height:2em">TEXT</div>}}
| |
| | |
| | |
| Template calls may work if you escape the pipe character {{code|{{!}}}}
| |
| * {{code|{{code{{!}}{{shortcuts{{!}}COM:SCOPE}}}}}} yields {{code|{{shortcuts|COM:SCOPE}}}}
| |
| * {{code|{{code{{!}}{{shortcuts{{((}}!{{))}}COM:SCOPE}}}}}} yields {{code|{{shortcuts{{!}}COM:SCOPE}}}}
| |
| | |
| </noinclude>
| |