Jump to content

Template:Template link/doc

From Wikipedia

The template link template be simple macro template wey dey show template name as link wey braces surround am. This one dey make the template name show like code instead of actually calling the template. The main reason for using am be for instructions and documentation, where dem dey refer to template by name without running the template.

Make you note say this template get aliases "tee-el" Template:TLX and "tee-one" Template:TLX. Make you no mix am with "tee-eye" Template:TLX, because that one be alias for Template:TLX.

{{Tla}} dey work same way as {{tl}}, but e get extra option to show different label text (link label). {{Tlg}} fit include parameters wey dey inside the template.

Examples

[edit source]

Small example of how dem dey use am be:

{{tl|Example}}
wey go generate
{{Example}}

Other longer examples:

Code Result Notes
{{tl|Void}} {{Void}} Normal usage
{{tls|Example}} {{subst:Example}} For templates wey dem suppose substitute
{{tl2|X1}} Template:Tl2 This format the link make e show how e go look for code (that be monospace font)
{{tl2|sister=M:|3x}} Template:Tl2 Same as above, but this one be for templates from another Wikimedia project (for this example, Meta, using m:). See Interwiki codes.
{{tl2|sister=wikibooks|lang=de:|WP}} Template:Tl2 For templates on another language project
{{tl|1==)}} {{=)}} Use this format {{tl|1=templatename}} if the template get template coding characters like {{=)}} or {{!}}

TemplateData

[edit source]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Template link in articles based on its TemplateData.

TemplateData for Template link

This template dey show template name as link wey braces surround am, so e show how the template name go dey used for code. The main use be for instructions and documentation.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Template name1

Positional parameter: the template name without the namespace prefix “Template:”, because the prefix go add itself automatically

Templaterequired

See also

[edit source]

Template:Template-linking templates