फलकम्:Tlsp
{{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
सम्पाद्यताम्- 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
सम्पाद्यताम्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
सम्पाद्यताम्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}} | फलकम्:Tlu |
{{tlx|x3|1st|2nd|3rd}} | {{x3|1st|2nd|3rd}} |
See also
सम्पाद्यताम्General-purpose formatting
सम्पाद्यताम्Link style → | Linked | Unlinked | Linked with subst | Linked including braces | Linked with alternative text | |
---|---|---|---|---|---|---|
Text style ↓ | ↓ {{tlg}} options1 → | N/A | फलकम्:Code | फलकम्:Code | फलकम्:Code | फलकम्:Code फलकम्:Code |
Normal | N/A | {{tlg}}1, 2 {{tl}} {{tlp}}2 |
{{tlf}}2 | {{tls}} {{tlsp}} |
{{tn}} | {{tla}} |
Code
|
फलकम्:Code or फलकम्:Code |
{{tlx}} | {{tlc}}2 {{tld}}2 {{tnull}} |
{{tlxs}} | N/A | |
Bold | फलकम्:Code | {{tlb}} | N/A | |||
Bold code
|
फलकम्:Code | {{tlxb}} |
The above documentation is transcluded from फलकम्:Tlsp/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |