Template:Codef: Difference between revisions
Template page
More actions
cat |
m design |
||
| Line 1: | Line 1: | ||
<code>{{{1}}}</code><noinclude> | <code>{{{1}}}</code><noinclude> | ||
{{doc-inline}} | |||
[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. | ||
| Line 16: | Line 16: | ||
== 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. | ||
{{doc-end}} | |||
[[Category:Template namespace templates|{{PAGENAME}}]] | [[Category:Template namespace templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> | ||
Revision as of 21:37, 30 January 2024
{{{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 <
{{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}}
Template calls without parameter won't work.
See also
- {{Code}} Same as this, but adds nowiki functionality, may save escaping.