Jump to content

Template:Template link 2/doc: Difference between revisions

From pool
[checked revision][checked revision]
Content deleted Content added
Created page with "{{Documentation subpage}} {{Template shortcut |Temt}} {{Commons Import}} ===Use=== This template creates a formatted link to a template. Without an optional template name, t..."
 
Line 19: Line 19:
::<nowiki>{{temt|User WP Wales}}</nowiki> creates {{temt|User WP Wales}}
::<nowiki>{{temt|User WP Wales}}</nowiki> creates {{temt|User WP Wales}}
*With a template name explicitly in the [[Wikipedia:Template namespace|Template namespace]]:
*With a template name explicitly in the [[Wikipedia:Template namespace|Template namespace]]:
::<nowiki>{{temt|Template:User interest Utah}}</nowiki> creates {{temt|Template:User interest Utah}}
::<nowiki>{{temt|Template:Example}}</nowiki> creates {{temt|Template:Example}}
*With a template name explicitly not in the [[Wikipedia:Template namespace|Template namespace]]:
*With a template name explicitly not in the [[Wikipedia:Template namespace|Template namespace]]:
::<nowiki>{{temt|Wikipedia:WikiProject Puerto Rico/Userbox}}</nowiki> creates {{temt|Wikipedia:WikiProject Puerto Rico/Userbox}}
::<nowiki>{{temt|Wikipedia:WikiProject Puerto Rico/Userbox}}</nowiki> creates {{temt|Wikipedia:WikiProject Puerto Rico/Userbox}}

Revision as of 15:34, 21 October 2020


Use

This template creates a formatted link to a template. Without an optional template name, this template creates a formatted but disabled link to the current page.

The syntax of this template is:

{{temt|var1|var2|var3|var4|var5|var6|var7|var8}}

where:

  • var1 is an option template name.
  • var2 through var8 are the optional parameters of template var1.

You must replace any equal signs (=) with their Unicode reference (&#61;).

Examples

  • Without a template name:
{{temt}} creates {{Template link 2/doc}}
{{temt|User WP Wales}} creates {{User WP Wales}}
{{temt|Template:Example}} creates {{Template:Example}}
{{temt|Wikipedia:WikiProject Puerto Rico/Userbox}} creates {{Wikipedia:WikiProject Puerto Rico/Userbox}}
  • With a template name and ordinal and named parameters:
{{temt|convert|4401.2|m|ft|0|sp&#61;us}} creates {{convert|4401.2|m|ft|0|sp=us}}

See also