Template:Template link: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Created page with "<nowiki>{{</nowiki>[[Template:{{{1|}}}]]<nowiki>}}</nowiki>")
 
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<nowiki>{{</nowiki>[[Template:{{{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={{shortcut|tlink|tl}}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]]
[[Category:Link 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>

Latest revision as of 16:14, 6 January 2024

Template documentation
Shortcuts
Add a link to a template formatted as a template.

Example

{{t link|ref}} and {{t link|ref|act1}}

Is displayed as

{{ref}} and {{ref|act1}}

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
Target template1

no description

Unknownrequired
Parameter 12

The first parameter of a template. Useful for linking to simple templates.

Unknownoptional