Template:Template link with subst and parameters/doc: Difference between revisions

Content deleted Content added
Documentation subpage
from talk page
Line 1:
{{Documentation subpage}}
 
{{Tlx|{{PAGENAME}}}} is used in template lists. Unlike
Usage: {{Tlx|Tlsp|template name|first parameter|...}}<br />
{{Tlx|Tlp}} it includes "[[WP:SUBST|subst]]". Unlike
Up to three parameters for the specified template are displayed as placeholders, more parameters are shown as "<tt>|</tt>''etc.''", for details see {{Tlx|Tlx}} and the [[{{TALKPAGENAME}}|talk]] page.
{{Tlx|Tls}} it allows to specify a parameter. These
features are hints how to use the specified template.
 
=== Usage ===
;If the template supports [[Help:Substitution#Optional_substitution|optional substitution]] with <tt>subst=subst:</tt> just add this info&#58;
 
:{{Tlx|Tlsp|template name|up to three parameters|4=subst=subst:}}
;Up to three placeholders for parameters of the specified template name&#58;
:{{Tlx|{{PAGENAME}}|template name}}
:{{Tlx|{{PAGENAME}}|template name|param}}
:{{Tlx|{{PAGENAME}}|template name|1<tt>&#124;</tt>2<tt>&#124;</tt>3}}
:{{Tlx|{{PAGENAME}}|template name|1<tt>&#124;</tt>2<tt>&#124;</tt>3&amp;#124;more}}
:{{Tlx|{{PAGENAME}}|template name|param&amp;#61;value}}
;IfFor thetemplates template supportssupporting [[Help:Substitution#Optional_substitution|optional substitution]] withjust add <tt>subst=subst:</tt> just add this info&#58;
:{{Tlx|Tlsp{{PAGENAME}}|template name|up to three parameters1<tt>&#124;</tt>2<tt>&#124;</tt>3|4=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<tt>&#124;</tt>3rd}}
| {{tlsp|template|1st|2nd|3rd}}
|-
| {{Tlx|tlsp|template|param&amp;#61;value}}
| {{tlsp|template|param&#61;value}}
|-
| {{Tlx|tlsp|template|1<tt>&#124;</tt>2<tt>&#124;</tt>3&amp;#124;okay}}
| {{tlsp|template|1|2|3&#124;okay}}
|-
| {{Tlx|tlsp|template|1<tt>&#124;</tt>2<tt>&#124;</tt>3|too much}}
| {{tlsp|template|1|2|3|too much}}
|-
| {{Tlx|tlsp|template|1<tt>&#124;</tt>2<tt>&#124;</tt>3|4=subst=subst:}}
| {{tlsp|template|1|2|3|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<tt>&#124;</tt>2nd<tt>&#124;</tt>3rd}}
| {{tlsp|x3|1st|2nd|3rd}}
|-
| {{Tlx|tlu|template:x3|1st<tt>&#124;</tt>2nd<tt>&#124;</tt>3rd}} &#160;
| {{tlu|template:x3|1st|2nd|3rd}}
|-
| {{Tlx|tlx|x3|1st<tt>&#124;</tt>2nd<tt>&#124;</tt>3rd}}
| {{tlx|x3|1st|2nd|3rd}}
|}{{-}}
 
=== See also ===
 
* {{Lts|{{PAGENAME}}}} up to three 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
* {{Lts|doctl}}
 
<includeonly>