Template:Template link

From Downtime Wiki
(Redirected from Template:Tl)
Documentation[view] [edit] [history] [⧼smw_purge⧽]

Template:Shortcut This template is used to easily link to a template, while displaying the template brackets.

Usage

{{tl{{#if: template name||template name }}{{#if: subst=yes/no||subst=yes/no }}{{#if: code=yes/no||code=yes/no }}{{#if: || }}{{#if: ||{{{6}}}{{#if: || }}{{#if: || }} }}}}

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 Template:Para 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.

Set Template:Para to no to disable code formatting.

Examples

  • {{tl{{#if: OS||OS }}{{#if: || }}{{#if: || }}{{#if: || }}{{#if: ||{{{6}}}{{#if: || }}{{#if: || }} }}}} → {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: OS | : }} || Template: }}OS|{{ #ifeq: | Template | OS | OS }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: OS | File: }}{{#pos: OS | Category: }} | }}

  • {{tl{{#if: Template:Welcome||Template:Welcome }}{{#if: subst=yes||subst=yes }}{{#if: || }}{{#if: || }}{{#if: ||{{{6}}}{{#if: || }}{{#if: || }} }}}} → {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: yes|subst: }}[[{{#if: {{#pos: Template:Welcome | : }} || Template: }}Template:Welcome|{{ #ifeq: Template | Template | Welcome | Template:Welcome }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Template:Welcome | File: }}{{#pos: Template:Welcome | Category: }} | }}

  • {{tl{{#if: :Spawner/BE||:Spawner/BE }}{{#if: || }}{{#if: || }}{{#if: || }}{{#if: ||{{{6}}}{{#if: || }}{{#if: || }} }}}} → {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: :Spawner/BE | : }} || Template: }}:Spawner/BE|{{ #ifeq: | Template | Spawner/BE | :Spawner/BE }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: :Spawner/BE | File: }}{{#pos: :Spawner/BE | Category: }} | }}

  • {{tl{{#if: move||move }}{{#if: Page to move to||Page to move to }}{{#if: Optional reason||Optional reason }}{{#if: || }}{{#if: ||{{{6}}}{{#if: || }}{{#if: || }} }}}} → {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: move | : }} || Template: }}move|{{ #ifeq: | Template | Move | move }}]]{{ #if: Page to move toOptional reason | |Page to move to }}{{ #if: Optional reason | |Optional reason }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: move | File: }}{{#pos: move | Category: }} | }}

  • {{tl{{#if: uw-vandalism||uw-vandalism }}{{#if: Minecraft||Minecraft }}{{#if: subst=1||subst=1 }}{{#if: || }}{{#if: ||{{{6}}}{{#if: || }}{{#if: || }} }}}} → {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: 1|subst: }}[[{{#if: {{#pos: Uw-vandalism | : }} || Template: }}Uw-vandalism|{{ #ifeq: | Template | Uw-vandalism | Uw-vandalism }}]]{{ #if: Minecraft | |Minecraft }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Uw-vandalism | File: }}{{#pos: Uw-vandalism | Category: }} | }}

See also

  • {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: TemplateCode | : }} || Template: }}TemplateCode|{{ #ifeq: | Template | TemplateCode | TemplateCode }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: TemplateCode | File: }}{{#pos: TemplateCode | Category: }} | }}

  • {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: parameter | : }} || Template: }}parameter|{{ #ifeq: | Template | Parameter | parameter }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: parameter | File: }}{{#pos: parameter | Category: }} | }}

cs:Šablona:Template link de:Vorlage:Vorlage es:Plantilla:Enlace plantilla fr:Modèle:M it:Template:Tl ja:テンプレート:Template link ko:틀:틀 링크 lzh:模板:Template link nl:Sjabloon:Sjabloon link pl:Szablon:Template link pt:Predefinição:Link para predefinição ru:Шаблон:Ссылка на шаблон th:แม่แบบ:Template link tr:Şablon:Şablon Bağlantısı uk:Шаблон:Шаблон-посилання zh:Template:Template link

[view] [edit] [history] [⧼smw_purge⧽]The above documentation is transcluded from Template:Template link/doc.