Template talk:Tlsp

From Wikipedia, the free encyclopedia

Contents

[edit] Documentation

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

[edit] Usage

Up to three placeholders for parameters of the specified template name:
{{tlsp|template name}}
{{tlsp|template name|param}}
{{tlsp|template name|1|2|3}}
{{tlsp|template name|1|2|3|more}}
{{tlsp|template name|param=value}}
For templates supporting optional substitution just add subst=subst:
{{tlsp|template name|1|2|3|subst=subst:}}

[edit] Example

Code Result
{{tlsp|template}} {{subst:template}}
{{tlsp|template|1st|2nd|3rd}} {{subst:template|1st|2nd|3rd}}
{{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|too much}} {{subst:template|1|2|3|etc.}}
{{tlsp|template|1|2|3|subst=subst:}} {{subst:template|1|2|3|subst=subst:}}

For similar examples see Tlx.

[edit] Comparison

Code Result
{{tl|x0}} {{x0}}
{{tlp|x1|param}} {{x1|param}}
{{tls|x0}} {{subst:x0}}
{{tlsp|x3|1st|2nd|3rd}} {{subst:x3|1st|2nd|3rd}}
{{tlu|template:x3|1st|2nd|3rd}}   {{template:x3|1st|2nd|3rd}}
{{tlx|x3|1st|2nd|3rd}} {{x3|1st|2nd|3rd}}


[edit] See also

[edit] Discussion

Add issues below as you see fit, sign with ~~~~

[edit] Historical

An older version of {{tlsp}} supported only one example parameter for the specified template, more parameters had to be separated by |. This is still necessary for more than three parameters, but otherwise the direct approach now also works. Omniplex 19:33, 24 March 2006 (UTC)

[edit] Spaces

Are there any objections to removing the spaces ( ) found just inside the opening and closing brackets? This template's peers {{Tl}}, {{Tls}}, and {{Tlp}} do not have them. ×Meegs 22:19, 16 July 2006 (UTC)

I see {{Tlx}} does have them, though. ×Meegs 22:21, 16 July 2006 (UTC)