Template:Codef: Difference between revisions
Template page
More actions
it begins... |
simplified layout, simplified examples |
||
| Line 6: | Line 6: | ||
You can use {{ | You can use HTML/XML tags in the argument if you escape them with {{codef|<}} | ||
* {{ | * {{codef|{{codef{{!}}1=<span style="font-weight:bold">TEXT</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>}} | |||
Template calls may work if you escape the pipe character {{codef|{{!}}}} | |||
* {{codef|{{codef{{!}}{{shortcuts{{!}}COM:SCOPE}}}}}} yields {{codef|{{shortcuts|COM:SCOPE}}}} | |||
* {{codef|{{codef{{!}}{{shortcuts{{((}}!{{))}}COM:SCOPE}}}}}} yields {{codef|{{shortcuts{{!}}COM:SCOPE}}}} | |||
== See also == | == See also == | ||
* {{tl| | * {{tl|code}} Same as this, but adds nowiki functionality, may save escaping | ||
</noinclude> | </noinclude> | ||
Revision as of 22:16, 9 January 2010
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 <
{{codef|1=<span style="font-weight:bold">TEXT</span>}}yieldsTEXT{{codef|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 |
{{codef|{{shortcuts|COM:SCOPE}}}}yieldsTemplate:Shortcuts{{codef|{{shortcuts{{!}}COM:SCOPE}}}}yields{{shortcuts|COM:SCOPE}}
See also
- {{Code}} Same as this, but adds nowiki functionality, may save escaping