Template:Template link: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
HiddenDragon (talk | contribs) mNo edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{2|}}}|<nowiki>{{</nowiki>[[Template:{{{1|}}}|{{{1|}}}]]<nowiki>|</nowiki>{{{2|}}}<nowiki>}}</nowiki>|<nowiki>{{</nowiki>[[Template:{{{1|}}}|{{{1|}}}]]<nowiki>}}</nowiki>}}</includeonly><noinclude>{{documentation|content={{shortcut|tlink}}Add a link to a template formatted as a template. | <includeonly>{{#if:{{{2|}}}|<nowiki>{{</nowiki>[[Template:{{{1|}}}|{{{1|}}}]]<nowiki>|</nowiki>{{{2|}}}<nowiki>}}</nowiki>|<nowiki>{{</nowiki>[[Template:{{{1|}}}|{{{1|}}}]]<nowiki>}}</nowiki>}}</includeonly><noinclude>{{documentation|content={{shortcut|tlink|tl}}Add a link to a template formatted as a template. | ||
== Example== | == Example== | ||
< | {{Template demo | ||
| style = table | |||
| <nowiki>{{t link|ref}}</nowiki> | |||
| <nowiki>{{t link|ref|act1}}</nowiki> | |||
}} | |||
== Template data == | == Template data == | ||
<templatedata> | <templatedata> | ||
Line 22: | Line 22: | ||
} | } | ||
} | } | ||
</templatedata>}} | </templatedata> | ||
}} | |||
[[Category:Templates]] | |||
[[Category:Link templates]] | |||
</noinclude> | </noinclude> |
Latest revision as of 22:42, 19 January 2025
Template documentation
Add a link to a template formatted as a template.
Example
Markup | Renders as |
---|---|
{{t link|ref}} | {{ref}} |
{{t link|ref|act1}} | {{ref|act1}} |
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 |