Template:Codef: Difference between revisions
Template page
More actions
No edit summary |
Replaced deprecated {{shortcuts|...}} with {{shortcut|...}} (B1) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 10: | Line 10: | ||
Template calls may work if you escape the pipe character {{codef|{{!}}}} | Template calls may work if you escape the pipe character {{codef|{{!}}}} | ||
* {{codef|{{codef{{!}}{{shortcuts{{!}}COM:SCOPE}}}}}} yields {{codef|{{ | * {{codef|{{codef{{!}}{{shortcuts{{!}}COM:SCOPE}}}}}} yields {{codef|{{shortcut|COM:SCOPE}}}} | ||
* {{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. | ||
| 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. | ||
* {{T|Syntaxhighlight|+|incl=8}} | |||
{{doc-end}} | {{doc-end}} | ||
Latest revision as of 04:56, 11 August 2026
{{{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}}}}yieldsShortcut: COM:SCOPE{{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.
- Template:Syntaxhighlight