Template:Tn/doc: Difference between revisions
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 26: | Line 26: | ||
! Template !! What you type !! What you see | ! Template !! What you type !! What you see | ||
|- | |- | ||
| rowspan="2" | {{tlf|!}} || {{tlc|tn| | | rowspan="2" | {{tlf|!}} || {{tlc|tn|!}} || {{tn|!}} | ||
|- | |- | ||
| {{tlc|tl| | | {{tlc|tl|!}} || {{tl|!}} | ||
|- | |- | ||
| rowspan="2" | {{tlf|=}} || {{tlc|tn| | | rowspan="2" | {{tlf|=}} || {{tlc|tn|=}} || {{tn|=}} | ||
|- | |- | ||
| {{tlc|tl| | | {{tlc|tl|=}} || {{tl|=}} | ||
|- | |- | ||
| rowspan="2" | {{tlf|;}} || {{tlc|tn| | | rowspan="2" | {{tlf|;}} || {{tlc|tn|&#59;}} || {{tn|;}} | ||
|- | |- | ||
| {{tlc|tl| | | {{tlc|tl|&#59;}} || {{tl|;}} | ||
|} | |} | ||
Line 45: | Line 45: | ||
* {{tl|tlp}}: produces a template link, with the template's name and it's parameters, and shows the output in plain text. | * {{tl|tlp}}: produces a template link, with the template's name and it's parameters, and shows the output in plain text. | ||
<includeonly> | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | ||
<!-- Categories | | <!-- Categories below this line, please --> | ||
[[Category:Internal link templates]] | [[Category:Internal template-link templates]] | ||
[[Category: | [[Category:Typing-aid templates]]}} | ||
</includeonly> | </includeonly> |
Latest revision as of 09:59, 31 January 2015
{{tn}} (template name) works similar to {{tl}}, showing the name of a template as a link, enclosed in braces. But this template makes the inner braces part of the link, making very short template names easier to click.
Parameters
There is only 1 parameter, which is unnamed and required.
Synatx
The syntax for {{tn}} is:
{{tn|template name }}
Required parameter
1 (unnamed)
- Template name
The 1st parameter is the name of the template to which you want to create a link.
- Usage
{{tn|template name}}
Examples
Comparison between {{tn}} and {{tl}}. Hover over the template links to see the difference.
Template | What you type | What you see |
---|---|---|
{{!}} | {{tn|!}} |
{{!}} |
{{tl|!}} |
{{!}} | |
{{=}} | {{tn|=}} |
{{=}} |
{{tl|=}} |
{{=}} | |
{{;}} | {{tn|;}} |
{{;}} |
{{tl|;}} |
{{;}} |
See also
- {{tl}}: produces a link to a template, within braces.
- {{tlc}}: produces a template presentation, with the template's name and it's parameters, and wraps the output in <code>-tags.
- {{tlf}}: produces a template presentation, with the template's name and it's parameters, and shows the output in plain text.
- {{tlp}}: produces a template link, with the template's name and it's parameters, and shows the output in plain text.