Jump to content

Template:Template link 2/doc: Difference between revisions

From pool
[checked revision][checked revision]
Content deleted Content added
Line 12: Line 12:
*var2 through var8 are the optional parameters of template var1.
*var2 through var8 are the optional parameters of template var1.
You must replace any equal signs (=) with their [[Unicode]] reference (=).
You must replace any equal signs (=) with their [[Unicode]] reference (=).

===Examples===
*Without a template name:
::<nowiki>{{temt}}</nowiki> creates {{temt}}
*With a template name implicitly in the [[Wikipedia:Template namespace|Template namespace]]:
::<nowiki>{{temt|User WP Wales}}</nowiki> creates {{temt|User WP Wales}}
*With a template name explicitly in the [[Wikipedia:Template namespace|Template namespace]]:
::<nowiki>{{temt|Template:Example}}</nowiki> creates {{temt|Template:Example}}
*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}}
*With a template name and ordinal and named parameters:
::<nowiki>{{temt|convert|4401.2|m|ft|0|sp&amp;#61;us}}</nowiki> creates {{temt|convert|4401.2|m|ft|0|sp&#61;us}}


===See also===
===See also===

Revision as of 15:35, 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;).

See also