Template:Template link: Difference between revisions
Jump to navigation
Jump to search
m (Willowisp moved page Template:Template link to Template:T link) |
No edit summary |
||
Line 1: | Line 1: | ||
<nowiki>{{</nowiki>[[Template:{{{1|}}}|{{{1|}}}]]<nowiki>}}</nowiki> | <includeonly>{{#if:{{{2|}}}|<nowiki>{{</nowiki>[[Template:{{{1|}}}|{{{1|}}}]]<nowiki>|</nowiki>{{{2|}}}<nowiki>}}</nowiki>|<nowiki>{{</nowiki>[[Template:{{{1|}}}|{{{1|}}}]]<nowiki>}}</nowiki>}}</includeonly><noinclude>{{documentation|content=Add a link to a template formatted as a template. | ||
== Example== | |||
<pre>{{t link|ref}} and {{t link|ref|act1}}</pre> | |||
Is displayed as | |||
{{t link|ref}} and {{t link|ref|act1}} | |||
[[Category:Templates]] | |||
== Template data == | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Target template", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "Parameter 1", | |||
"description": "The first parameter of a template. Useful for linking to simple templates." | |||
} | |||
} | |||
} | |||
</templatedata>}} | |||
</noinclude> |
Revision as of 11:49, 2 December 2023
Template documentation
Add a link to a template formatted as a template.
Example
{{t link|ref}} and {{t link|ref|act1}}
Is displayed as
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Target template | 1 | no description | Unknown | required |
Parameter 1 | 2 | The first parameter of a template. Useful for linking to simple templates. | Unknown | optional |