Template:Tn/doc: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
Line 26: Line 26:
! Template !! What you type !! What you see
! Template !! What you type !! What you see
|-
|-
| rowspan="2" | {{tlf|!}} || {{tlc|tn|!}} || {{tn|!}}
| rowspan="2" | {{tlf|!}} || {{tlc|tn|!}} || {{tn|!}}
|-
|-
| {{tlc|tl|!}} || {{tl|!}}
| {{tlc|tl|!}} || {{tl|!}}
|-
|-
| rowspan="2" | {{tlf|&#61;}} || {{tlc|tn|<nowiki>{{=}}</nowiki>}} || {{tn|{{=}}}}
| rowspan="2" | {{tlf|&#61;}} || {{tlc|tn|&amp;#61;}} || {{tn|&#61;}}
|-
|-
| {{tlc|tl|<nowiki>{{=}}</nowiki>}} || {{tl|{{=}}}}
| {{tlc|tl|&amp;#61;}} || {{tl|&#61;}}
|-
|-
| rowspan="2" | {{tlf|&#59;}} || {{tlc|tn|<nowiki>{{;}}</nowiki>}} || {{tn|{{;}}}}
| rowspan="2" | {{tlf|&#59;}} || {{tlc|tn|&amp;#59;}} || {{tn|&#59;}}
|-
|-
| {{tlc|tl|<nowiki>{{;}}</nowiki>}} || {{tl|{{;}}}}
| {{tlc|tl|&amp;#59;}} || {{tl|&#59;}}
|}
|}



Revision as of 14:07, 10 December 2014

Edit-copy green.svg
This is a documentation subpage for Template:Tn.
It contains usage information, categories and other content that is not part of the original template page.

{{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|&#33;}} {{!}}
{{tl|&#33;}} {{!}}
{{=}} {{tn|&#61;}} {{=}}
{{tl|&#61;}} {{=}}
{{;}} {{tn|&#59;}} {{;}}
{{tl|&#59;}} {{;}}

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.