Template:Code

提供: VANGUARD FLIGHT wiki
2014年3月30日 (日) 23:18時点におけるTaku.oshino (トーク | 投稿記録)による版 (1版)

(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先: 案内検索

{{{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|&lt;nowiki> ... &lt;/nowiki>}} Template:Codef 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 |
{{code|{{shortcuts[[:Template:((]]![[:Template:))]]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