đ†đŒ°đŒżđ‚đŒ°đŒŒđŒŽđŒ»đŒŽđŒčđŒœđƒ:Tl

𐌰𐍄 𐍅đŒčđŒșđŒčđ€đŒŽđŒłđŒŸđŒ°, 𐍃𐍉 𐍆𐍂đŒčđŒŸđ‰ 𐌮đŒČđŒș𐌮đŒčđŒșđŒ»đ‰đ€đŒŽđŒłđŒŸđŒ°
Template-info.svg Template documentation [ Edit ] [ View history ]


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is:

{{Tl|Example}}
which generates
{{Example}}

TemplateData[đŒŒđŒ°đŒčđŒłđŒŸđŒ°đŒœ]

This template displays a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation.

Template parameters

Parameter Description Type Status
template name 1

the template name without the namespace prefix “Template:”, which is added automatically

Default
empty
Example
empty
Auto value
empty
Line required

More complex variations are described below.

Example[đŒŒđŒ°đŒčđŒłđŒŸđŒ°đŒœ]

Code Result Notes
{{Tl|Void}} {{Void}} Standard usage
{{Tls|Void}} {{subst:Example}} For templates that should be substituted
{{Tl2|X1}} {{X1}} This formats the link to show how it would look in code
{{Tl2|SISTER=m:|3x}} {{3x}} Same as above, for templates on another Wikimedia project (such as meta)
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}} For templates on another language project
{{Tl|1==}} {{=}} Use the format {{Tl|1=templatename}} if the template contains template coding characters such as {{=}} or {{!}}

See also[đŒŒđŒ°đŒčđŒłđŒŸđŒ°đŒœ]

đ†đŒ°đŒżđ‚đŒ°đŒŒđŒŽđŒ»đŒŽđŒčđŒœđƒ:Navbar

General-purpose formatting[đŒŒđŒ°đŒčđŒłđŒŸđŒ°đŒœ]

  • 1 {{Tlg}} is the most general, allowing any combination of text style and/or link style options.
  • 2 Prevents wrapping of text by placing it inside <span class="nowrap">...</span> tags.
  • 3 Uses monospace font but not <code>...</code>.
  • 4 Allows links to templates in any namespace.

Other formatting templates[đŒŒđŒ°đŒčđŒłđŒŸđŒ°đŒœ]

Code example Effect Notes
{{Tl2|Hatnote|lang=fr}} đ†đŒ°đŒżđ‚đŒ°đŒŒđŒŽđŒ»đŒŽđŒčđŒœđƒ:Tl2 Supports linking to sister projects (e.g., fr:Hatnote)
{{Tlu|User:Ahunt/SSHFS}} đ†đŒ°đŒżđ‚đŒ°đŒŒđŒŽđŒ»đŒŽđŒčđŒœđƒ:Tlu Supports linking to any namespace
{{Xpd|Hatnote|Some hatnote text}} đ†đŒ°đŒżđ‚đŒ°đŒŒđŒŽđŒ»đŒŽđŒčđŒœđƒ:Xpd Shows code, example and a link to expand the template code
{{Para|title|<var>book title</var>}} |title=book title Formats template parameters for display, with or without values

With utility links[đŒŒđŒ°đŒčđŒłđŒŸđŒ°đŒœ]

Code example Effect
{{Lts|Hatnote}} đ†đŒ°đŒżđ‚đŒ°đŒŒđŒŽđŒ»đŒŽđŒčđŒœđƒ:Lts
{{T links|Hatnote}} đ†đŒ°đŒżđ‚đŒ°đŒŒđŒŽđŒ»đŒŽđŒčđŒœđƒ:T links
{{Tfd links|Hatnote}} đ†đŒ°đŒżđ‚đŒ°đŒŒđŒŽđŒ»đŒŽđŒčđŒœđƒ:Tfd links
{{Tiw|Hatnote}} đ†đŒ°đŒżđ‚đŒ°đŒŒđŒŽđŒ»đŒŽđŒčđŒœđƒ:Tiw
{{Tltt|Hatnote}} đ†đŒ°đŒżđ‚đŒ°đŒŒđŒŽđŒ»đŒŽđŒčđŒœđƒ:Tltt
{{Tetl|Hatnote}} đ†đŒ°đŒżđ‚đŒ°đŒŒđŒŽđŒ»đŒŽđŒčđŒœđƒ:Tetl
{{Tsetl|Hatnote}} đ†đŒ°đŒżđ‚đŒ°đŒŒđŒŽđŒ»đŒŽđŒčđŒœđƒ:Tsetl
{{Ti|Hatnote}} đ†đŒ°đŒżđ‚đŒ°đŒŒđŒŽđŒ»đŒŽđŒčđŒœđƒ:Ti
{{Tic|Hatnote}} đ†đŒ°đŒżđ‚đŒ°đŒŒđŒŽđŒ»đŒŽđŒčđŒœđƒ:Tic
{{Tiw|Hatnote}} đ†đŒ°đŒżđ‚đŒ°đŒŒđŒŽđŒ»đŒŽđŒčđŒœđƒ:Tiw
{{Tlt|Hatnote}} đ†đŒ°đŒżđ‚đŒ°đŒŒđŒŽđŒ»đŒŽđŒčđŒœđƒ:Tlt
{{Ttl|Hatnote}} đ†đŒ°đŒżđ‚đŒ°đŒŒđŒŽđŒ»đŒŽđŒčđŒœđƒ:Ttl
{{Twlh|Hatnote}} đ†đŒ°đŒżđ‚đŒ°đŒŒđŒŽđŒ»đŒŽđŒčđŒœđƒ:Twlh