Template:Tl/doc: Difference between revisions

m
no edit summary
No edit summary
imported>FrozenPlum
mNo edit summary
 
(7 intermediate revisions by 4 users not shown)
Line 1:
{{Documentation subpage}}
{{doc/start}}
<!-- Documentation here -->
* {{tl|cleanup}} generates {{tlx|tl|cleanup}}
This template returns an exemplaric use of a template while linking to the template description page, if the template exists.
 
== 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|DPL3}}</nowiki></code> returns {{tl|DPL3}}
: <code><nowiki>{{tl|DPL3|1}}</nowiki></code> returns {{tl|DPL3|1}}
: <code><nowiki>{{tl|DPL3|1|2|nl=y}}</nowiki></code> returns {{tl|DPL3|1|2|nl=y}}
: <code><nowiki>{{tl|See|page|t1{{=}}alt text|nl=y}}</nowiki></code> returns {{tl|See|page|t1{{=}}alt text|nl=y}}
 
== See also ==
* [[Template:Tlx]]
<includeonly>
 
<!-- Template categories/interwikis here -->
{{doc/end}}
[[Category:Templates]]
[[Category:Formatting templates]]
</includeonly>
Anonymous user