Template talk:Template link with subst and parameters
![]() | Templates ![]() | ||||||
|
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)
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)
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)
Done. Could you move things over from this page? — Martin (MSGJ · talk) 09:37, 1 May 2009 (UTC)
Request
![]() | It is requested that an edit be made to the template-protected redirect at Template:Template link with subst and parameters. (edit · history · last · links · sandbox · edit sandbox · sandbox history · sandbox last edit · sandbox diff · test cases · transclusion count · protection log) This template must be followed by a complete and specific description of the request, so that an editor unfamiliar with the subject matter could complete the requested edit immediately.
Edit requests to template-protected pages should only be used for edits that are either uncontroversial or supported by consensus. If the proposed edit might be controversial, discuss it on the protected page's talk page before using this template. Consider making changes first to the redirect's sandbox and test them thoroughly here before submitting an edit request. To request that a page be protected or unprotected, make a protection request. When the request has been completed or denied, please add the |
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 (talk • contribs) 13:54, 5 October 2009 (UTC)
- 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)
- 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)
- 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)
- People should definitely not rely on the "etc.". Nor do I see any conceivable use. Debresser (talk) 15:50, 5 October 2009 (UTC)
- It is by far more likely that nobody expected this template would need five parameters. Debresser (talk) 15:51, 5 October 2009 (UTC)
- 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)- 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)
- 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.
- 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)
- 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)