Template talk:User lang

From Wiktionary, the free dictionary
Latest comment: 9 years ago by Dixtosa
Jump to navigation Jump to search

I think it would be very useful to also show canonical name of the language given in the first argument. I often get frustrated by unknown langcodes xD and often a quick Google search is ineffective.

maybe we can change the following line

'''{{{1}}}'''

into

{{comment|{{{1}}}|{{#invoke:languages/templates|getByCode|{{{1}}}|getCanonicalName}}}}

This information should be there in this way or another.--Dixtosa (talk) 22:20, 23 August 2014 (UTC)Reply

or even better
<span style = "font-weight:bold" title = "{{#invoke:languages/templates|getByCode|{{{1}}}|getCanonicalName}}">{{{1}}}</span>
result: ka

--Dixtosa (talk) 07:10, 10 May 2015 (UTC)Reply

Or more aggressive
'''[[w:ISO_639:{{{1}}}|{{{1}}}]]''' --Dixtosa (talk) 07:38, 10 May 2015 (UTC)Reply
result: he

--Dixtosa (talk) 07:41, 10 May 2015 (UTC)Reply

This is a good idea. I've implemented option 2, after testing it (on a subpage of my userpage) to confirm that although it appears to produce a module error on this page, actual uses of it work as expected. (If someone would like to implement a neater solution, or thinks your third suggestion would be better, they can feel free to implement that solution.) - -sche (discuss) 17:55, 10 May 2015 (UTC)Reply
Template:User lang-0,1,2,4.--Dixtosa (talk) 18:31, 10 May 2015 (UTC)Reply