Template:Tl/doc: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
No edit summary
No edit summary
Line 1: Line 1:
{{doc/start}}
{{doc/start}}
This template returns an exemplaric use of a template while linking to the template description page, if the template exists.
* <nowiki>{{tl|cleanup}}</nowiki> generates {{tlx|tl|cleanup}}

== Usage ==
<pre>
{{tl|<Template name>}}
{{tl|<Template name>|<Template parameters>}}
</pre>

; ''unnamed parameter'' 1
: Template name (without <code>Template:</code> prefix)
; ''unnamed parameter'' 2 - 9
: Optional. Template parameters
; nl
: Optional flag to display an un-linked template usage.

=== Parameters with “{{=}}” ===
Use <code><nowiki>{{=}}</nowiki></code> instead of a normal equality symbol when using Tl.

== Examples ==
: <code><nowiki>{{tl|stub}}</nowiki></code> returns {{tl|stub}},
: <code><nowiki>{{tl|stub|1}}</nowiki></code> returns {{tl|stub|1}}, and
: <code><nowiki>{{tl|stub|1|2}}</nowiki></code> returns {{tl|stub|1|2}}.


== See also ==
== See also ==

Revision as of 18:56, 18 July 2019

Template:Doc/start 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}}, and
{{tl|stub|1|2}} returns {{stub|1|2}}.

See also

Template:Doc/end