Teamplaid:Tlsp
Coltas
{{Tlsp}} 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
[deasaich]- Up to five placeholders for parameters of the specified template name:
- {{Tlsp|template name}}
- {{Tlsp|template name|param}}
- {{Tlsp|template name|1|2|3|4|5}}
- {{Tlsp|template name|2=param=value}} Note: start from 2 because the "name" is parameter 1. Or...
- {{Tlsp|template name|param=value}}
- For templates supporting optional substitution just add
subst=subst:
- {{Tlsp|template name|1|2|3|subst=subst:}}
Example
[deasaich]Code | Result |
{{Tlsp|template}} | {{subst:template}} |
{{Tlsp|template|1st|2nd|3rd|4th|5th}} | {{subst:template|1st|2nd|3rd|4th|5th}} |
{{Tlsp|template|2=param=value}} | {{subst:template|param=value}} |
{{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|4|5|too many}} | {{subst:template|1|2|3|4|5}}{{Tlsp}} only supports up to 5 template parameters |
{{Tlsp|template|1|2|3|4|5|subst=subst:}} | {{subst:template|1|2|3|4|5|subst=subst:}} |
For similar examples see Tlx.
Comparison
[deasaich]Code | Result |
{{Tl|x0}} | {{x0}} |
{{Tlp|x1|param}} | {{x1|param}} |
{{Tls|x0}} | {{subst:x0}} |
{{Tlsp|x3|1st|2nd|3rd|4th|5th}} | {{subst:x3|1st|2nd|3rd|4th|5th}} |
{{Tlu|template:x3|1st|2nd|3rd}} | {{template:x3|1st|2nd|3rd}} |
{{Tlx|x3|1st|2nd|3rd}} | {{x3|1st|2nd|3rd}} |
See also
[deasaich]- Teamplaid:Tlsp(deasaich deasbaireachd ceanglaichean-lìn eachdraidh) up to five parameters
- Teamplaid:Tl(deasaich deasbaireachd ceanglaichean-lìn eachdraidh) no parameter and no subst
- Teamplaid:Tlp(deasaich deasbaireachd ceanglaichean-lìn eachdraidh) Tl + parameter
- Teamplaid:Tls(deasaich deasbaireachd ceanglaichean-lìn eachdraidh) Tl + subst
- Teamplaid:Tlu(deasaich deasbaireachd ceanglaichean-lìn eachdraidh) like Tlx in any namespace
- Teamplaid:Tlx(deasaich deasbaireachd ceanglaichean-lìn eachdraidh) like Tlsp without subst
The above documentation is transcluded from Teamplaid:Tlsp/documentation. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /documentation subpage. Subpages of this template. |