Jump to content

साचा:Tlsp/doc

विकिस्रोत कडून

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

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

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|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}}
Template linking templates
Link Style Linked Unlinked Linked with subst: Linked including braces Linked with alternative text
Text Style {{tlg}} option -- nolink=yes subst=yes braceinside=yes alttext=FOO
Normal -- {{tl}}, {{tlp}}; {{tlg}} {{tlf}} {{tls}}, {{tlsp}} {{tn}} {{tla}}
Bold bold=yes {{tlb}}
Teletype tt=yes {{tlx}} {{tld}} {{tlxs}}
Bold Teletype bold=yes|tt=yes {{tlxb}}
Italic Teletype italic=yes|tt=yes {{tlxi}}
Code code=yes {{tlc}}
NOTE: {{tlg}} is the most general, allowing any combination of the above options.