Template:Tl: Difference between revisions

From Portals of Phereon Wiki
Content added Content deleted
No edit summary
No edit summary
Line 1: Line 1:
{{void|{{#if:{{{1|}}}|<!--
{{#if:{{{1|}}}|<!--
--><code>{{(}}<!--
--><code>{{(}}<!--
-->{{#if:{{{nl|}}}{{ifexists|1=Template:{{{1}}}|3=n}}<!--
-->{{#if:{{{nl|}}}{{ifexists|1=Template:{{{1}}}|3=n}}<!--
Line 16: Line 16:
-->}}<!--
-->}}<!--


--><noinclude>{{doc}}[[Category:Formatting templates]]</noinclude>}}
--><noinclude>{{doc}}[[Category:Formatting templates]]</noinclude>

Revision as of 15:40, 2 December 2019

[view | edit | purge]Documentation

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|stub}} returns {{stub}}
{{tl|stub|1}} returns {{stub|1}}
{{tl|stub|1|2|nl=y}} returns {{stub|1|2}}
{{tl|see|page|t1{{=}}alt text}} returns {{see|page|t1=alt text}}

See also

[view | edit | purge]The above documentation is transcluded fromTemplate:Tl/doc.