Template talk:Tl

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

I'm really sorry for those who interested in tagalog, but changing this template breaks half of Commons. -Samulili 17:21, 2 December 2006 (UTC)[reply]

  • Now how do you suggest to have Tagalog translations? I myself am a Tagalog-speaker interested in contributing to Commons but as you can see this is prevented by this redirect. -- Felipe Aira 11:59, 19 November 2007 (UTC)
You can use {{Tgl}}. Rocket000 16:03, 10 January 2008 (UTC)[reply]

{{tl|int:license-header}} gives a redlink instead of {{int:license-header}}. Can this be fixed? Railwayfan2005 (talk) 20:15, 22 April 2010 (UTC)[reply]

That's because it's not a template. I think it's a bug in the MediaWiki software which is currently being exploited (the internationalization language thing), but I could be wrong about the bug part. The non-template part I'm sure of. :-) Killiondude (talk) 23:11, 22 April 2010 (UTC)[reply]

It’s not a bug, it’s a feature. You can use the {{magic word}} template instead, e.g.:

{{magic word|int|[[MediaWiki:license-header|license‑header]]}}

Renders as:

— ExE Boss (talk) 12:45, 23 September 2021 (UTC)[reply]

Display[edit]

Is not it more aesthetical {{Tl}} to {{Tl}}? This is as in es.wiki and is simple to update. What do you think? Metrónomo (talk) 21:14, 11 June 2011 (UTC)[reply]

{{tl2}} would seem to be what you are after... Railwayfan2005 (talk) 18:55, 13 June 2011 (UTC)[reply]

Merging[edit]

{{Edit request}} Why not merge this template with {{Tlx}}? {{Tlx}} can be used also without parameters. I suggest to:

On the Italian Wikipedia they are already merged (see this and this), and I find that so it's much more simple and useful. --Ricordisamoa (talk) 00:26, 4 February 2013 (UTC)[reply]

Is it simpler just redirecting {{Tl}} to {{Tlx}} than above process? :-) – Kwj2772 (msg) 17:52, 15 February 2013 (UTC)[reply]
Yes, it is (!), but using two equivalent templates would cause extreme fragmentation (like "ShouldBeSVG" and "ConvertToSVG", two redirects of {{Convert to SVG}}) that IMHO should be avoided, specially with these short template names. IMO, {{Tl}} is nicer than {{Tlx}}, so we should at least:
On the Italian Wikipedia {{tlx}} is a redirect to the main template {{tl}}: think if would be nicer this way. --Ricordisamoa 19:37, 15 February 2013 (UTC)[reply]

 Oppose merging: On the EN wiki they have different outputs (en:template:tlx uses monospaced font, which I particularly prefer). I suggest that the local {{tlx}} be changed to behave similarly. Capmo (talk) 11:10, 19 March 2013 (UTC)[reply]
PS: Just noticed the existence of {{tl2}}, which could be merged with {{tlx}} instead. Capmo (talk) 11:14, 19 March 2013 (UTC)[reply]

It's OK for me, but then {{Tl}} must support parameters (like {{Tlx}} now) --Ricordisamoa 18:21, 19 March 2013 (UTC)[reply]

Removed edit request - please get consensus first. (For a major change like this, COM:VP discussion or at least advertising would be appropriate.) Rd232 (talk) 17:09, 10 April 2013 (UTC)[reply]

 Support Actually I think

  • {{tlx}} should be merged/moved into {{tl}} and analogous
    {{tlsx}} should be merged/moved into {{tls}}.
  • {{tl2}} and {{tls2}} should be available and work exactly as {{tl}} and {{tls}} respectively, except the additional <code></code> formatting.
  • It should be considered to adapt also the simple {{t}} to these styles. -- Patrick87 (talk) 19:41, 10 April 2013 (UTC)[reply]
 Comment Actually there could be even more need for cleanup, see Commons:Link templates/Template links. Right now it seems most of the templates are named {{tl#}} were # are seemingly meaningless letters. There should be applied some sort of naming scheme so one actually can derive the name from the functionality (e.g. no letter for default style, "c" for code style, "t" for typewriter style; an additional "s" for "subst:"; we need some system for linked / unlinked templates, too e.g. no number for normal linked and an added "2" for unlinked). -- Patrick87 (talk) 11:23, 12 April 2013 (UTC)[reply]
I'm very used to the idea that IIRC Azatoth's {{Tl}} and "my" {{tlx|foo|bar}} work everywhere—one of the first things I'd import from Meta or Commons on a Wiki without these templates. The latter had a huge overhead not needed for the simpler {{Tl}}, and as somebody mentioned above, {{Tlx}} output should be mono-spaced (was <tt> in 2006 (?) with a bizarre <small>&nbsp;</small> emulation of thinsp for Netscape 2.02, could be <code> today.)
IOW, cleaning up this zoo failed in 2006 on m: and w:en:, have fun to try it again on c:, but {{Tl}} != {{Tlx}} until somebody handles the differences in a decent scribunto modulo. –Be..anyone (talk) 03:19, 13 December 2014 (UTC)[reply]

 Support what Patrick87 said –⁠moogsi (blah) 09:37, 12 April 2013 (UTC)[reply]

At the moment there are 14 (!) template link templates, IMHO not each of them necessary; even if some are very often transcluded. Another idea than this inflative number of different templates is to have just a few (or only one…) but a bit more complicated controlled by parameters. This can be organized almost self-explaining. How about that? sarang사랑 20:58, 24 July 2013 (UTC)[reply]
I consider importing en:Template:tlg at some point, probably simply as {{Template}}. "tlg" is already pretty mature and supports all functionalities from all the distinct template linking templates combined. They could be all changed to simply use this template internally as I did with en:Template:tlb, therefore extending functionality of most while exactly reproducing current functionality and being simple in maintenance (only one template needs updating, all others profit from this change immediately). --Patrick87 (talk) 20:17, 25 July 2013 (UTC)[reply]

Edit request[edit]

{{Editprotected}}

Please replace <tt> with <span style="font-family:monospace, monospace;">, and </tt> with </span>. The <tt> element is obsolete in HTML5. SiBr4 (talk) 17:10, 8 September 2015 (UTC)[reply]

✓ Done --Hedwig in Washington (mail?) 05:17, 14 October 2015 (UTC)[reply]
Specifying monospace twice is unnecessary and it is also good to class the span to be able to edit it in custom style. --Mahmudmasri (talk) 22:32, 19 March 2018 (UTC)[reply]

Accessibility concerns of not using <code>[edit]

Template:Tl2 seems to be the proper use of this template from HTML semantics perspective. The <span> element used currently by this template has no semantical meaning, which is disadvantageous for accessibility. I suppose some CSS would have to be edited for visual users if we were to use <code> for this template, if merging with Template:Tl2 is not appropriate. Basically, use <code>, then remove the background color and border. 80.221.159.67 05:31, 7 September 2016 (UTC)[reply]

RFC tag removed.    FDMS  4    16:23, 5 November 2016 (UTC)[reply]

Edit request[edit]

{{Editprotected}} This very heavily used template should use the same advantages as the other template templates.

<noinclude>{{protected template}}
</noinclude>{{T/main|{{{1|}}}
|{{{2|}}}
|{{{3|{{{lang|}}}}}}
|{{{4|}}}
|{{{5|}}}
|incl={{{incl|{{{i|3}}}}}}
|code={{{code|}}}
|link={{{link|}}}
|case={{{case|}}}
|i18n={{{i18n|}}}
|parm={{{parm|}}}
|full={{{full|}}}
|style={{{style|}}}
}}<noinclude>
{{documentation|Template:T/doc}}
</noinclude>

Please replace the current code of the template with the code above.
Template:{{Tl}} has about 1.5 Mio transclusions. The main template:T/main will then be transcluded more than 2.5 Mio times. Please protect {{T/main}} ! -- sarang사랑 11:44, 31 May 2019 (UTC)[reply]

✓ Done edit request fulfilled, core template protected. 4nn1l2 (talk) 00:00, 7 June 2019 (UTC)[reply]

Keep the input casing[edit]

{{Edit request}} Can the template please respect the casing of the input parameter? If I type {{tl|size}}, I'd like to see {{size}} as a result, not {{Size}} as it is now. Thanks —capmo (talk) 15:28, 1 October 2021 (UTC)[reply]

@Capmo: The output casing is handled by {{T/main}}, so the edit request should probably be brought up there instead. — ExE Boss (talk) 11:11, 2 October 2021 (UTC)[reply]
Thanks for the tip, but since the problem was perceived here, I think this is the proper place to ask. Anyone with template editor rights will be able to track the origin of the issue and hopefully fix it. —capmo (talk) 13:55, 2 October 2021 (UTC)[reply]

@capmo: I think I have found where our tiny bug is: {{PAGENAME:{{{1}}}}}. This can be fixed by simply removing the {{PAGENAME:}} magic word, like what I did at {{T/main/sandbox}} (along with some unnecessary blank comments to keep it nice and clean) Addendum: tt tag is now deprecated. I replaced them with kbd(s) in the sandbox.. {{tl/sandbox|tl}} now stays {{tl}}.

However, since both templates are fully protected... any sysops? NguoiDungKhongDinhDanh Name me 10:42, 20 November 2021 (UTC)[reply]

Hey NguoiDungKhongDinhDanh, thanks for finding the culprit. I did have a look at {{T/main}} as ExE Boss suggested, but wasn't able to find the problem back then. —capmo (talk) 14:25, 20 November 2021 (UTC)[reply]
However, compare {{tl|Template:tl}}{{Tl}} with {{tl/sandbox|Template:tl}}{{tl}}. The primary purpose of the usage of PAGENAME is not the capitalization, but dropping the namespace. —Tacsipacsi (talk) 00:08, 21 November 2021 (UTC)[reply]
I know. This annoys me a bit. Let's see if I can find a workaround (not for the red link, I removed 3 PAGENAMEs, including hidden one(s)). NguoiDungKhongDinhDanh Name me 15:54, 22 November 2021 (UTC)[reply]

Okay, apparently not. I can't think of any (wikitext) way that outputs {{tl}} from {{tl|tEmPlAtE : tl}}. NguoiDungKhongDinhDanh Name me 20:56, 22 November 2021 (UTC)[reply]

✓[OK] Resolved with Module:String. {{tl/sandbox|tEmPlAtE : tl}} {{tl}}. Pinging Tacsipacsi. NguoiDungKhongDinhDanh Name me 00:22, 23 November 2021 (UTC)[reply]
A belated thank you to NguoiDungKhongDinhDanh for fixing it! :) —capmo (talk) 19:31, 19 January 2022 (UTC)[reply]
Marking as ✓ Done —‍Mdaniels5757 (talk • contribs) 15:05, 7 October 2022 (UTC)[reply]

Edit request[edit]

Make it like Wikipedia's {{tl}}, so change the wikitext to: &#123;&#123;[[Template:{{{1}}}|{{{1}}}]]&#125;&#125;

Old: {{Example}}

Proposed: {{Example}}

QuickQuokka [talk] 08:51, 6 March 2022 (UTC)[reply]

@QuickQuokka: Have you tried {{t2|Example}} ({{Example}})? NguoiDungKhongDinhDanh 08:55, 6 March 2022 (UTC)[reply]
@NguoiDungKhongDinhDanh: Oh, thanks! I was not aware of this template on Commons! QuickQuokka [talk] 12:03, 6 March 2022 (UTC)[reply]

 Not done accordingly. NguoiDungKhongDinhDanh 12:04, 6 March 2022 (UTC)[reply]