Difference between revisions of "Template:Ethnologue17/doc"

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
(larger doesn't work here)
imported>Bsherr
m (as found, replacing Template:Tld with Template:Tlc or adding/updating category placement comments, plus general and typo fixes)
 
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
+
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
 
{{Template shortcut|E{{str right|{{BASEPAGENAME}}|10}}}}
 
{{Template shortcut|E{{str right|{{BASEPAGENAME}}|10}}}}
  
Line 8: Line 8:
 
; One parameter
 
; 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]]
 
: 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}}
+
: {{tlc|{{BASEPAGENAME}}|xyz}}
: {{tld|E{{str right|{{BASEPAGENAME}}|10}}|xyz}}
+
: {{tlc|E{{str right|{{BASEPAGENAME}}|10}}|xyz}}
  
 
; Two parameters
 
; 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.
 
: 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}}
+
: {{tlc|{{BASEPAGENAME}}|xyz|ABC}}
: {{tld|E{{str right|{{BASEPAGENAME}}|10}}|xyz|ABC}}
+
: {{tlc|E{{str right|{{BASEPAGENAME}}|10}}|xyz|ABC}}
  
 
; No parameters
 
; No parameters
 
: The template will revert to a generic citation and link to ''Ethnologue''  
 
: The template will revert to a generic citation and link to ''Ethnologue''  
: {{tld|{{BASEPAGENAME}}}}
+
: {{tlc|{{BASEPAGENAME}}}}
: {{tld|E{{str right|{{BASEPAGENAME}}|10}}}}
+
: {{tlc|E{{str right|{{BASEPAGENAME}}|10}}}}
  
 
== Examples ==
 
== Examples ==
 
; One parameter
 
; One parameter
: {{tld|{{BASEPAGENAME}}|eng}}
+
: {{tlc|{{BASEPAGENAME}}|eng}}
 
: {{{{BASEPAGENAME}}|eng}}
 
: {{{{BASEPAGENAME}}|eng}}
  
 
; Two parameters
 
; Two parameters
: {{tld|{{BASEPAGENAME}}|eng|English}}
+
: {{tlc|{{BASEPAGENAME}}|eng|English}}
 
: {{{{BASEPAGENAME}}|eng|English}}
 
: {{{{BASEPAGENAME}}|eng|English}}
  
 
; No parameters
 
; No parameters
: {{tld|{{BASEPAGENAME}}}}
+
: {{tlc|{{BASEPAGENAME}}}}
 
: {{ {{BASEPAGENAME}} }}
 
: {{ {{BASEPAGENAME}} }}
  

Latest revision as of 23:23, 9 August 2020

Template:Ethnologue17 is designed for use in the reference section of a language article. It links to the appropriate article at Ethnologue, Template:Ordinal edition.

Usage

One parameter
Replace xyz with the ISO 639-3 code for the language. The page name will be used as the link text
{{Ethnologue17|xyz}}
{{E17|xyz}}
Two parameters
Replace ABC with the link text to be displayed. This may be useful if the Ethnologue name differs from the page name of the Wikipedia article.
{{Ethnologue17|xyz|ABC}}
{{E17|xyz|ABC}}
No parameters
The template will revert to a generic citation and link to Ethnologue
{{Ethnologue17}}
{{E17}}

Examples

One parameter
{{Ethnologue17|eng}}
Ethnologue17/doc at Ethnologue (17th ed., 2013)
Two parameters
{{Ethnologue17|eng|English}}
English at Ethnologue (17th ed., 2013)
No parameters
{{Ethnologue17}}
Lewis, M. Paul; Gary F. Simons; Charles D. Fennig, eds. (2013). Ethnologue: Languages of the World (17th ed.). Dallas, Texas: SIL International.

Note

For a reference to the Ethnologue population figures, enter "e17" 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