Difference between revisions of "Template:Ethnologue20/doc"
Jump to navigation
Jump to search
imported>Zyxw (update examples to generate working link) |
imported>Zyxw (update documentation to work with any edition, add {{Documentation subpage}} header, add {{Template shortcut}}, update usage and examples, update see also links, use <includeonly> and {{sandbox other}} to keep /doc or /sandbox out of template category) |
||
| Line 1: | Line 1: | ||
| − | + | {{Documentation subpage}} | |
| + | <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> | ||
| + | {{Larger|{{Template shortcut|E{{str right|{{BASEPAGENAME}}|10}}}}}} | ||
| − | + | '''{{NAMESPACE}}:{{BASEPAGENAME}}''' is designed for use in the reference section of a language article. It links to the appropriate article at ''[[Ethnologue]]'', {{ordinal|{{str right|{{BASEPAGENAME}}|10}}}} edition. | |
| − | {{ | ||
| − | |||
| − | Replace <code>xyz</code> with the [[ISO 639-3]] code for the language. | + | == Usage == |
| + | ; One parameter | ||
| + | : Replace <code>xyz</code> with the [[ISO 639-3]] code for the language. The page name will be used as the [[link text]] | ||
| + | : {{tld|{{BASEPAGENAME}}|xyz}} | ||
| + | : {{tld|E{{str right|{{BASEPAGENAME}}|10}}|xyz}} | ||
| − | < | + | ; Two parameters |
| − | {{ | + | : Replace <code>ABC</code> with the link text to be displayed. This may be useful if the ''Ethnologue'' name differs from the page name of the Wikipedia article. |
| + | : {{tld|{{BASEPAGENAME}}|xyz|ABC}} | ||
| + | : {{tld|E{{str right|{{BASEPAGENAME}}|10}}|xyz|ABC}} | ||
| − | + | ; No parameters | |
| − | : {{tld| | + | : The template will revert to a generic citation and link to ''Ethnologue'' |
| − | : {{ | + | : {{tld|{{BASEPAGENAME}}}} |
| + | : {{tld|E{{str right|{{BASEPAGENAME}}|10}}}} | ||
| − | + | == Examples == | |
| − | : {{tld| | + | ; One parameter |
| − | : {{ | + | : {{tld|{{BASEPAGENAME}}|eng}} |
| + | : {{{{BASEPAGENAME}}|eng}} | ||
| − | + | ; Two parameters | |
| − | : {{tld| | + | : {{tld|{{BASEPAGENAME}}|eng|English}} |
| − | : {{ | + | : {{{{BASEPAGENAME}}|eng|English}} |
| + | |||
| + | ; No parameters | ||
| + | : {{tld|{{BASEPAGENAME}}}} | ||
| + | : {{ {{BASEPAGENAME}} }} | ||
==Note== | ==Note== | ||
| − | For a reference to the ''Ethnologue'' population figures, enter " | + | For a reference to the ''Ethnologue'' population figures, enter "e{{str right|{{BASEPAGENAME}}|10}}" in the <code>ref</code> parameter of {{tl|Infobox language}}. This will automatically generate a reference based on this template, and is easier for other editors to update. |
==See also== | ==See also== | ||
| − | *{{tl| | + | * {{tl|Ethnolink}}, for inline links when the data is not date-dependent |
| − | *{{tl| | + | * {{tl|Ethnologue{{#expr:{{str right|{{BASEPAGENAME}}|10}}-1}}}}, {{tl|Ethnologue{{#expr:{{str right|{{BASEPAGENAME}}|10}}-2}}}}, etc., for references to the previous editions |
| − | + | * Newer and older versions of this template can be found at [[:Category:Language external link templates]] | |
| − | + | * The link format <code><nowiki>[[Ethnologue:xxx]]</nowiki></code> can also be used, e.g. [[Ethnologue:eng]] | |
| − | The link format <code><nowiki>[[Ethnologue:xxx]]</nowiki></code> can also be used. | ||
| + | <includeonly>{{sandbox other|| | ||
| + | <!-- Categories below this line; interwikis at Wikidata --> | ||
[[Category:Language external link templates|Ethnologue]] | [[Category:Language external link templates|Ethnologue]] | ||
| + | }}</includeonly> | ||
Revision as of 04:01, 5 July 2017
| This is a documentation subpage for Template:Ethnologue20. It contains usage information, categories and other content that is not part of the original template page. |
Template:Ethnologue20 is designed for use in the reference section of a language article. It links to the appropriate article at Ethnologue, Template:Ordinal edition.
Contents
Usage
- One parameter
- Replace
xyzwith the ISO 639-3 code for the language. The page name will be used as the link text {{Ethnologue20|xyz}}{{E20|xyz}}
- Two parameters
- Replace
ABCwith the link text to be displayed. This may be useful if the Ethnologue name differs from the page name of the Wikipedia article. {{Ethnologue20|xyz|ABC}}{{E20|xyz|ABC}}
- No parameters
- The template will revert to a generic citation and link to Ethnologue
{{Ethnologue20}}{{E20}}
Examples
- One parameter
{{Ethnologue20|eng}}- Ethnologue20/doc at Ethnologue (20th ed., 2017)
- Two parameters
{{Ethnologue20|eng|English}}- English at Ethnologue (20th ed., 2017)
- No parameters
{{Ethnologue20}}- Simons, Gary F; Fennig, Charles D, eds. (2017). Ethnologue: Languages of the World (20th ed.). Dallas, Texas: SIL International.
Note
For a reference to the Ethnologue population figures, enter "e20" in the ref parameter of {{Infobox language}}. This will automatically generate a reference based on this template, and is easier for other editors to update.
See also
- {{Ethnolink}}, for inline links when the data is not date-dependent
- {{Ethnologue19}}, {{Ethnologue18}}, etc., for references to the previous editions
- Newer and older versions of this template can be found at Category:Language external link templates
- The link format
[[Ethnologue:xxx]]can also be used, e.g. Ethnologue:eng