Template:Tl: Difference between revisions
Content added Content deleted
(Allow for Template:( to be an escape for {. Template:(( has been updated to escape {{.) |
imported>FrozenPlum mNo edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#if:{{{1|}}}|<!-- |
<onlyinclude><includeonly>{{#if:{{{1|}}}|<!-- |
||
--><code>{{((}}<!-- |
--><code>{{((}}<!-- |
||
-->{{#if:{{{nl|}}}{{ifexists|1=Template:{{{1}}}|3=n}}<!-- |
-->{{#if:{{{nl|}}}{{ifexists|1=Template:{{{1}}}|3=n}}<!-- |
||
Line 14: | Line 14: | ||
-->{{#if: {{{9|}}} | {{!}}{{{9}}} }}<!-- |
-->{{#if: {{{9|}}} | {{!}}{{{9}}} }}<!-- |
||
-->{{))}}</code><!-- |
-->{{))}}</code><!-- |
||
-->}}</includeonly></onlyinclude> |
|||
-->}}<!-- |
|||
{{Documentation}} |
|||
--><noinclude>{{doc}}[[Category:Formatting templates]]</noinclude> |
Latest revision as of 03:48, 29 March 2022
This template returns an exemplaric use of a template while linking to the template description page, if the template exists.
Usage
{{tl|<Template name>}} {{tl|<Template name>|<Template parameters>}}
- unnamed parameter 1
- Template name (without
Template:
prefix) - unnamed parameter 2 - 9
- Optional. Template parameters
- nl
- Optional flag to display an un-linked template usage.
Parameters with “=”
Use {{=}}
instead of a normal equality symbol when using Tl.
Examples
{{tl|DPL3}}
returns{{DPL3}}
{{tl|DPL3|1}}
returns{{DPL3|1}}
{{tl|DPL3|1|2|nl=y}}
returns{{DPL3|1|2}}
{{tl|See|page|t1{{=}}alt text|nl=y}}
returns{{See|page|t1=alt text}}
See also
[view | edit | purge]The above documentation is transcluded from Template:Tl/doc.