Template:Tl/doc: Difference between revisions
Content added Content deleted
imported>FrozenPlum m (8 revisions imported: Imported from help.fandom.com, Extension:DPL3 pages, which are for the obsolete version of DPL3 extension for MediaWiki 1.33, to adapt to forked (newer) extension version.) |
imported>FrozenPlum m (Fix wanted pages) |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} |
|||
{{doc/start}} |
|||
<!-- Documentation here --> |
|||
This template returns an exemplaric use of a template while linking to the template description page, if the template exists. |
This template returns an exemplaric use of a template while linking to the template description page, if the template exists. |
||
Line 19: | Line 20: | ||
== Examples == |
== Examples == |
||
: <code><nowiki>{{tl| |
: <code><nowiki>{{tl|DPL3}}</nowiki></code> returns {{tl|DPL3}} |
||
: <code><nowiki>{{tl| |
: <code><nowiki>{{tl|DPL3|1}}</nowiki></code> returns {{tl|DPL3|1}} |
||
: <code><nowiki>{{tl| |
: <code><nowiki>{{tl|DPL3|1|2|nl=y}}</nowiki></code> returns {{tl|DPL3|1|2|nl=y}} |
||
: <code><nowiki>{{tl| |
: <code><nowiki>{{tl|See|page|t1{{=}}alt text|nl=y}}</nowiki></code> returns {{tl|See|page|t1{{=}}alt text|nl=y}} |
||
== See also == |
== See also == |
||
* [[Template:Tlx]] |
* [[Template:Tlx]] |
||
<includeonly> |
|||
<!-- Template categories/interwikis here --> |
|||
<noinclude> |
|||
[[Category:Templates]] |
|||
[[tr:Şablon:Şb/belge]] |
|||
</ |
</includeonly> |
||
{{doc/end}} |
Revision as of 04:03, 29 March 2022
[purge]
This is the documentation page, it should be transcluded into the main template page. See Template:Documentation for more informationThis 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}}