Template: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
badlo{{tn|name}}
It will render this:
- {{name}}
Compare with:
{{tl|name}}
Which renders this:
- {{name}}
See also
badloThere are several similar templates, these two lists most of them with some examples:
General-purpose formatting
badloLink style → | Linked | Unlinked | Linked with subst | Linked including braces | Linked with alternative text | |
---|---|---|---|---|---|---|
Text style ↓ | ↓ {{tlg}} options1 →
|
N/A |
|
|
|
|
Normal | N/A | {{tlg}} 1, 2{{tl}} {{tlp}} 2
|
{{tlf}} 2
|
{{tls}} {{tlsp}}
|
{{tn}}
|
{{tla}}
|
Code
|
or
|
{{tlx}}
|
{{tlc}} 2{{tld}} 2{{tnull}}
|
{{tlxs}}
|
N/A | |
Bold |
|
{{tlb}}
|
N/A | |||
Bold code
|
|
{{tlxb}}
| ||||
Italic code
|
|
{{tlxi}}
|
1 =
2 = Prevents wrapping of text by placing it inside
{{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.Other templates
badloCode example | Effect | Notes | |
---|---|---|---|
{{lts|Hatnote}} |
Template:Hatnote (edit talk links history) | ||
{{t links|Hatnote}} |
{{hatnote}} | ||
{{tfd links|Hatnote}} |
|||
{{tiw|Hatnote}} |
Template:hatnote (backlinks, edit) | ||
{{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}} |
| ||