Template:Template link 2/doc: Difference between revisions
Appearance
| [checked revision] | [checked revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) 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..." |
Caleb Cooper (talk | contribs) |
||
| 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: |
::<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
| This page was automatically imported from Commons any changes will be overwritten, the source page is here () |
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 (=).
Examples
- Without a template name:
- {{temt}} creates
{{Template link 2/doc}}
- {{temt}} creates
- With a template name implicitly in the Template namespace:
- {{temt|User WP Wales}} creates
{{User WP Wales}}
- {{temt|User WP Wales}} creates
- With a template name explicitly in the Template namespace:
- {{temt|Template:Example}} creates
{{Template:Example}}
- {{temt|Template:Example}} creates
- With a template name explicitly not in the Template namespace:
- {{temt|Wikipedia:WikiProject Puerto Rico/Userbox}} creates
{{Wikipedia:WikiProject Puerto Rico/Userbox}}
- {{temt|Wikipedia:WikiProject Puerto Rico/Userbox}} creates
- With a template name and ordinal and named parameters:
- {{temt|convert|4401.2|m|ft|0|sp=us}} creates
{{convert|4401.2|m|ft|0|sp=us}}
- {{temt|convert|4401.2|m|ft|0|sp=us}} creates
See also
- This template is functionally similar to Template:Template link expanded, except Template:Temt can handle template names with the Template: prefix and templates not in the Template: namespace {{ns:10}}.
- This template is compatible with Template:Catt.
- This template is invoked by Template:Cattemp and Template:UIC.