Jump to content

Stampa:Tlsp/doc

Nga Wikipedia, enciklopedia e lirë

{{Tlsp/doc}} 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.

Up to five placeholders for parameters of the specified titulli i stampës:
{{Tlsp/doc|titulli i stampës}}
{{Tlsp/doc|titulli i stampës|param}}
{{Tlsp/doc|titulli i stampës|1|2|3|4|5}}
{{Tlsp/doc|titulli i stampës|2=param=value}} Note: start from 2 because the "name" is parameter 1. Or...
{{Tlsp/doc|titulli i stampës|param=value}}
For stampas supporting optional substitution just add subst=subst:
{{Tlsp/doc|titulli i stampës|1|2|3|subst=subst:}}
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.

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}}
up to five parameters
no parameter and no subst
Tl + parameter
Tl + subst
like Tlx in any namespace
like Tlsp without subst