FANDOM


Template loop detected: Template:Documentation subpage

Usage Edit

Template loop detected: Template:Documentation subpage

Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl

OR

This 'Template loop detected: Template:Tlx' template documentation is transcluded for all Tlx family templates (Tlx, Tlxc, Tlxm, Tlxw, Tlxb) [edit].Masterpage  


Template loop detected: Template:TlxTemplate loop detected: Template:Tlx
Template loop detected: Template:TlxTemplate loop detected: Template:Tlx if they might contain "=" signs.
Template loop detected: Template:TlxTemplate loop detected: Template:Tlx (for more than 10 parameters)

Purpose and naming Edit

Mnemonically 'Template link expanded'. After Template loop detected: Template:Tlx 'Template link'.

  • This template takes another template-name and some associated pipe-tricked (numbered) parameters (or 'pass parameters'), and displays them as an 'example demonstration' of how the template-name template could be coded, literally. Its primary use is in instruction and documentation.
  • Specifics: Up to 10 pass parameters (numbered or nowiki-keywords) for the specified template are displayed as 'placeholders', and over 10 parameters can be displayed using a coded vertical-bar (as in "&#124;..."). A keyword parameter can be used with equals code &#61; or {{=}} or in nowiki-text: "<nowiki>size=10</nowiki>" or all parameters as a string in "<nowiki>" tags; see Examples at bottom. For more details, see this talk page.
  • Exceptions: If the intended template lists numerous/keyword parameters, then perhaps this template should really not be used, and just hardcode the usage with <code><nowiki>, for example: <code><nowiki>{{Anytemplate|arg1=23|size=250px|other parameters...}}</nowiki></code>. If a vertical display, with parameters on their own lines, is desired, this can also be laid out manually in this manner, or more rapidly done with <pre>...</pre>.

  • If given no additional parameters except  'template name' ({{{1}}}),  it presents the same as the similar Template loop detected: Template:Documentation subpage

Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl

macro template -- a blue link nested in curly-braces-- the same as a user would apply the template without parameters, but with a noticably clearer font and spacing on most modern browsers. 

Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl

versus Tlx: Template loop detected: Template:Tlx) 
  • Comparatively, Template loop detected: Template:Tlx will not take or display additional parameters, and for minor technical reasons, may be preferred for mere listing and referencing in long pages involving a lot of template expansions.
  • Template loop detected: Template:Tlx has a named parameter subst. Setting this parameter to any string of length 1 or greater will place the string "subst:" before the template name, linked to Help:Substitution. This is useful to indicate when a template should be substituted. For example Template loop detected: Template:Tlx will display Template loop detected: Template:Tlx.
  • Additionally, Tlx will take a 'named' parameter 'SISTER' to link interwiki to other sister projects such as one of these examples: '|SISTER=W:', 'Tlx|SISTER=M:', 'Tlx|SISTER=Q:', 'Tlx|SISTER=S:', allowing documentation or discourse about a template across interwiki boundaries.

Documentation Edit

{{Flag template system}} is a generalization of Template loop detected: Template:Documentation subpage Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl , Template loop detected: Template:Documentation subpage Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl , etcetera with arguably better readable output. This depends on the browser, but too narrow uses of "{", "|", "}" in conjunction with links can be hard to read.

Usage Edit

{{Flag template system|template name}}
{{Flag template system|template name|param}}
{{Flag template system|template name|1|2|3|4|5|6|7|8|9|10}}
{{Flag template system|template name|1|2|3|4|5|6|7|8|9|10&#124;more}}
{{Flag template system|template name|param&#61;value}}

Up to 10 placeholders for parameters of the specified template

Examples Edit

Note
On the source sister projects, en.wikipedia and Meta, X0, X1, X2,..., X9 are sandbox templates for experimentation on involved templates that need be in template space. An auto-cleansing software facility exists that might be used to duplicate the facility on other Sister projects.
Code Result Remark
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx up to 10 parameters, then ...
Template loop detected: Template:Tlx Template loop detected: Template:Tlx &#124; for more
Template loop detected: Template:Tlx unlimited parameters as one nowiki string
Template loop detected: Template:Tlx Template loop detected: Template:Tlx = won't work
Template loop detected: Template:Tlx Template loop detected: Template:Tlx &#61; is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx {{=}} is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx sticky nowiki is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx empty won't work
Template loop detected: Template:Tlx Template loop detected: Template:Tlx &#32; is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx &nbsp; is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx &#124; is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx Template loop detected: Template:Tlx is dubious
Template loop detected: Template:Tlx Template loop detected: Template:Tlx empty really doesn't work
Template loop detected: Template:Tlx Template loop detected: Template:Tlx two clobbers 2=one
Template loop detected: Template:Tlx Template loop detected: Template:Tlx right to left okay

See also Edit

Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl , but gives the template name in boldface type (this can be useful when stressing the difference between two similarly named templates). Template:Tlb is the same, except it uses regular text instead of a monospaced non-proportional font.

  • Template:Para – for giving examples of template parameters and values only, instead of entire templates with parameters.

Template:Tl-navcy:Nodyn:Tlx de:Vorlage:Vorlage hsb:Předłoha:Tlx hy:Կաղապար:Tlx ko:틀:Tlx ia:Patrono:Tlx os:Шаблон:Tlp mk:Шаблон:Швп ja:Template:Tlx no:Mal:Tlx pt:Predefinição:Tlx ro:Format:Tlx ru:Template:Tlx simple:Template:Tlx th:แม่แบบ:Tlx tl:Suleras:Tlx uk:Шаблон:Tlx ur:سانچہ:Tlx zh:Template:Tlx


Userboxes Edit

When used to document usage of a userbox, it may be preferred to have this template state "userbox"/"userbox page" instead of "template"/"template page" or "user template"/"user template page". If this is preferred, use:

Template loop detected: Template:Documentation subpage

Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl

OR

This 'Template loop detected: Template:Tlx' template documentation is transcluded for all Tlx family templates (Tlx, Tlxc, Tlxm, Tlxw, Tlxb) [edit].Masterpage  


Template loop detected: Template:TlxTemplate loop detected: Template:Tlx
Template loop detected: Template:TlxTemplate loop detected: Template:Tlx if they might contain "=" signs.
Template loop detected: Template:TlxTemplate loop detected: Template:Tlx (for more than 10 parameters)

Purpose and naming Edit

Mnemonically 'Template link expanded'. After Template loop detected: Template:Tlx 'Template link'.

  • This template takes another template-name and some associated pipe-tricked (numbered) parameters (or 'pass parameters'), and displays them as an 'example demonstration' of how the template-name template could be coded, literally. Its primary use is in instruction and documentation.
  • Specifics: Up to 10 pass parameters (numbered or nowiki-keywords) for the specified template are displayed as 'placeholders', and over 10 parameters can be displayed using a coded vertical-bar (as in "&#124;..."). A keyword parameter can be used with equals code &#61; or {{=}} or in nowiki-text: "<nowiki>size=10</nowiki>" or all parameters as a string in "<nowiki>" tags; see Examples at bottom. For more details, see this talk page.
  • Exceptions: If the intended template lists numerous/keyword parameters, then perhaps this template should really not be used, and just hardcode the usage with <code><nowiki>, for example: <code><nowiki>{{Anytemplate|arg1=23|size=250px|other parameters...}}</nowiki></code>. If a vertical display, with parameters on their own lines, is desired, this can also be laid out manually in this manner, or more rapidly done with <pre>...</pre>.

  • If given no additional parameters except  'template name' ({{{1}}}),  it presents the same as the similar Template loop detected: Template:Documentation subpage

Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl

macro template -- a blue link nested in curly-braces-- the same as a user would apply the template without parameters, but with a noticably clearer font and spacing on most modern browsers. 

Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl

versus Tlx: Template loop detected: Template:Tlx) 
  • Comparatively, Template loop detected: Template:Tlx will not take or display additional parameters, and for minor technical reasons, may be preferred for mere listing and referencing in long pages involving a lot of template expansions.
  • Template loop detected: Template:Tlx has a named parameter subst. Setting this parameter to any string of length 1 or greater will place the string "subst:" before the template name, linked to Help:Substitution. This is useful to indicate when a template should be substituted. For example Template loop detected: Template:Tlx will display Template loop detected: Template:Tlx.
  • Additionally, Tlx will take a 'named' parameter 'SISTER' to link interwiki to other sister projects such as one of these examples: '|SISTER=W:', 'Tlx|SISTER=M:', 'Tlx|SISTER=Q:', 'Tlx|SISTER=S:', allowing documentation or discourse about a template across interwiki boundaries.

Documentation Edit

{{Flag template system}} is a generalization of Template loop detected: Template:Documentation subpage Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl , Template loop detected: Template:Documentation subpage Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl , etcetera with arguably better readable output. This depends on the browser, but too narrow uses of "{", "|", "}" in conjunction with links can be hard to read.

Usage Edit

{{Flag template system|template name}}
{{Flag template system|template name|param}}
{{Flag template system|template name|1|2|3|4|5|6|7|8|9|10}}
{{Flag template system|template name|1|2|3|4|5|6|7|8|9|10&#124;more}}
{{Flag template system|template name|param&#61;value}}

Up to 10 placeholders for parameters of the specified template

Examples Edit

Note
On the source sister projects, en.wikipedia and Meta, X0, X1, X2,..., X9 are sandbox templates for experimentation on involved templates that need be in template space. An auto-cleansing software facility exists that might be used to duplicate the facility on other Sister projects.
Code Result Remark
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx up to 10 parameters, then ...
Template loop detected: Template:Tlx Template loop detected: Template:Tlx &#124; for more
Template loop detected: Template:Tlx unlimited parameters as one nowiki string
Template loop detected: Template:Tlx Template loop detected: Template:Tlx = won't work
Template loop detected: Template:Tlx Template loop detected: Template:Tlx &#61; is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx {{=}} is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx sticky nowiki is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx empty won't work
Template loop detected: Template:Tlx Template loop detected: Template:Tlx &#32; is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx &nbsp; is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx &#124; is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx Template loop detected: Template:Tlx is dubious
Template loop detected: Template:Tlx Template loop detected: Template:Tlx empty really doesn't work
Template loop detected: Template:Tlx Template loop detected: Template:Tlx two clobbers 2=one
Template loop detected: Template:Tlx Template loop detected: Template:Tlx right to left okay

See also Edit

Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl , but gives the template name in boldface type (this can be useful when stressing the difference between two similarly named templates). Template:Tlb is the same, except it uses regular text instead of a monospaced non-proportional font.

  • Template:Para – for giving examples of template parameters and values only, instead of entire templates with parameters.

Template:Tl-navcy:Nodyn:Tlx de:Vorlage:Vorlage hsb:Předłoha:Tlx hy:Կաղապար:Tlx ko:틀:Tlx ia:Patrono:Tlx os:Шаблон:Tlp mk:Шаблон:Швп ja:Template:Tlx no:Mal:Tlx pt:Predefinição:Tlx ro:Format:Tlx ru:Template:Tlx simple:Template:Tlx th:แม่แบบ:Tlx tl:Suleras:Tlx uk:Шаблон:Tlx ur:سانچہ:Tlx zh:Template:Tlx


Customization of text Edit

To manually change the text of the template, the "text1=your text here" and/or "text2=your other text here" parameters can be specified. "text1=" changes the automatic text on the first line to your own word(s). "text2=" changes the automatic text on the second line to your own word(s). If "text1=" parameter is specified without the "text2=" parameter, both the first and second line of text will be custom based on the text given in the "text1=" parameter.

Example usage:

This 'Template loop detected: Template:Tlx' template documentation is transcluded for all Tlx family templates (Tlx, Tlxc, Tlxm, Tlxw, Tlxb) [edit].Masterpage  


Template loop detected: Template:TlxTemplate loop detected: Template:Tlx
Template loop detected: Template:TlxTemplate loop detected: Template:Tlx if they might contain "=" signs.
Template loop detected: Template:TlxTemplate loop detected: Template:Tlx (for more than 10 parameters)

Purpose and naming Edit

Mnemonically 'Template link expanded'. After Template loop detected: Template:Tlx 'Template link'.

  • This template takes another template-name and some associated pipe-tricked (numbered) parameters (or 'pass parameters'), and displays them as an 'example demonstration' of how the template-name template could be coded, literally. Its primary use is in instruction and documentation.
  • Specifics: Up to 10 pass parameters (numbered or nowiki-keywords) for the specified template are displayed as 'placeholders', and over 10 parameters can be displayed using a coded vertical-bar (as in "&#124;..."). A keyword parameter can be used with equals code &#61; or {{=}} or in nowiki-text: "<nowiki>size=10</nowiki>" or all parameters as a string in "<nowiki>" tags; see Examples at bottom. For more details, see this talk page.
  • Exceptions: If the intended template lists numerous/keyword parameters, then perhaps this template should really not be used, and just hardcode the usage with <code><nowiki>, for example: <code><nowiki>{{Anytemplate|arg1=23|size=250px|other parameters...}}</nowiki></code>. If a vertical display, with parameters on their own lines, is desired, this can also be laid out manually in this manner, or more rapidly done with <pre>...</pre>.

  • If given no additional parameters except  'template name' ({{{1}}}),  it presents the same as the similar Template loop detected: Template:Documentation subpage

Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl

macro template -- a blue link nested in curly-braces-- the same as a user would apply the template without parameters, but with a noticably clearer font and spacing on most modern browsers. 

Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl

versus Tlx: Template loop detected: Template:Tlx) 
  • Comparatively, Template loop detected: Template:Tlx will not take or display additional parameters, and for minor technical reasons, may be preferred for mere listing and referencing in long pages involving a lot of template expansions.
  • Template loop detected: Template:Tlx has a named parameter subst. Setting this parameter to any string of length 1 or greater will place the string "subst:" before the template name, linked to Help:Substitution. This is useful to indicate when a template should be substituted. For example Template loop detected: Template:Tlx will display Template loop detected: Template:Tlx.
  • Additionally, Tlx will take a 'named' parameter 'SISTER' to link interwiki to other sister projects such as one of these examples: '|SISTER=W:', 'Tlx|SISTER=M:', 'Tlx|SISTER=Q:', 'Tlx|SISTER=S:', allowing documentation or discourse about a template across interwiki boundaries.

Documentation Edit

{{Flag template system}} is a generalization of Template loop detected: Template:Documentation subpage Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl , Template loop detected: Template:Documentation subpage Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl , etcetera with arguably better readable output. This depends on the browser, but too narrow uses of "{", "|", "}" in conjunction with links can be hard to read.

Usage Edit

{{Flag template system|template name}}
{{Flag template system|template name|param}}
{{Flag template system|template name|1|2|3|4|5|6|7|8|9|10}}
{{Flag template system|template name|1|2|3|4|5|6|7|8|9|10&#124;more}}
{{Flag template system|template name|param&#61;value}}

Up to 10 placeholders for parameters of the specified template

Examples Edit

Note
On the source sister projects, en.wikipedia and Meta, X0, X1, X2,..., X9 are sandbox templates for experimentation on involved templates that need be in template space. An auto-cleansing software facility exists that might be used to duplicate the facility on other Sister projects.
Code Result Remark
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx up to 10 parameters, then ...
Template loop detected: Template:Tlx Template loop detected: Template:Tlx &#124; for more
Template loop detected: Template:Tlx unlimited parameters as one nowiki string
Template loop detected: Template:Tlx Template loop detected: Template:Tlx = won't work
Template loop detected: Template:Tlx Template loop detected: Template:Tlx &#61; is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx {{=}} is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx sticky nowiki is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx empty won't work
Template loop detected: Template:Tlx Template loop detected: Template:Tlx &#32; is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx &nbsp; is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx &#124; is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx Template loop detected: Template:Tlx is dubious
Template loop detected: Template:Tlx Template loop detected: Template:Tlx empty really doesn't work
Template loop detected: Template:Tlx Template loop detected: Template:Tlx two clobbers 2=one
Template loop detected: Template:Tlx Template loop detected: Template:Tlx right to left okay

See also Edit

Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl , but gives the template name in boldface type (this can be useful when stressing the difference between two similarly named templates). Template:Tlb is the same, except it uses regular text instead of a monospaced non-proportional font.

  • Template:Para – for giving examples of template parameters and values only, instead of entire templates with parameters.

Template:Tl-navcy:Nodyn:Tlx de:Vorlage:Vorlage hsb:Předłoha:Tlx hy:Կաղապար:Tlx ko:틀:Tlx ia:Patrono:Tlx os:Шаблон:Tlp mk:Шаблон:Швп ja:Template:Tlx no:Mal:Tlx pt:Predefinição:Tlx ro:Format:Tlx ru:Template:Tlx simple:Template:Tlx th:แม่แบบ:Tlx tl:Suleras:Tlx uk:Шаблон:Tlx ur:سانچہ:Tlx zh:Template:Tlx


This 'Template loop detected: Template:Tlx' template documentation is transcluded for all Tlx family templates (Tlx, Tlxc, Tlxm, Tlxw, Tlxb) [edit].Masterpage  


Template loop detected: Template:TlxTemplate loop detected: Template:Tlx
Template loop detected: Template:TlxTemplate loop detected: Template:Tlx if they might contain "=" signs.
Template loop detected: Template:TlxTemplate loop detected: Template:Tlx (for more than 10 parameters)

Purpose and naming Edit

Mnemonically 'Template link expanded'. After Template loop detected: Template:Tlx 'Template link'.

  • This template takes another template-name and some associated pipe-tricked (numbered) parameters (or 'pass parameters'), and displays them as an 'example demonstration' of how the template-name template could be coded, literally. Its primary use is in instruction and documentation.
  • Specifics: Up to 10 pass parameters (numbered or nowiki-keywords) for the specified template are displayed as 'placeholders', and over 10 parameters can be displayed using a coded vertical-bar (as in "&#124;..."). A keyword parameter can be used with equals code &#61; or {{=}} or in nowiki-text: "<nowiki>size=10</nowiki>" or all parameters as a string in "<nowiki>" tags; see Examples at bottom. For more details, see this talk page.
  • Exceptions: If the intended template lists numerous/keyword parameters, then perhaps this template should really not be used, and just hardcode the usage with <code><nowiki>, for example: <code><nowiki>{{Anytemplate|arg1=23|size=250px|other parameters...}}</nowiki></code>. If a vertical display, with parameters on their own lines, is desired, this can also be laid out manually in this manner, or more rapidly done with <pre>...</pre>.

  • If given no additional parameters except  'template name' ({{{1}}}),  it presents the same as the similar Template loop detected: Template:Documentation subpage

Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl

macro template -- a blue link nested in curly-braces-- the same as a user would apply the template without parameters, but with a noticably clearer font and spacing on most modern browsers. 

Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl

versus Tlx: Template loop detected: Template:Tlx) 
  • Comparatively, Template loop detected: Template:Tlx will not take or display additional parameters, and for minor technical reasons, may be preferred for mere listing and referencing in long pages involving a lot of template expansions.
  • Template loop detected: Template:Tlx has a named parameter subst. Setting this parameter to any string of length 1 or greater will place the string "subst:" before the template name, linked to Help:Substitution. This is useful to indicate when a template should be substituted. For example Template loop detected: Template:Tlx will display Template loop detected: Template:Tlx.
  • Additionally, Tlx will take a 'named' parameter 'SISTER' to link interwiki to other sister projects such as one of these examples: '|SISTER=W:', 'Tlx|SISTER=M:', 'Tlx|SISTER=Q:', 'Tlx|SISTER=S:', allowing documentation or discourse about a template across interwiki boundaries.

Documentation Edit

{{Flag template system}} is a generalization of Template loop detected: Template:Documentation subpage Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl , Template loop detected: Template:Documentation subpage Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl , etcetera with arguably better readable output. This depends on the browser, but too narrow uses of "{", "|", "}" in conjunction with links can be hard to read.

Usage Edit

{{Flag template system|template name}}
{{Flag template system|template name|param}}
{{Flag template system|template name|1|2|3|4|5|6|7|8|9|10}}
{{Flag template system|template name|1|2|3|4|5|6|7|8|9|10&#124;more}}
{{Flag template system|template name|param&#61;value}}

Up to 10 placeholders for parameters of the specified template

Examples Edit

Note
On the source sister projects, en.wikipedia and Meta, X0, X1, X2,..., X9 are sandbox templates for experimentation on involved templates that need be in template space. An auto-cleansing software facility exists that might be used to duplicate the facility on other Sister projects.
Code Result Remark
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx up to 10 parameters, then ...
Template loop detected: Template:Tlx Template loop detected: Template:Tlx &#124; for more
Template loop detected: Template:Tlx unlimited parameters as one nowiki string
Template loop detected: Template:Tlx Template loop detected: Template:Tlx = won't work
Template loop detected: Template:Tlx Template loop detected: Template:Tlx &#61; is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx {{=}} is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx sticky nowiki is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx empty won't work
Template loop detected: Template:Tlx Template loop detected: Template:Tlx &#32; is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx &nbsp; is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx &#124; is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx Template loop detected: Template:Tlx is dubious
Template loop detected: Template:Tlx Template loop detected: Template:Tlx empty really doesn't work
Template loop detected: Template:Tlx Template loop detected: Template:Tlx two clobbers 2=one
Template loop detected: Template:Tlx Template loop detected: Template:Tlx right to left okay

See also Edit

Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl , but gives the template name in boldface type (this can be useful when stressing the difference between two similarly named templates). Template:Tlb is the same, except it uses regular text instead of a monospaced non-proportional font.

  • Template:Para – for giving examples of template parameters and values only, instead of entire templates with parameters.

Template:Tl-navcy:Nodyn:Tlx de:Vorlage:Vorlage hsb:Předłoha:Tlx hy:Կաղապար:Tlx ko:틀:Tlx ia:Patrono:Tlx os:Шаблон:Tlp mk:Шаблон:Швп ja:Template:Tlx no:Mal:Tlx pt:Predefinição:Tlx ro:Format:Tlx ru:Template:Tlx simple:Template:Tlx th:แม่แบบ:Tlx tl:Suleras:Tlx uk:Шаблон:Tlx ur:سانچہ:Tlx zh:Template:Tlx


This 'Template loop detected: Template:Tlx' template documentation is transcluded for all Tlx family templates (Tlx, Tlxc, Tlxm, Tlxw, Tlxb) [edit].Masterpage  


Template loop detected: Template:TlxTemplate loop detected: Template:Tlx
Template loop detected: Template:TlxTemplate loop detected: Template:Tlx if they might contain "=" signs.
Template loop detected: Template:TlxTemplate loop detected: Template:Tlx (for more than 10 parameters)

Purpose and naming Edit

Mnemonically 'Template link expanded'. After Template loop detected: Template:Tlx 'Template link'.

  • This template takes another template-name and some associated pipe-tricked (numbered) parameters (or 'pass parameters'), and displays them as an 'example demonstration' of how the template-name template could be coded, literally. Its primary use is in instruction and documentation.
  • Specifics: Up to 10 pass parameters (numbered or nowiki-keywords) for the specified template are displayed as 'placeholders', and over 10 parameters can be displayed using a coded vertical-bar (as in "&#124;..."). A keyword parameter can be used with equals code &#61; or {{=}} or in nowiki-text: "<nowiki>size=10</nowiki>" or all parameters as a string in "<nowiki>" tags; see Examples at bottom. For more details, see this talk page.
  • Exceptions: If the intended template lists numerous/keyword parameters, then perhaps this template should really not be used, and just hardcode the usage with <code><nowiki>, for example: <code><nowiki>{{Anytemplate|arg1=23|size=250px|other parameters...}}</nowiki></code>. If a vertical display, with parameters on their own lines, is desired, this can also be laid out manually in this manner, or more rapidly done with <pre>...</pre>.

  • If given no additional parameters except  'template name' ({{{1}}}),  it presents the same as the similar Template loop detected: Template:Documentation subpage

Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl

macro template -- a blue link nested in curly-braces-- the same as a user would apply the template without parameters, but with a noticably clearer font and spacing on most modern browsers. 

Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl

versus Tlx: Template loop detected: Template:Tlx) 
  • Comparatively, Template loop detected: Template:Tlx will not take or display additional parameters, and for minor technical reasons, may be preferred for mere listing and referencing in long pages involving a lot of template expansions.
  • Template loop detected: Template:Tlx has a named parameter subst. Setting this parameter to any string of length 1 or greater will place the string "subst:" before the template name, linked to Help:Substitution. This is useful to indicate when a template should be substituted. For example Template loop detected: Template:Tlx will display Template loop detected: Template:Tlx.
  • Additionally, Tlx will take a 'named' parameter 'SISTER' to link interwiki to other sister projects such as one of these examples: '|SISTER=W:', 'Tlx|SISTER=M:', 'Tlx|SISTER=Q:', 'Tlx|SISTER=S:', allowing documentation or discourse about a template across interwiki boundaries.

Documentation Edit

{{Flag template system}} is a generalization of Template loop detected: Template:Documentation subpage Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl , Template loop detected: Template:Documentation subpage Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl , etcetera with arguably better readable output. This depends on the browser, but too narrow uses of "{", "|", "}" in conjunction with links can be hard to read.

Usage Edit

{{Flag template system|template name}}
{{Flag template system|template name|param}}
{{Flag template system|template name|1|2|3|4|5|6|7|8|9|10}}
{{Flag template system|template name|1|2|3|4|5|6|7|8|9|10&#124;more}}
{{Flag template system|template name|param&#61;value}}

Up to 10 placeholders for parameters of the specified template

Examples Edit

Note
On the source sister projects, en.wikipedia and Meta, X0, X1, X2,..., X9 are sandbox templates for experimentation on involved templates that need be in template space. An auto-cleansing software facility exists that might be used to duplicate the facility on other Sister projects.
Code Result Remark
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx  
Template loop detected: Template:Tlx Template loop detected: Template:Tlx up to 10 parameters, then ...
Template loop detected: Template:Tlx Template loop detected: Template:Tlx &#124; for more
Template loop detected: Template:Tlx unlimited parameters as one nowiki string
Template loop detected: Template:Tlx Template loop detected: Template:Tlx = won't work
Template loop detected: Template:Tlx Template loop detected: Template:Tlx &#61; is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx {{=}} is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx sticky nowiki is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx empty won't work
Template loop detected: Template:Tlx Template loop detected: Template:Tlx &#32; is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx &nbsp; is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx &#124; is okay
Template loop detected: Template:Tlx Template loop detected: Template:Tlx Template loop detected: Template:Tlx is dubious
Template loop detected: Template:Tlx Template loop detected: Template:Tlx empty really doesn't work
Template loop detected: Template:Tlx Template loop detected: Template:Tlx two clobbers 2=one
Template loop detected: Template:Tlx Template loop detected: Template:Tlx right to left okay

See also Edit

Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl , but gives the template name in boldface type (this can be useful when stressing the difference between two similarly named templates). Template:Tlb is the same, except it uses regular text instead of a monospaced non-proportional font.

  • Template:Para – for giving examples of template parameters and values only, instead of entire templates with parameters.

Template:Tl-navcy:Nodyn:Tlx de:Vorlage:Vorlage hsb:Předłoha:Tlx hy:Կաղապար:Tlx ko:틀:Tlx ia:Patrono:Tlx os:Шаблон:Tlp mk:Шаблон:Швп ja:Template:Tlx no:Mal:Tlx pt:Predefinição:Tlx ro:Format:Tlx ru:Template:Tlx simple:Template:Tlx th:แม่แบบ:Tlx tl:Suleras:Tlx uk:Шаблон:Tlx ur:سانچہ:Tlx zh:Template:Tlx


How it is displayed Edit

This template should be placed at the top of "/doc" pages. It changes output depending on where it is viewed:

  • On a "/doc" page, it displays a box explaining template documentation and links to the template page.
  • On other pages (ie, pages transcluding the "/doc" page), the template will not show. The template page itself (which contains Template loop detected: Template:Documentation subpage

Template:High-risk


The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:

<code>{{Tl|Example}}
generates
Template loop detected: Template:Tl

More complex variations are described below.

ExampleEdit

Code Result
{{Tl|X0}} {{X0}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} Template loop detected: Template:Tl

See alsoEdit

Template:Tl-navar:قالب:قا az:Şablon:ŞK ba:Ҡалып:Ҡалып be-x-old:Шаблён:Ш bg:Шаблон:Ш ca:Plantilla:Tl cs:Šablona:Šablona da:Skabelon:Vis de:Vorlage:Vorlage dsb:Pśedłoga:Pśedłoga en:Template:Tl eo:Ŝablono:Ŝ es:Plantilla:Template link fa:الگو:الگوی fi:Malline:Malline fr:Modèle:M he:תבנית:תב hr:Predložak:Tl hy:Կաղապար:Կ hsb:Předłoha:Předłoha ia:Patrono:Tl ja:Template:Tl ka:თარგი:Tl ko:틀:틀 kw:Template:Viz my:Template:Tl or:Template:Tl pih:Template:Tl pl:Szablon:S pt:Predefinição:Ligação para predefinição ru:Шаблон:Tl sk:Šablóna:Tl sl:Predloga:Tl stq:Foarloage:Foarloage sv:Mall:Mall th:แม่แบบ:Tl tr:Şablon:Tl uk:Шаблон:Tl ur:سانچہ:Tl vi:Tiêu bản:Tl zh:Template:Tl zh-yue:Template:Tl </code>) will automatically note that the documentation is transcluded from a subpage.

Functions Edit

In addition to the output message, the template categorizes pages to Category:Template documentation, Category:User documentation, or similar (named after the subject space), but only for documentation pages in namespaces with the subpage feature. It defaults the sort key to the page name without namespace (ie, "Foo" on "Template:Foo", so it would be sorted in categories under 'F').

See also Edit

Template:Documentation/see alsoals:Vorlage:Dokumentation/Dokuseite ar:قالب:صفحة توثيق فرعية bar:Vorlage:Dokumentation/Dokuseitn be-x-old:Шаблён:Падстаронка-дакумэнтацыя bg:Шаблон:Подстраница с документация ca:Plantilla:Subpàgina de plantilla cs:Šablona:Podstránka s dokumentací da:Skabelon:Skabelondokumentationsside vist direkte de:Vorlage:Dokumentation/Dokuseite es:Plantilla:Subpágina de documentación fa:الگو:Documentation subpage fr:Modèle:Documentation modèle vue directement eu:Txantiloi:Txantiloi dokumentazio azpiorrialdea ko:틀:틀 설명문서 안내 hy:Կաղապար:Documentation subpage id:Templat:Subhalaman dokumentasi is:Snið:Skjalsíða ja:template:Documentation subpage ka:template:თარგის ინფო გვერდის ხედვა პირდაპირ la:Formula:Documentation subpage mk:Шаблон:Документација потстрана ml:ഫലകം:Template doc page transcluded nl:Sjabloon:Sjabdoc direct nn:Mal:Dokumentasjonsunderside no:Mal:Dokumentasjonsunderside pl:Szablon:Podstrona dokumentacji pt:Predefinição:Subpágina de documentação ro:template:Template doc page viewed directly ru:Шаблон:Docpage simple:Template:Documentation subpage sl:template:Dokumentacijska podstran sl:template:Dokumentacijska podstran sq:Stampa:Documentation subpage sv:Mall:Dokumentationssida tpi:Template:Documentation subpage th:แม่แบบ:Documentation subpage tr:Şablon:Şablon:Şablon belge sayfası uk:Шаблон:Підсторінка документації ur:Template:Documentation subpage zh:模板:Template doc page viewed directly

DescriptionEdit

Displays a flag of the named parameter in "icon" size, currently 22x20 pixels plus a one pixel border. The image also has a clickable link to the associated article.

UsageEdit

{{flagicon|name|variant=|size=}}

name
The first parameter is mandatory, and identifies the name of the country, region, city, etc. A full list of available parameters can be found in Category:Country data templates. For example, Template:Country data Poland is used when the name parameter is specified as Poland. Many flags are also available via shortened "aliases", such as standard three letter country codes as specified by ISO 3166-1 alpha-3, IOC, or FIFA. The list of available "aliases" are found in Category:Country data redirects. Many of these country codes could be considered obscure, so it is recommended to use the full country name.
variant
The second parameter is optional, and identifies a flag variant to be used instead of the standard flag. This is most often used for historical flags but can also be used to specify naval flags, sport-use flags, etc. The list of available flag variants for each country is documented on the specific page for the country data template. For example, Template:Country data Poland includes a description of each of the available flag variations for Poland. This parameter can be a named parameter (e.g. "variant=1815"), or a positional parameter, always after the country name.
size
This parameter is optional, and is used to specify the maximum width and/or height of the flag image. This parameter is specified using standard image syntax.

ExamplesEdit

Wikicode Results Notes
{{flagicon|Poland}} Template:Flagicon
{{flagicon|POL}} Template:Flagicon Uses the ISO/IOC/FIFA country code
{{flagicon|Poland|1815}} Template:Flagicon Specifies a historical flag
{{flagicon|Poland|variant=1815}} Template:Flagicon
{{flagicon|POL|naval}} Template:Flagicon Specifies the naval ensign
{{flagicon|POL|air force}} Template:Flagicon Specifies the air force flag
{{flagicon|Poland|size=50px}} Template:Flagicon Sets width to 50 pixels
{{flagicon|POL|naval|size=999x30px}} Template:Flagicon Sets height to 30 pixels

Implementation notesEdit

This template uses the data templates listed under Category:Country data templates, which contain the data what to display and the formatter Template:Flagicon/core, which contains the logic how to display the flag.

Inside each country data template, this template uses the following parameters:

  • flag alias — name of the image file to display
  • flag alias-xxxx — name of the image file of flag variant xxxx
  • alias — used to display the alt attribute of the image (defaults to "Flag of alias")

Related templates Edit

  • Template:Flag is used to display a wikilinked name next to the flag. The displayed name will be the same as the parameter used with the template, but the link target will be the main article for the country (in these examples, Poland).
  • Template:Flagcountry is also used to display a wikilinked name next to the flag. The displayed name will always be the same, regardless of whether or not a country code alias is used as the template parameter.

See also Edit


Subcategories

This category has the following 2 subcategories, out of 2 total.

C

F

Pages in category "Flag template system"

The following 4 pages are in this category, out of 4 total.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.