Template:Codef: Difference between revisions
Template page
More actions
it begins... |
Replaced deprecated {{shortcuts|...}} with {{shortcut|...}} (B1) |
||
| (7 intermediate revisions by 6 users not shown) | |||
| Line 1: | Line 1: | ||
<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. | ||
{{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|&lt;}} | |||
* {{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|{{shortcut|COM:SCOPE}}}} | |||
* {{codef|{{codef{{!}}{{shortcuts{{((}}!{{))}}COM:SCOPE}}}}}} yields {{codef|{{shortcuts{{!}}COM:SCOPE}}}} | |||
Template calls without parameter won't work. | |||
Template calls may work if you escape the pipe character {{ | |||
* {{ | |||
* {{ | |||
== See also == | == See also == | ||
* {{tl| | * {{tl|code}} Same as this, but adds nowiki functionality, may save escaping. | ||
* {{T|Syntaxhighlight|+|incl=8}} | |||
{{doc-end}} | |||
[[Category:Template namespace templates|{{PAGENAME}}]] | |||
[[Category:Semantic markup templates]] | |||
</noinclude> | </noinclude> | ||