Template talk:Ls

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


I'd like to perform this change:


To add a classname 'langlabel' and a lang attribute to the language label, so the label can be detected and hidden if necessary by javascripts.

The span attribute might be necessary to support inlining properly, this part of change is not important to my eyes for now.

Any opinion against the change?

Esby (talk) 03:46, 17 April 2010 (UTC)

I'd support adding the attributes. I'm unsure about the span. Do you plan to change it or not? It's not clear to me whether the sentence The span attribute might be necessary to support inlining properly, this part of change is not important to my eyes for now. means that the span is "necessary" or "not important". If you plan to change it, could you elaborate about the advantages and how this will or will not affect the default display of the template? --Slomox (talk) 11:43, 17 April 2010 (UTC)
The span was an idea I had, I actually did not wanted to suggest changing it for now, it's just the link I copy pasted from my test page contained this unwanted change : basically, using a div trigger a line break while this makes it not compatible with inlining since inlining requires no line break at all, inlining here being putting the translations together in one line. Now the problem with the span is that a div cannot be contained in a span. So the usage is actually not universal and I don't think it should be done. I am thinking to create a template {{mldi}} that would use a template {{lsi}} which would ouput all language in one row. Basically, the mldi should also uses a span. You can see an inlining example here Esby (talk) 12:20, 17 April 2010 (UTC)

Change about the class & lang attributes performed. [1]. Actually, there might be a similar change to perform in {{Description}}, since templates like {{en}} or {{fr}} uses it... Esby (talk) 11:43, 23 April 2010 (UTC)


Hi. Is it possible to hide the "English:" (or similar) prefixes when using this template? Rehman 03:38, 16 January 2011 (UTC)

You can simply use the parameter CSS-label with the value: display:noneFrançois [Discussion] 13:41, 24 July 2012 (UTC)
Mmm, don't remember why I needed this, but thanks anyways ;) Should be useful for others like you said... Rehman 06:07, 25 July 2012 (UTC)

Uppercase 1st letter of language[edit]

{{Edit request}} Hello,

could someone add a {{ucfirst: ... }} around {{#language:}}, so for example French will be renderred as Français and not français? (note that it is already so in Template:Description).

Thanks! — François [Discussion] 12:56, 7 July 2012 (UTC)

✓ Done. Please check if I did it correctly. Thanks! Trijnsteltalk 21:16, 8 July 2012 (UTC)
Seems to perfectly work! Thank you — François [Discussion] 13:24, 24 July 2012 (UTC)