ढाँचा:Tn/कागजात
स्वरूप
< ढाँचा:Tn
This template is used similarly to {{tl}}, to show the name of a template with the open and close braces around it. But this macro makes the inner braces part of the link, whereas {{tl}} does not make the braces part of the link. This is to allow shorter template names to be easier to click on. The "Tn" name is short for Template name.
Usage
[सम्पादन गर्नुहोस्]{{tn|name}}
It will render this:
- {{name}}
Compare with:
{{tl|name}}
Which renders this:
- {{name}}
See also
[सम्पादन गर्नुहोस्]There are several similar templates, these two lists most of them with some examples:
General-purpose formatting
[सम्पादन गर्नुहोस्]Link style → | Linked | Unlinked | Linked with subst | Linked including braces | Linked with alternative text | |
---|---|---|---|---|---|---|
Text style ↓ | ↓ {{tlg}} options1 →
|
उपलब्ध/नभएको | nolink=yes
|
subst=yes
|
braceinside=yes
|
alttext=Foo 2=Foo
|
Normal | उपलब्ध/नभएको | {{tlg}} 1, 2{{tl}} {{tlp}} 2{{tlu}} 4
|
{{tlf}} 2
|
{{tls}} {{tlsp}}
|
{{tn}}
|
{{tla}}
|
Code
|
code=yes ortt=yes
|
{{tlx}} {{tltt}} {{tltt2}}
|
{{tlc}} 2{{tld}} 2{{tnull}}
|
{{tlxs}} {{tltts}} {{Tltts3}} {{Tltss}} 3
|
उपलब्ध/नभएको | |
Bold | bold=yes
|
{{tlb}}
|
उपलब्ध/नभएको | |||
Bold code
|
bold=yes|code=yes
|
{{tlxb}}
| ||||
Italic code
|
italic=yes|code=yes
|
{{tlxi}}
|
- 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}} |
|
{{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 }} |
{{Tlsetl|Hatnote}} |
{{ subst:Hatnote }} |
{{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) |