Template:Code: Difference between revisions
Template page
More actions
formatting simpler examples |
categorized |
||
| Line 1: | Line 1: | ||
< | <onlyinclude><code>{{nowiki|{{{1}}}}}</code></onlyinclude> | ||
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. | 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. | ||
| Line 33: | Line 33: | ||
* {{tl|codef}} Same as this, but without the nowiki functionality, useful when the argument needs processing, e. g. italicizing | * {{tl|codef}} Same as this, but without the nowiki functionality, useful when the argument needs processing, e. g. italicizing | ||
[[category:helper templates]] | |||
Revision as of 04:45, 12 January 2010
{{{1}}}
Copied from Wikipedia, can be used in place of <code><nowiki> ... </nowiki></code> constructs.
Examples
| Code | Result | Remarks |
|---|---|---|
{{code|FOR i:=1 TO ∞ & beyond}}
|
FOR i:=1 TO ∞ & beyond
|
|
{{code|<nowiki> ... </nowiki>}}
|
<nowiki> ... </nowiki>
|
You can use <nowiki> and </nowiki> tags in the argument if you escape them with <
|
{{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 |
|
{{code|{{shortcuts{{!}}COM:SCOPE}}}}
|
{{shortcuts|COM:SCOPE}}
|
See also
- {{Codef}} Same as this, but without the nowiki functionality, useful when the argument needs processing, e. g. italicizing