ढाँचा:Tl/कागजात

विकिपिडिया, एक स्वतन्त्र विश्वकोशबाट


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 that the code:

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

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 name1

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

Stringआवश्यक

More complex variations are described below.

Example[सम्पादन गर्नुहोस्]

Code Result
{{Tl|Void}} {{Void}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} {{=)}}

See also[सम्पादन गर्नुहोस्]

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}} {{hatnote}} Supports linking to sister projects (e.g., fr:Hatnote)
{{tlu|User:Ahunt/SSHFS}} {{User:Ahunt/SSHFS}} Supports linking to any namespace
{{xpd|Hatnote|Some hatnote text}} "{{hatnote|Some hatnote text||{{{4}}}}}" gives "" [१] Shows code, example and a link to expand the template code

With utility links[सम्पादन गर्नुहोस्]

Code example Effect
{{lts|Hatnote}} Template:Hatnote (edit talk links history)
{{t links|Hatnote}} Hatnote (edit · talk · history · links · /subpages · /doc · /doc edit · /sbox · /sbox diff · /test · Module:hatnote)
{{tfd links|Hatnote}}
Template:Hatnote (edit|talk|history|links|watch|logs|delete)
{{tiw|Hatnote}} Template:hatnote (backlinks, edit)
{{tltt|Hatnote}} {{Hatnote}}
{{tetl|Hatnote}} {{ Hatnote }}
links talk view
{{Tlsetl|Hatnote}} {{ subst:Hatnote }}
links talk view
{{ti|Hatnote}} Template:Hatnote (talk, links, edit)
{{tic|Hatnote}} Template:Hatnote (talk, links, edit)
{{tiw|Hatnote}} Template:Hatnote (backlinks, edit)
{{tlt|Hatnote}} {{Hatnote}} (talk)
{{ttl|Hatnote}} {{Hatnote}} (t/l)
{{Twlh|Hatnote}} Template:Hatnote (links, talk)