Stampa:Tlsp
Pamja
{{Tlsp}} is used in stampa lists. Unlike
{{Tlp}} it includes "subst". Unlike
{{Tls}} it allows to specify a parameter. These
features are hints how to use the specified stampa.
Usage
[Redakto nëpërmjet kodit]- Up to five placeholders for parameters of the specified titulli i stampës:
{{Tlsp|titulli i stampës}}{{Tlsp|titulli i stampës|param}}{{Tlsp|titulli i stampës|1|2|3|4|5}}{{Tlsp|titulli i stampës|2=param=value}}Note: start from 2 because the "name" is parameter 1. Or...{{Tlsp|titulli i stampës|param=value}}- For stampas supporting optional substitution just add
subst=subst: {{Tlsp|titulli i stampës|1|2|3|subst=subst:}}
Example
[Redakto nëpërmjet kodit]| Code | Result |
{{tlsp|stampa}} |
{{subst:stampa}} |
{{tlsp|stampa|1st|2nd|3rd|4th|5th}} |
{{subst:stampa|1st|2nd|3rd|4th|5th}} |
{{tlsp|stampa|2=param=value}} |
{{subst:stampa|param=value}} |
{{tlsp|stampa|param=value}} |
{{subst:stampa|param=value}} |
{{tlsp|stampa|1|2|3|okay}} |
{{subst:stampa|1|2|3|okay}} |
{{tlsp|stampa|1|2|3|4|5|too many}} |
{{subst:stampa|1|2|3|4|5}}{{tlsp}} only supports up to 5 template parameters |
{{tlsp|stampa|1|2|3|4|5|subst=subst:}} |
{{subst:stampa|1|2|3|4|5|subst=subst:}} |
For similar examples see Tlx.
Comparison
[Redakto nëpërmjet kodit]| 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|stampa:x3|1st|2nd|3rd}} |
{{stampa:x3|1st|2nd|3rd}} |
{{tlx|x3|1st|2nd|3rd}} |
{{x3|1st|2nd|3rd}} |
See also
[Redakto nëpërmjet kodit]- Template:Tlsp(edit talk links history) up to five 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