Difference between revisions of "Template:Ethnologue19/doc"

From blackwiki
Jump to navigation Jump to search
imported>YBG
(→‎See also: revise {{Ethnolink}} description)
imported>Zyxw
(update examples to generate working link)
Line 11: Line 11:
  
 
Replace <code>ABC</code> with wording for the template to display, thus:  
 
Replace <code>ABC</code> with wording for the template to display, thus:  
:{{Ethnologue19|xyz|ABC}}.
+
: {{tld|Ethnologue19|eng|English}}
 +
: {{Ethnologue19|eng|English}}
 +
 
 
If this parameter is omitted, the page name will be used, thus:  
 
If this parameter is omitted, the page name will be used, thus:  
:{{Ethnologue19|xyz}}.
+
: {{tld|Ethnologue19|eng}}
 +
: {{Ethnologue19|eng}}
 +
 
 
Specifying the wording may be useful if the ''Ethnologue'' name differs from the page name of the Wikipedia article. If no parameter is supplied, the template will revert to a generic citation and link to ''Ethnologue'', though a pipe is still required, thus:  
 
Specifying the wording may be useful if the ''Ethnologue'' name differs from the page name of the Wikipedia article. If no parameter is supplied, the template will revert to a generic citation and link to ''Ethnologue'', though a pipe is still required, thus:  
:{{Ethnologue19|}}.
+
: {{tld|Ethnologue19}}
 +
: {{Ethnologue19}}
  
 
==Note==
 
==Note==

Revision as of 02:53, 5 July 2017

This template is designed for use in the reference section of a language article. It links to the appropriate article at Ethnologue.

{{Ethnologue19|xyz}} (or {{E19|xyz}})

Replace xyz with the ISO 639-3 code for the language. A second, optional parameter is accepted:

{{Ethnologue19|xyz|ABC}}

Replace ABC with wording for the template to display, thus:

{{Ethnologue19|eng|English}}
English at Ethnologue (19th ed., 2016)

If this parameter is omitted, the page name will be used, thus:

{{Ethnologue19|eng}}
Ethnologue19/doc at Ethnologue (19th ed., 2016)

Specifying the wording may be useful if the Ethnologue name differs from the page name of the Wikipedia article. If no parameter is supplied, the template will revert to a generic citation and link to Ethnologue, though a pipe is still required, thus:

{{Ethnologue19}}
Lewis, M. Paul; Gary F. Simons; Charles D. Fennig, eds. (2016). Ethnologue: Languages of the World (19th ed.). Dallas, Texas: SIL International.

Note

For a reference to the Ethnologue population figures, enter "e19" in the ref parameter of the language infobox. This will autogenerate a reference based on this template, and is easier for other editors to update.

See also

  • {{Ethnologue18}}, for references to the previous edition.
  • {{Ethnologue17}}, etc., for references to the edition(s) before that.
  • {{Ethnolink}}, for inline links when the data is not date-dependent.

The link format [[Ethnologue:xxx]] can also be used.