Template talk:Tl2

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

parameters in lowercase[edit]

Using all uppercase inside templates is very non-standard. Please change the code to also allow for lowercase parameter names:

{{{LANG|{{{lang|}}}}}}{{{SISTER|{{{sister|}}}}}}

Thanks —capmo (talk) 11:28, 19 March 2013 (UTC)[reply]

Given that these parameters appear to basically never be used, it's not obvious why we even need this template. I've removed it from its most common transclusion to get an idea of how widely it's deployed apart from that (which should hopefully weed out most of the 12,000 current uses); after that I'm going to take it to TfD. Chris Cunningham (user:thumperward) (talk) 12:32, 19 March 2013 (UTC)[reply]
Aww, that would be a shame, as I just completely reworked it... but if you think it should go, I won't stop you. The "SISTER" and "LANG" parameters were only transcluded on 28 pages, so I deprecated them and replaced them with "sister" and "lang" parameters, and fixed the most important transclusions. I also made it so that the colon didn't have to be specified manually, and I updated the docs. — Mr. Stradivarius ♪ talk ♪ 12:43, 19 March 2013 (UTC)[reply]
Thinking about this a bit more, merging with Template:Tlx might be a useful way of fixing things. At a glance at the Tlx code, it looks like the LANG and SISTER parameters have the same shortcomings as they did in this template (i.e. they're the wrong way round). It might be too late to insert the colons automatically into that one, but it couldn't hurt to have a look. — Mr. Stradivarius ♪ talk ♪ 12:48, 19 March 2013 (UTC)[reply]
I didn't even realise {{tlx}} already took these options. At any rate, this is an area in need of consolidation, as it's absurd that we have more than half a dozen templates for trivial differences in output here. Chris Cunningham (user:thumperward) (talk) 12:53, 19 March 2013 (UTC)[reply]
I agree with merging them and as far as the colons go, the template could test if there is a colon there or not and add them as needed. T13   ( C • M • Click to learn how to view this signature as intended ) 12:56, 19 March 2013 (UTC)[reply]