Jump to content

Template talk:Template link with subst and parameters

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by MSGJ (talk | contribs) at 09:37, 1 May 2009 (Documentation: done). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Documentation

{{Template link with subst and parameters}} 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 three placeholders for parameters of the specified template name:
{{Template link with subst and parameters|template name}}
{{Template link with subst and parameters|template name|param}}
{{Template link with subst and parameters|template name|1|2|3}}
{{Template link with subst and parameters|template name|1|2|3|more}}
{{Template link with subst and parameters|template name|param=value}}
For templates supporting optional substitution just add subst=subst:
{{Template link with subst and parameters|template name|1|2|3|subst=subst:}}

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|too much}}
{{tlsp|template|1|2|3|subst=subst:}} {{subst:template|1|2|3}}

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

See also

Discussion

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

Historical

An older version of {{Template link with subst and parameters}} 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)[reply]

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)[reply]

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

Documentation

{{editprotected}} Please move the template's documentation to a seperate /doc page. (Replace all of the documentation here to the /doc page) MC10 | Sign here! 04:24, 1 May 2009 (UTC)[reply]

 Done. Could you move things over from this page? — Martin (MSGJ · talk) 09:37, 1 May 2009 (UTC)[reply]