Template:Template link with subst and parameters/doc
Appearance
![]() | This is a documentation subpage for Template:Template link with subst and parameters. It may contain usage information, categories and other content that is not part of the original template page. |
{{Template link with subst and parameters/doc}}
is used in template lists. Unlike
{{Tlp}}
it includes "subst". Unlike
{{Tls}}
it allows to specify a parameter. These
features are hints how to use the specified template.
Usage
- Up to three placeholders for parameters of the specified template name:
{{Template link with subst and parameters/doc|template name}}
{{Template link with subst and parameters/doc|template name|param}}
{{Template link with subst and parameters/doc|template name|1|2|3}}
{{Template link with subst and parameters/doc|template name|1|2|3|more}}
{{Template link with subst and parameters/doc|template name|param=value}}
- For templates supporting optional substitution just add subst=subst:
{{Template link with subst and parameters/doc|template name|1|2|3|subst=subst:}}
Example
Code | Result |
{{tlsp|template}}
|
{{subst:template}} |
{{tlsp|template|1st|2nd|3rd}}
|
{{subst:template|1st|2nd|3rd}} |
{{tlsp|template|param=value}}
|
{{subst:template|param=value}} |
{{tlsp|template|1|2|3|okay}}
|
{{subst:template|1|2|3|okay}} |
{{tlsp|template|1|2|3|too much}}
|
{{subst:template|1|2|3|too much}} |
{{tlsp|template|1|2|3|subst=subst:}}
|
{{subst:template|1|2|3}} |
For similar examples see Tlx.
Comparison
Code | Result |
{{tl|x0}}
|
{{x0}} |
{{tlp|x1|param}}
|
{{x1|param}} |
{{tls|x0}}
|
{{subst:x0}} |
{{tlsp|x3|1st|2nd|3rd}}
|
{{subst:x3|1st|2nd|3rd}} |
{{tlu|template:x3|1st|2nd|3rd}}
|
{{template:x3|1st|2nd|3rd}} |
{{tlx|x3|1st|2nd|3rd}}
|
{{x3|1st|2nd|3rd}}
|
See also
- Template:Template link with subst and parameters/doc(edit talk links history) up to four parameters
- Template:Tl(edit talk links history) no parameter and no subst
- Template:Tlp(edit talk links history) Tl + parameter
- Template:Tls(edit talk links history) Tl + subst
- Template:Tlu(edit talk links history) like Tlx in any namespace
- Template:Tlx(edit talk links history) like Tlsp without subst