Dinoguy1000 (diskuse | příspěvky) (how the hell I managed that, I'll never know) |
(Šablona aktualizována) |
||
(Není zobrazena jedna mezilehlá verze od jednoho dalšího uživatele.) | |||
Řádek 1: | Řádek 1: | ||
− | + | <code>{{{{#if: {{{subst|}}}|[[WP:SUBSTITUTION|subst]]: }}[[{{#if: {{#pos: {{{1}}} | : }} || Template: }}{{{1}}}|{{ #ifeq: {{NAMESPACE:{{{1}}}}} | Template | {{PAGENAME:{{{1}}}}} | {{{1}}} }}]]{{ #if: {{{2|}}} | {{!}}{{{2}}} }}{{ #if: {{{3|}}} | {{!}}{{{3}}} }}{{ #if: {{{4|}}} | {{!}}{{{4}}} }}{{ #if: {{{5|}}} | {{!}}{{{5}}} }}{{ #if: {{{6|}}} | {{!}}{{{6}}} }}{{ #if: {{{7|}}} | {{!}}{{{7}}} }}{{ #if: {{{8|}}} | {{!}}{{{8}}} }}{{ #if: {{{9|}}} | {{!}}{{{9}}} }}}}</code>{{#if: {{#pos: {{{1}}} | File: }}{{#pos: {{{1}}} | Category: }} | [[Category:Fixme]] }}<noinclude> |
|
<!-- categories/interwikis on the /doc subpage, not here --> |
<!-- categories/interwikis on the /doc subpage, not here --> |
||
{{Documentation}} |
{{Documentation}} |
Aktuální verze z 18. 8. 2019, 11:56
{{[[Template:{{{1}}}|{{{1}}}]]}}
This template is used to easily link to a template, while displaying the template brackets.
Usage
{{tl|template name|subst=subst or don't subst}}
template name can be any page, using the same conventions as transclusion. Basically the "Template:" prefix is optional, and a colon is required to link the main space.
Parameters can also be added, to a maximum of 8. Note that =
's must be escaped using {{=}}
The {{{subst}}}
parameter will determine whether the template link will display as a substed template or not. If the subst parameter is set, it will display the word "subst:" in front of the template link.
Examples
{{tl|OS}}
gives:
{{OS}}
{{tl|Template:Welcome|subst=yes}}
gives:
{{subst:Template:Welcome}}
{{tl|:Commands/infobox}}
gives:
{{
:Commands/infobox}}
{{tl|move|Page to move to|Optional reason}}
gives:
{{move|Page to move to|Optional reason}}
{{tl|uw-vandalism|Minecraft|subst=1}}
gives:
{{subst:Uw-vandalism|Minecraft}}
See also
{{TemplateCode}}
{{parameter}}