Template talk:Ethnologue16
Label parameter?
[edit]In most cases the label parameter shouldn't be necessary; it should just be the pagename. Can you alter it so that if the label parameter is omitted it automatically expands to {{PAGENAME}}? —Angr 17:43, 24 October 2006 (UTC)
- I'm looking at the page for the Chong language, and the page title is "Ethnologue report for language code:cog." Are you referring to a different field on Ethnologue's pages? | Mr. Darcy talk 18:19, 24 October 2006 (UTC)
- No, I mean the name of the Wikipedia article. The Wikipedia article is called Chong language, so it shouldn't be necessary to write {{ethnologue|code=cog|label=Chong language}}. It should be sufficient to write {{ethnologue|code=cog}} and have the template designed to find the name of the Wikipedia article and plug it in so that it displays correctly as Chong language at Ethnologue. —Angr 18:39, 24 October 2006 (UTC)
- Oh, sorry, I misunderstood. I made the requested change; it looks like it's working on Chong language. Thanks. | Mr. Darcy talk 18:45, 24 October 2006 (UTC)
- Okay. But there is a way to have the "label" parameter be optional, so that it can be included if people want it to say something different from {{PAGENAME}} but will default to {{PAGENAME}} if left blank. But that involves esoteric template syntax that I don't understand. —Angr 18:51, 24 October 2006 (UTC)
- I don't know the required syntax either. That said, I created the template to see if we could standardize the way those links appear, and since all language page names follow the "X-ish language" format, this will do the trick. | Mr. Darcy talk 18:55, 24 October 2006 (UTC)
- Still, I think flexibility is better. Not all language articles are called "X language" for one thing, and in some cases Wikipedia's name for the language may be different from Ethnologue's name, in which case people might want to use a different name in the template. —Angr 19:39, 24 October 2006 (UTC)
- I've asked User:Garzo, who has experience with esoteric syntax, to stop by and make the label parameter optional. —Angr 19:53, 24 October 2006 (UTC)
- I don't know the required syntax either. That said, I created the template to see if we could standardize the way those links appear, and since all language page names follow the "X-ish language" format, this will do the trick. | Mr. Darcy talk 18:55, 24 October 2006 (UTC)
- Okay. But there is a way to have the "label" parameter be optional, so that it can be included if people want it to say something different from {{PAGENAME}} but will default to {{PAGENAME}} if left blank. But that involves esoteric template syntax that I don't understand. —Angr 18:51, 24 October 2006 (UTC)
- Oh, sorry, I misunderstood. I made the requested change; it looks like it's working on Chong language. Thanks. | Mr. Darcy talk 18:45, 24 October 2006 (UTC)
- No, I mean the name of the Wikipedia article. The Wikipedia article is called Chong language, so it shouldn't be necessary to write {{ethnologue|code=cog|label=Chong language}}. It should be sufficient to write {{ethnologue|code=cog}} and have the template designed to find the name of the Wikipedia article and plug it in so that it displays correctly as Chong language at Ethnologue. —Angr 18:39, 24 October 2006 (UTC)
Okay, he's done it. Thanks, Garzo! I've updated the instructions above accordingly. —Angr 15:54, 25 October 2006 (UTC)
Template:Ethnologue2
[edit]Template trivially altered for use in tables, see Endangered Languages in South America.
--Ling.Nut 02:36, 10 November 2006 (UTC)
- For those who'd like to see the new template, here it is: {{ethnologue2}} | Mr. Darcy talk 02:44, 10 November 2006 (UTC)
- Since that wasn't documented, I ended up recreating it. The documented template is {{ethnolink}}. Since the default behaviour has never been used, and it takes more typing ('code=' etc), I'm deleting the undoc'd template. — kwami (talk) 02:27, 3 October 2011 (UTC)
So: {{Ethnologue}} is more convenient for the reference section, {{ethnolink}} better for a simple link, e.g. to make sure we can ID languages which don't yet have articles. — kwami (talk) 02:30, 3 October 2011 (UTC)
moved
[edit]I moved this to {{Ethnologue16}}, as I worry that when E17 comes out, this will simply be updated to the new edition, without verifying or updating the data being cited. — kwami (talk) 03:24, 19 May 2012 (UTC)