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 16:56, 5 October 2009 (Request: IMO). 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.". Nor do I see any conceivable use. Debresser (talk) 15:50, 5 October 2009 (UTC)[reply]
It is by far more likely that nobody expected this template would need five parameters. Debresser (talk) 15:51, 5 October 2009 (UTC)[reply]
Well yeah, obviously it was built for four parameters. I certainly wouldn't be surprised if someone did intentionally use the "etc." though, with a template that supports a quite high number of parameters for example. If that someone was smart he supplied "etc." or "..." as a fifth parameter himself, but if he just used "X" or something then he'll end up with a very weird result. I for one am not comfortable with just changing the signature of a template and hoping for the best, I'd much rather do it in a controlled way, by conditional categorization and purging of all transcluding pages, and then showing a big red error if a sixth parameter is supplied. We can also wait and see what Martin says, he's bound to show up here eventually since he's still diligently fulfilling editprotected requests.
But seriously, can't that workaround be used? Amalthea 16:28, 5 October 2009 (UTC)[reply]
I wouldn't know. Looks like a perversion to me, and not a workaround. We have a template here that can take as many parameters as needed, so that's the best course of action, IMO. Debresser (talk) 16:56, 5 October 2009 (UTC)[reply]