Template:Tl: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
(adding functionality used by new dpl manual)
imported>FrozenPlum
mNo edit summary
 
(3 intermediate revisions by 3 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}}<!--
-->|<span title="Template:{{{1}}}">{{{1}}}</span><!--
-->|<span title="Template:{{{1}}}">{{{1}}}</span><!--
Line 13: Line 13:
-->{{#if: {{{8|}}} | {{!}}{{{8}}} }}<!--
-->{{#if: {{{8|}}} | {{!}}{{{8}}} }}<!--
-->{{#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

[view | edit | purge]Template 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|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.