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:Codef: Difference between revisions

Template page
sort
cat
Line 1: Line 1:
<onlyinclude><code>{{{1}}}</code></onlyinclude>
<code>{{{1}}}</code><noinclude>


[http://commons.wikimedia.org/w/index.php?title=Template:Code&oldid=34010504 Copied from] {{tl|Code}} and modified, can be used in place of {{code|<code> ... </code>}} tags.
[http://commons.wikimedia.org/w/index.php?title=Template:Code&oldid=34010504 Copied from] {{tl|Code}} and modified, can be used in place of {{code|<code> ... </code>}} tags.


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


You can use HTML/XML tags in the argument if you escape them with {{codef|&amp;lt;}}
You can use HTML/XML tags in the argument if you escape them with {{codef|&amp;lt;}}
* {{codef|{{codef{{!}}1=&lt;span style="font-weight:bold">TEXT&lt;/span>}}}} yields {{codef|1=<span style="font-weight:bold">TEXT</span>}}
* {{codef|{{codef{{!}}1=&lt;span style="font-weight:bold">TEXT&lt;/span>}}}} yields {{codef|1=<span style="font-weight:bold">TEXT</span>}}
* {{codef|{{codef{{!}}1=&amp;lt;span style="font-weight:bold">TEXT&amp;lt;/span>}}}} yields {{codef|1=&lt;span style="font-weight:bold">TEXT&lt;/span>}}
* {{codef|{{codef{{!}}1=&amp;lt;span style="font-weight:bold">TEXT&amp;lt;/span>}}}} yields {{codef|1=&lt;span style="font-weight:bold">TEXT&lt;/span>}}


Template calls may work if you escape the pipe character {{codef|{{!}}}}  
Template calls may work if you escape the pipe character {{codef|{{!}}}}  
Line 15: Line 13:
* {{codef|{{codef{{!}}{{shortcuts{{((}}!{{))}}COM:SCOPE}}}}}} yields {{codef|{{shortcuts{{!}}COM:SCOPE}}}}
* {{codef|{{codef{{!}}{{shortcuts{{((}}!{{))}}COM:SCOPE}}}}}} yields {{codef|{{shortcuts{{!}}COM:SCOPE}}}}
Template calls without parameter won't work.
Template calls without parameter won't work.


== See also ==
== See also ==
* {{tl|code}} Same as this, but adds nowiki functionality, may save escaping
* {{tl|code}} Same as this, but adds nowiki functionality, may save escaping.


[[Category:Helper templates|{{PAGENAME}}]]
[[Category:Template namespace templates|{{PAGENAME}}]]
</noinclude>

Revision as of 05:56, 30 July 2010

{{{1}}}

Copied from {{Code}} and modified, can be used in place of <code> ... </code> tags.

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

You can use HTML/XML tags in the argument if you escape them with &lt;

  • {{codef|1=<span style="font-weight:bold">TEXT</span>}} yields TEXT
  • {{codef|1=&lt;span style="font-weight:bold">TEXT&lt;/span>}} yields <span style="font-weight:bold">TEXT</span>

Template calls may work if you escape the pipe character |

  • {{codef|{{shortcuts|COM:SCOPE}}}} yields Template:Shortcuts
  • {{codef|{{shortcuts{{!}}COM:SCOPE}}}} yields {{shortcuts|COM:SCOPE}}

Template calls without parameter won't work.

See also

  • {{Code}} Same as this, but adds nowiki functionality, may save escaping.
Contents
Cookies help us deliver our services. By using our services, you agree to our use of cookies.