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
added See also section, added {{codef}} to See also
update documentation
Line 12: Line 12:
Most other HTML/XML tags should work when you explicitly assign the parameter
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>}}
* {{code|{{code{{!}}<span style="font-weight:bold">TEXT</span>}}
}} yields {{code|<div style="float left; width:2em; height:2em">TEXT</div>}}
}} yields {{code|<span style="font-weight:bold">TEXT</span>}}
* {{code|{{code{{!}}1=<div style="float left; width:2em; height:2em">TEXT</div>}}
* {{code|{{code{{!}}1=<span style="font-weight:bold">TEXT</span>}}
}} yields {{code|1=<div style="float left; width:2em; height:2em">TEXT</div>}}
}} yields {{code|1=<span style="font-weight:bold">TEXT</span>}}




Line 23: Line 23:


== See also ==
== See also ==
* {{tl|codef}} Same as this, but without the nowiki functionality, useful when the code has extra formatting
* {{tl|codef}} Same as this, but without the nowiki functionality, useful when the argument needs processing, e. g. italicizing


</noinclude>
</noinclude>

Revision as of 22:18, 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|<span style="font-weight:bold">TEXT</span>}} yields {{{1}}}
  • {{code|1=<span style="font-weight:bold">TEXT</span>}} yields <span style="font-weight:bold">TEXT</span>


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}}

See also

  • {{Codef}} Same as this, but without the nowiki functionality, useful when the argument needs processing, e. g. italicizing


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