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
ok, that wraps it
update documentation
Line 1: Line 1:
<includeonly><code>{{nowiki|{{{1}}}}}</code></includeonly><noinclude>
<includeonly><code>{{nowiki|{{{1}}}}}</code></includeonly><noinclude>


Copied from [http://en.wikipedia.org/w/index.php?title=Template:Code&oldid=290943733 Wikipedia], can be used to in place of {{code|<code>&lt;nowiki> ... &lt;/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>&lt;nowiki> ... &lt;/nowiki></code>}} constructs.
 
{{code|1={{code{{!}}FOR i:=1 TO &#x221e; & beyond}}}} yields {{code|1=FOR i:=1 TO &#x221e; & beyond}}
 
 
You can use {{code|&lt;nowiki>}} and {{code|&lt;/nowiki>}} tags in the argument if you escape them with {{code|&amp;lt;}}
* {{code|{{code{{!}}&amp;lt;nowiki> ... &amp;lt;/nowiki>}}}} yields <code>&lt;nowiki> ... &lt;/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>
</noinclude>

Revision as of 21:38, 9 January 2010


Copied from Wikipedia, can be used in place of <code><nowiki> ... </nowiki></code> constructs.

{{code|FOR i:=1 TO ∞ & beyond}} yields FOR i:=1 TO ∞ & beyond


You can use <nowiki> and </nowiki> tags in the argument if you escape them with &lt;

  • {{code|&lt;nowiki> ... &lt;/nowiki>}} yields <nowiki> ... </nowiki>


Most other HTML/XML tags should work when you explicitly assign the parameter

  • {{code|<div style="float left; width:2em; height:2em">TEXT</div>}} yields {{{1}}}
  • {{code|1=<div style="float left; width:2em; height:2em">TEXT</div>}} yields <div style="float left; width:2em; height:2em">TEXT</div>


Template calls may work if you escape the pipe character |

  • {{code|{{shortcuts|COM:SCOPE}}}} yields [[:Template:Shortcuts]]
  • {{code|{{shortcuts{{!}}COM:SCOPE}}}} yields {{shortcuts|COM:SCOPE}}


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