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 Debresser (talk | contribs) at 15:50, 5 October 2009 (Request: Shouldn't.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
WikiProject iconTemplates
WikiProject iconThis redirect is within the scope of WikiProject Templates, a group dedicated to improving the maintenance of Wikipedia's templates. This particular template is especially important to the project because it is used in the maintenance of other templates. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
Note icon
This template should only be transcluded in the Wikipedia talk, Help talk, or Category talk namespace(s).

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]

Request

I need a fifth parameter for one example. And the protection template should really be on the documentation page (I have added it there). Could you please copy the following text to do these two minor things:

{{[[Wikipedia:Template substitution|subst]]:[[{{ns:Template}}:{{{1|Tlsp}}}|{{{1|Tlsp}}}]]{{#if:{{{2|}}}||{{{2}}}}}{{#if:{{{3|}}}||{{{3}}}}}{{#if:{{{4|}}}||{{{4}}}}}{{#if:{{{5|}}}||{{{5}}}}}{{#if:{{{6|}}}||<i>etc.</i>}}{{#if:{{{subst|}}}||subst={{{subst}}}}}}}<noinclude>
{{Documentation}}
</noinclude>

—Preceding unsigned comment added by Debresser (talkcontribs) 13:54, 5 October 2009 (UTC)[reply]

You should be able to fake this with something like {{tlsp|tlsp|1|2|3{{!}}4{{!}}5{{!}}6{{!}}7|and more}} → {{subst:tlsp|1|2|3|4|5|6|7|and more}}, right? I'm a bit loath to change the signature of this template since it's conceivable that someone was relying on the special behavior of the fifth parameter displaying the "etc.", right? Amalthea 15:27, 5 October 2009 (UTC)[reply]
Conceivable but highly unlikely. If he were, he should have left a warning. Templates are updated once in a while, and this was to be expected. Debresser (talk) 15:36, 5 October 2009 (UTC)[reply]
Maybe, but I'm not going to look through the 1500+ transclusions. We could categorize the ones that are displaying the etc. parameter. Can't the workaround be used though? Amalthea 15:46, 5 October 2009 (UTC)[reply]
People should definitely not rely on the "etc.". Debresser (talk) 15:50, 5 October 2009 (UTC)[reply]