Template talk:Languageicon

From Wikinews, the free news source you can write!
Latest comment: 9 years ago by Pi zero in topic {{w}}
Jump to navigation Jump to search

Doubled brackets


I suggest changing this:


to this:


Which in my opinion is much more æsthetic and non-intrusive. Jon Harald Søby 18:14, 11 September 2008 (UTC)Reply


Indeed, why do we need doubled brackets such as seen in (Spanish) and (French), for example? Why not just one pair of brackets? Bencherlite (talk) 23:41, 14 March 2011 (UTC)Reply

Procedural denial This probably needs community consensus, and not an editprotected request. — μ 12:11, 16 March 2011 (UTC)Reply
I'd say remove the double brackets. It makes the page look cluttered. Tempodivalse [talk] 15:24, 16 March 2011 (UTC)Reply



According to the link in the page, the language code for Esperanto is "eo", not "es". Revoluc (talk) 10:53, 5 May 2009 (UTC)Reply

Done, a few years late. — μ 12:10, 16 March 2011 (UTC)Reply



I'm going to, carefully, convert this to use {{w}}. It'll take three parameters: language code, language name, and language target. The language code actually isn't used, afaics, and it still won't be used, but as well it's there for possible future use. As it has been up till now, the second parameter was usually the complete markup for a wikilink, like [[Spanish language|Spanish]]; in the new version, you'll specify Spanish as the second parameter and Spanish language as the third parameter, and the template will be responsible for piecing together the wikilink from those parts.

As a matter of possible procedural interest: I'm going to do this in two steps, because the new version I eventually want to end up with will be incompatible with the old version. In the first step, I'll deploy a temporary version of the template than does the old thing if given two parameters, and the new thing if given three. The temporary version will also put the transcluding page into one of two temporary hidden categories, depending on whether the transclusion uses two parameters or three. Using those hidden categories to find all the uses, I'll convert them all to use three parameters. And then I'll replace the temporary version of the template with a completed version that uses {{w}} even with two parameters, and doesn't bother with the hidden categories. --Pi zero (talk) 14:54, 6 December 2014 (UTC)Reply

Now that I'm well into this, I don't think I should do the second step as planned. It may be useful to be able to generate an unlinked icon at need, and there's no difficulty building the three-parameter form into the specific language templates. --Pi zero (talk) 14:05, 10 December 2014 (UTC)Reply
Done, including the template documentation. The hidden categories seem harmless enough, so I'm leaving them in place:
--Pi zero (talk) 15:09, 11 December 2014 (UTC)Reply