Changes
category
{{Documentation subpage}}
{{Tlx|{{PAGENAME}}}} is used in template lists. Unlike
{{Tlx|Tlp}} it includes "[[WP:SUBST|subst]]". Unlike
{{Tlx|Tls}} it allows to specify a parameter. These
features are hints how to use the specified template.
=== Usage ===
;Up to five placeholders for parameters of the specified template name:
:{{Tlx|{{PAGENAME}}|template name}}
:{{Tlx|{{PAGENAME}}|template name|param}}
:{{Tlx|{{PAGENAME}}|template name|1|2|3|4|5}}
:{{Tlx|{{PAGENAME}}|template name|3=2=param=value}} Note: start from 2 because the "name" is parameter 1. Or...
:{{Tlx|{{PAGENAME}}|template name|param=value}}
;For templates supporting [[Help:Substitution#Optional_substitution|optional substitution]] just add <tt>subst=subst:</tt>
:{{Tlx|{{PAGENAME}}|template name|1|2|3|6=subst=subst:}}
=== Example ===
<!-- some magic here where Tlx talks about Tlsp,
Tlx has the same limitations wrt parameters -->
{|
| '''Code'''
| '''Result'''
|-
| {{Tlx|tlsp|template}}
| {{tlsp|template}}
|-
| {{Tlx|tlsp|template|1st|2nd|3rd|4th|5th}}
| {{tlsp|template|1st|2nd|3rd|4th|5th}}
|-
| {{Tlx|tlsp|template|3=2=param=value}}
| {{tlsp|template|2=param=value}}
|-
| {{Tlx|tlsp|template|param&#61;value}}
| {{tlsp|template|param=value}}
|-
| {{Tlx|tlsp|template|1|2|3&#124;okay}}
| {{tlsp|template|1|2|3|okay}}
|-
| {{Tlx|tlsp|template|1|2|3|4|5|too many}}
| {{tlsp|template|1|2|3|4|5|too many}}
|-
| {{Tlx|tlsp|template|1|2|3|4|5|8=subst=subst:}}
| {{tlsp|template|1|2|3|4|5|subst=subst:}}
|}
''For similar examples see [[Template talk:Tlx#Example|Tlx]].''
=== Comparison ===
{|
| '''Code'''
| '''Result'''
|-
| {{Tlx|tl|x0}}
| {{tl|x0}}
|-
| {{Tlx|tlp|x1|param}}
| {{tlp|x1|param}}
|-
| {{Tlx|tls|x0}}
| {{tls|x0}}
|-
| {{Tlx|tlsp|x3|1st|2nd|3rd|4th|5th}}
| {{tlsp|x3|1st|2nd|3rd|4th|5th}}
|-
| {{Tlx|tlu|template:x3|1st|2nd|3rd}}  
| {{tlu|template:x3|1st|2nd|3rd}}
|-
| {{Tlx|tlx|x3|1st|2nd|3rd}}
| {{tlx|x3|1st|2nd|3rd}}
|}{{-}}
=== See also ===
* {{Lts|{{PAGENAME}}}} up to five parameters
* {{Lts|Tl}} no parameter and no subst
* {{Lts|Tlp}} Tl + parameter
* {{Lts|Tls}} Tl + subst
* {{Lts|Tlu}} like Tlx in any namespace
* {{Lts|Tlx}} like Tlsp without subst
<includeonly>
[[Category:Internal template-link templates]]
</includeonly>
{{Tlx|{{PAGENAME}}}} is used in template lists. Unlike
{{Tlx|Tlp}} it includes "[[WP:SUBST|subst]]". Unlike
{{Tlx|Tls}} it allows to specify a parameter. These
features are hints how to use the specified template.
=== Usage ===
;Up to five placeholders for parameters of the specified template name:
:{{Tlx|{{PAGENAME}}|template name}}
:{{Tlx|{{PAGENAME}}|template name|param}}
:{{Tlx|{{PAGENAME}}|template name|1|2|3|4|5}}
:{{Tlx|{{PAGENAME}}|template name|3=2=param=value}} Note: start from 2 because the "name" is parameter 1. Or...
:{{Tlx|{{PAGENAME}}|template name|param&#61;value}}
;For templates supporting [[Help:Substitution#Optional_substitution|optional substitution]] just add <tt>subst=subst:</tt>
:{{Tlx|{{PAGENAME}}|template name|1|2|3|6=subst=subst:}}
=== Example ===
<!-- some magic here where Tlx talks about Tlsp,
Tlx has the same limitations wrt parameters -->
{|
| '''Code'''
| '''Result'''
|-
| {{Tlx|tlsp|template}}
| {{tlsp|template}}
|-
| {{Tlx|tlsp|template|1st|2nd|3rd|4th|5th}}
| {{tlsp|template|1st|2nd|3rd|4th|5th}}
|-
| {{Tlx|tlsp|template|3=2=param=value}}
| {{tlsp|template|2=param=value}}
|-
| {{Tlx|tlsp|template|param&#61;value}}
| {{tlsp|template|param=value}}
|-
| {{Tlx|tlsp|template|1|2|3&#124;okay}}
| {{tlsp|template|1|2|3|okay}}
|-
| {{Tlx|tlsp|template|1|2|3|4|5|too many}}
| {{tlsp|template|1|2|3|4|5|too many}}
|-
| {{Tlx|tlsp|template|1|2|3|4|5|8=subst=subst:}}
| {{tlsp|template|1|2|3|4|5|subst=subst:}}
|}
''For similar examples see [[Template talk:Tlx#Example|Tlx]].''
=== Comparison ===
{|
| '''Code'''
| '''Result'''
|-
| {{Tlx|tl|x0}}
| {{tl|x0}}
|-
| {{Tlx|tlp|x1|param}}
| {{tlp|x1|param}}
|-
| {{Tlx|tls|x0}}
| {{tls|x0}}
|-
| {{Tlx|tlsp|x3|1st|2nd|3rd|4th|5th}}
| {{tlsp|x3|1st|2nd|3rd|4th|5th}}
|-
| {{Tlx|tlu|template:x3|1st|2nd|3rd}}  
| {{tlu|template:x3|1st|2nd|3rd}}
|-
| {{Tlx|tlx|x3|1st|2nd|3rd}}
| {{tlx|x3|1st|2nd|3rd}}
|}{{-}}
=== See also ===
* {{Lts|{{PAGENAME}}}} up to five parameters
* {{Lts|Tl}} no parameter and no subst
* {{Lts|Tlp}} Tl + parameter
* {{Lts|Tls}} Tl + subst
* {{Lts|Tlu}} like Tlx in any namespace
* {{Lts|Tlx}} like Tlsp without subst
<includeonly>
[[Category:Internal template-link templates]]
</includeonly>