Template:Tn/doc: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AT THE END OF THIS PAGE. --> {{tlf|'''tn'''}} ('''t'''emplate '''n'''ame) works similar to {{tl|tl}}, showing the name of...")
 
(Corr.)
Line 30: Line 30:


==See also==
==See also==
* {{tl|tl}}
* {{tl|tl}}: produces a link to a template, within braces.
* {{tl|tlc}}: produces a template presentation, with the template's name and it's parameters, and wraps the output in &lt;code&gt;-tags.
* {{tl|tlc}}: produces a template presentation, with the template's name and it's parameters, and wraps the output in &lt;code&gt;-tags.
* {{tl|tlf}}: produces a template presentation, with the template's name and it's parameters, and shows the output in plain text.
* {{tl|tlf}}: produces a template presentation, 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>

Revision as of 21:48, 9 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}}

Example

Case What you type What you see
Comparison between
{{tn}} and {{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.