Template:Tl/doc: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
m (Fix wanted pages)
imported>FrozenPlum
mNo edit summary
 
Line 30: Line 30:
<!-- Template categories/interwikis here -->
<!-- Template categories/interwikis here -->
[[Category:Templates]]
[[Category:Templates]]
[[Category:Formatting templates]]
</includeonly>
</includeonly>

Latest revision as of 23:27, 29 March 2022

This is the documentation page, it should be transcluded into the main template page. See Template:Documentation for more information

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