Difference between revisions of "Template:Infobox language/ref"
Jump to navigation
Jump to search
imported>Zyxw (if using "lc1" instead of "iso3", use "refname" in link, this will not affect pages which do not define "refname", see example on documentation page) |
imported>Zyxw (handle blank refname, e.g. |refname=) |
||
| Line 1: | Line 1: | ||
{{#switch: {{{1}}} | {{#switch: {{{1}}} | ||
| =<!-- blank --> | | =<!-- blank --> | ||
| − | | e19 = {{#tag:ref|{{#if:{{{iso3|}}}|{{Ethnologue19|{{{iso3|}}}|{{{refname|{{{name| | + | | e19 = {{#tag:ref|{{#if:{{{iso3|}}}|{{Ethnologue19|{{{iso3|}}}|{{#if:{{{refname|}}}|{{{refname}}}|{{{name|}}}}}}}}}{{#if:{{{lc1|}}}|{{#if:{{{iso3|}}}|<br>}}{{Ethnologue19|{{{lc1|}}}|{{#if:{{{iso3|}}}|{{{ld1|}}}|{{#if:{{{refname|}}}|{{{refname}}}|{{{ld1|}}}}}}}}}}}{{#if:{{{lc2|}}}|<br>{{Ethnologue19|{{{lc2|}}}|{{{ld2|}}}}}}}{{#if:{{{lc3|}}}|<br>{{Ethnologue19|{{{lc3|}}}|{{{ld3|}}}}}}}{{#if:{{{lc4|}}}|<br>{{Ethnologue19|{{{lc4|}}}|{{{ld4|}}}}}}}{{#if:{{{lc5|}}}|<br>{{Ethnologue19|{{{lc5|}}}|{{{ld5|}}}}}}}{{#if:{{{lc6|}}}|<br>{{Ethnologue19|{{{lc6|}}}|{{{ld6|}}}}}}}{{#if:{{{lc7|}}}|<br>(Additional references under 'Language codes' in the information box)}}|name=e19}}<!-- |
(The e19 switch lacks a final 'else' parameter. This is because it shouldn't generate a reference if we don't supply an ISO code for it to refer to.) | (The e19 switch lacks a final 'else' parameter. This is because it shouldn't generate a reference if we don't supply an ISO code for it to refer to.) | ||
| − | -->| e18 = {{#tag:ref|{{#if:{{{iso3|}}}|{{Ethnologue18|{{{iso3|}}}|{{{refname|{{{name| | + | -->| e18 = {{#tag:ref|{{#if:{{{iso3|}}}|{{Ethnologue18|{{{iso3|}}}|{{#if:{{{refname|}}}|{{{refname}}}|{{{name|}}}}}}}}}{{#if:{{{lc1|}}}|{{#if:{{{iso3|}}}|<br>}}{{Ethnologue18|{{{lc1|}}}|{{#if:{{{iso3|}}}|{{{ld1|}}}|{{#if:{{{refname|}}}|{{{refname}}}|{{{ld1|}}}}}}}}}}}{{#if:{{{lc2|}}}|<br>{{Ethnologue18|{{{lc2|}}}|{{{ld2|}}}}}}}{{#if:{{{lc3|}}}|<br>{{Ethnologue18|{{{lc3|}}}|{{{ld3|}}}}}}}{{#if:{{{lc4|}}}|<br>{{Ethnologue18|{{{lc4|}}}|{{{ld4|}}}}}}}{{#if:{{{lc5|}}}|<br>{{Ethnologue18|{{{lc5|}}}|{{{ld5|}}}}}}}{{#if:{{{lc6|}}}|<br>{{Ethnologue18|{{{lc6|}}}|{{{ld6|}}}}}}}{{#if:{{{lc7|}}}|<br>(Additional references under 'Language codes' in the information box)}}|name=e18}}<!-- |
| − | -->| e17 = {{#tag:ref|{{#if:{{{iso3|}}}|{{Ethnologue17|{{{iso3|}}}|{{{refname|{{{name| | + | -->| e17 = {{#tag:ref|{{#if:{{{iso3|}}}|{{Ethnologue17|{{{iso3|}}}|{{#if:{{{refname|}}}|{{{refname}}}|{{{name|}}}}}}}}}{{#if:{{{lc1|}}}|{{#if:{{{iso3|}}}|<br>}}{{Ethnologue17|{{{lc1|}}}|{{#if:{{{iso3|}}}|{{{ld1|}}}|{{#if:{{{refname|}}}|{{{refname}}}|{{{ld1|}}}}}}}}}}}{{#if:{{{lc2|}}}|<br>{{Ethnologue17|{{{lc2|}}}|{{{ld2|}}}}}}}{{#if:{{{lc3|}}}|<br>{{Ethnologue17|{{{lc3|}}}|{{{ld3|}}}}}}}|name=e17}}<!-- |
| − | -->| e16 = {{#tag:ref|{{#if:{{{iso3|}}}|{{Ethnologue16|{{{iso3|}}}|{{{refname|{{{name| | + | -->| e16 = {{#tag:ref|{{#if:{{{iso3|}}}|{{Ethnologue16|{{{iso3|}}}|{{#if:{{{refname|}}}|{{{refname}}}|{{{name|}}}}}}}}}{{#if:{{{lc1|}}}|{{#if:{{{iso3|}}}|<br>}}{{Ethnologue16|{{{lc1|}}}|{{#if:{{{iso3|}}}|{{{ld1|}}}|{{#if:{{{refname|}}}|{{{refname}}}|{{{ld1|}}}}}}}}}}}{{#if:{{{lc2|}}}|<br>{{Ethnologue16|{{{lc2|}}}|{{{ld2|}}}}}}}{{#if:{{{lc3|}}}|<br>{{Ethnologue16|{{{lc3|}}}|{{{ld3|}}}}}}}|name=e16}} |
| − | | e15 = {{#tag:ref|{{#if:{{{iso3|}}}|{{Ethnologue15|{{{iso3|}}}|{{{refname|{{{name| | + | | e15 = {{#tag:ref|{{#if:{{{iso3|}}}|{{Ethnologue15|{{{iso3|}}}|{{#if:{{{refname|}}}|{{{refname}}}|{{{name|}}}}}}}}}{{#if:{{{lc1|}}}|{{#if:{{{iso3|}}}|<br>}}{{Ethnologue15|{{{lc1|}}}|{{#if:{{{iso3|}}}|{{{ld1|}}}|{{#if:{{{refname|}}}|{{{refname}}}|{{{ld1|}}}}}}}}}}}{{#if:{{{lc2|}}}|<br>{{Ethnologue15|{{{lc2|}}}|{{{ld2|}}}}}}}{{#if:{{{lc3|}}}|<br>{{Ethnologue15|{{{lc3|}}}|{{{ld3|}}}}}}}|name=e15}} |
| − | | e14 = {{#tag:ref|{{#if:{{{iso3|}}}|{{Ethnologue14|{{{iso3|}}}|{{{ | + | | e14 = {{#tag:ref|{{#if:{{{iso3|}}}|{{Ethnologue14|{{{iso3|}}}|{{#if:{{{refname|}}}|{{{refname}}}|{{{name|}}}}}}}}}{{#if:{{{lc1|}}}|{{#if:{{{iso3|}}}|<br>}}{{Ethnologue14|{{{lc1|}}}|{{#if:{{{iso3|}}}|{{{ld1|}}}|{{#if:{{{refname|}}}|{{{refname}}}|{{{ld1|}}}}}}}}}}}{{#if:{{{lc2|}}}|<br>{{Ethnologue14|{{{lc2|}}}|{{{ld2|}}}}}}}{{#if:{{{lc3|}}}|<br>{{Ethnologue14|{{{lc3|}}}|{{{ld3|}}}}}}}|name=e14}} |
| − | | e13 = {{#tag:ref|{{#if:{{{iso3|}}}|{{Ethnologue13|{{{iso3|}}}|{{ | + | | e13 = {{#tag:ref|{{#if:{{{iso3|}}}|{{Ethnologue13|{{{iso3|}}}|{{#if:{{{refname|}}}|{{{refname}}}|{{{name|}}}}}}}}}{{#if:{{{lc1|}}}|{{#if:{{{iso3|}}}|<br>}}{{Ethnologue13|{{{lc1|}}}|{{#if:{{{iso3|}}}|{{{ld1|}}}|{{#if:{{{refname|}}}|{{{refname}}}|{{{ld1|}}}}}}}}}}}{{#if:{{{lc2|}}}|<br>{{Ethnologue13|{{{lc2|}}}|{{{ld2|}}}}}}}{{#if:{{{lc3|}}}|<br>{{Ethnologue13|{{{lc3|}}}|{{{ld3|}}}}}}}|name=e13}} |
| − | | e12 = {{#tag:ref|{{#if:{{{iso3|}}}|{{Ethnologue12|{{{iso3|}}}|{{{refname|{{{name| | + | | e12 = {{#tag:ref|{{#if:{{{iso3|}}}|{{Ethnologue12|{{{iso3|}}}|{{#if:{{{refname|}}}|{{{refname}}}|{{{name|}}}}}}}}}{{#if:{{{lc1|}}}|{{#if:{{{iso3|}}}|<br>}}{{Ethnologue12|{{{lc1|}}}|{{#if:{{{iso3|}}}|{{{ld1|}}}|{{#if:{{{refname|}}}|{{{refname}}}|{{{ld1|}}}}}}}}}}}{{#if:{{{lc2|}}}|<br>{{Ethnologue12|{{{lc2|}}}|{{{ld2|}}}}}}}{{#if:{{{lc3|}}}|<br>{{Ethnologue12|{{{lc3|}}}|{{{ld3|}}}}}}}|name=e12}} |
| − | | e11 = {{#tag:ref|{{#if:{{{iso3|}}}|{{Ethnologue11|{{{iso3|}}}|{{{ | + | | e11 = {{#tag:ref|{{#if:{{{iso3|}}}|{{Ethnologue11|{{{iso3|}}}|{{#if:{{{refname|}}}|{{{refname}}}|{{{name|}}}}}}}}}{{#if:{{{lc1|}}}|{{#if:{{{iso3|}}}|<br>}}{{Ethnologue11|{{{lc1|}}}|{{#if:{{{iso3|}}}|{{{ld1|}}}|{{#if:{{{refname|}}}|{{{refname}}}|{{{ld1|}}}}}}}}}}}{{#if:{{{lc2|}}}|<br>{{Ethnologue11|{{{lc2|}}}|{{{ld2|}}}}}}}{{#if:{{{lc3|}}}|<br>{{Ethnologue11|{{{lc3|}}}|{{{ld3|}}}}}}}|name=e11}} |
| − | | e10 = {{#tag:ref|{{#if:{{{iso3|}}}|{{Ethnologue10|{{{iso3|}}}|{{ | + | | e10 = {{#tag:ref|{{#if:{{{iso3|}}}|{{Ethnologue10|{{{iso3|}}}|{{#if:{{{refname|}}}|{{{refname}}}|{{{name|}}}}}}}}}{{#if:{{{lc1|}}}|{{#if:{{{iso3|}}}|<br>}}{{Ethnologue10|{{{lc1|}}}|{{#if:{{{iso3|}}}|{{{ld1|}}}|{{#if:{{{refname|}}}|{{{refname}}}|{{{ld1|}}}}}}}}}}}{{#if:{{{lc2|}}}|<br>{{Ethnologue10|{{{lc2|}}}|{{{ld2|}}}}}}}{{#if:{{{lc3|}}}|<br>{{Ethnologue10|{{{lc3|}}}|{{{ld3|}}}}}}}|name=e10}} |
| − | | e09 = {{#tag:ref|{{#if:{{{iso3|}}}|{{Ethnologue09|{{{iso3|}}}|{{{refname|{{{name| | + | | e09 = {{#tag:ref|{{#if:{{{iso3|}}}|{{Ethnologue09|{{{iso3|}}}|{{#if:{{{refname|}}}|{{{refname}}}|{{{name|}}}}}}}}}{{#if:{{{lc1|}}}|{{#if:{{{iso3|}}}|<br>}}{{Ethnologue09|{{{lc1|}}}|{{#if:{{{iso3|}}}|{{{ld1|}}}|{{#if:{{{refname|}}}|{{{refname}}}|{{{ld1|}}}}}}}}}}}{{#if:{{{lc2|}}}|<br>{{Ethnologue09|{{{lc2|}}}|{{{ld2|}}}}}}}{{#if:{{{lc3|}}}|<br>{{Ethnologue09|{{{lc3|}}}|{{{ld3|}}}}}}}|name=e09}} |
| − | | e08 = {{#tag:ref|{{#if:{{{iso3|}}}|{{Ethnologue08|{{{iso3|}}}|{{{refname|{{{name| | + | | e08 = {{#tag:ref|{{#if:{{{iso3|}}}|{{Ethnologue08|{{{iso3|}}}|{{#if:{{{refname|}}}|{{{refname}}}|{{{name|}}}}}}}}}{{#if:{{{lc1|}}}|{{#if:{{{iso3|}}}|<br>}}{{Ethnologue08|{{{lc1|}}}|{{#if:{{{iso3|}}}|{{{ld1|}}}|{{#if:{{{refname|}}}|{{{refname}}}|{{{ld1|}}}}}}}}}}}{{#if:{{{lc2|}}}|<br>{{Ethnologue08|{{{lc2|}}}|{{{ld2|}}}}}}}{{#if:{{{lc3|}}}|<br>{{Ethnologue08|{{{lc3|}}}|{{{ld3|}}}}}}}|name=e08}}<!-- |
| − | -->| linglist = {{#tag:ref|[http://multitree.org/codes/{{{iso3|}}} {{{refname|{{{name| | + | -->| linglist = {{#tag:ref|[http://multitree.org/codes/{{{iso3|}}} {{#if:{{{refname|}}}|{{{refname}}}|{{{name|}}}}}] at ''[[MultiTree]]'' on [[the Linguist List]]|name=linglist}} |
| ne2007 = {{#tag:ref|Mikael Parkvall, "Världens 100 största språk 2007" (The World's 100 Largest Languages in 2007), in ''[[Nationalencyklopedin]]''|name=NE100}} | | ne2007 = {{#tag:ref|Mikael Parkvall, "Världens 100 största språk 2007" (The World's 100 Largest Languages in 2007), in ''[[Nationalencyklopedin]]''|name=NE100}} | ||
| ne2010 = {{#tag:ref|"Världens 100 största språk 2010" (The World's 100 Largest Languages in 2010), in ''[[Nationalencyklopedin]]''|name=NE100_2}} | | ne2010 = {{#tag:ref|"Världens 100 största språk 2010" (The World's 100 Largest Languages in 2010), in ''[[Nationalencyklopedin]]''|name=NE100_2}} | ||
Revision as of 17:49, 6 July 2017
Usage
This subtemplate produces references for speaker data on language articles. If the number of speakers is taken from Ethnologue 22, enter ⟨e22⟩ in the 'ref' field, and a footnote will be generated that links to the page on Ethnologue article, based on the language's ISO639-3 code. This footnote can be linked to elsewhere on the page with <ref name=e22/>. (⟨e21⟩ and ⟨e20⟩, etc., can be used for the 21st etc. editions.)
In addition, using ⟨linglist⟩ produces a named reference which can be linked to with <ref name=linglist/>. Using either ⟨ne2007⟩ or ⟨ne2010⟩ produces <ref name=NE100/>.
{{Infobox language/ref|e24|iso3=eng|name=English}}→ e24{{Infobox language/ref|e23|iso3=eng|name=English}}→ e23{{Infobox language/ref|e22|iso3=eng|name=English}}→ e22{{Infobox language/ref|e21|iso3=eng|name=English}}→ e21{{Infobox language/ref|e20|iso3=eng|name=English}}→ e20{{Infobox language/ref|e19|iso3=eng|name=English}}→ [1]{{Infobox language/ref|e18|lc1=ell|ld1=Modern Greek|lc2=grc|ld2=Ancient Greek|refname=}}→ [2]{{Infobox language/ref|e17|lc1=ell|ld1=Modern Greek|lc2=grc|ld2=Ancient Greek|refname=Greek}}→ [3]{{Infobox language/ref|e16|iso3=eng|name=English}}→ [4]{{Infobox language/ref|e15|iso3=eng|name=English}}→ [5]{{Infobox language/ref|e14|iso3=ENG|name=English}}→ [6]{{Infobox language/ref|e13|iso3=eng|name=English}}→ [7]{{Infobox language/ref|e12|iso3=eng|name=English}}→ [8]{{Infobox language/ref|e11|iso3=eng|name=English}}→ [9]{{Infobox language/ref|e10|iso3=eng|name=English}}→ [10]{{Infobox language/ref|e09|iso3=eng|name=English}}→ [11]{{Infobox language/ref|e08|iso3=eng|name=English}}→ [12]{{Infobox language/ref|ne2007}}→ [13]{{Infobox language/ref|ne2010}}→ [14]{{Infobox language/ref|ELP}}→ ELP{{Infobox language/ref|<ref>Some reference</ref>}}→ [15]{{Infobox language/ref|<ref>{{cite book|title=Some book}}</ref>}}→ [16]{{Infobox language/ref}}→ (blank returns blank)
References (from the examples)
- ↑ English at Ethnologue (19th ed., 2016)
- ↑ Modern Greek at Ethnologue (18th ed., 2015)
Ancient Greek at Ethnologue (18th ed., 2015) - ↑ Greek at Ethnologue (17th ed., 2013)
Ancient Greek at Ethnologue (17th ed., 2013) - ↑ English at Ethnologue (16th ed., 2009)
- ↑ English at Ethnologue (15th ed., 2005)
- ↑ English at Ethnologue (14th ed., 2000).
- ↑ English at Ethnologue (13th ed., 1996).
- ↑ English at Ethnologue (12th ed., 1992).
- ↑ English at Ethnologue (11th ed., 1988).
- ↑ English at Ethnologue (10th ed., 1984). Note: Data may come from the 9th edition (1978).
- ↑ English at Ethnologue (9th ed., 1978).
- ↑ English at Ethnologue (8th ed., 1974). Note: Data may come from an earlier edition.
- ↑ Mikael Parkvall, "Världens 100 största språk 2007" (The World's 100 Largest Languages in 2007), in Nationalencyklopedin
- ↑ "Världens 100 största språk 2010" (The World's 100 Largest Languages in 2010), in Nationalencyklopedin
- ↑ Some reference
- ↑ Some book.
In addition, aiatsis will link to the ref generated by code section at the bottom of the info box.
See also
The reference code is created by:
{{Ethnologue19}}{{Ethnologue18}}- etc.
| The above documentation is transcluded from Template:Infobox language/ref/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
Categories:
- Language articles citing Ethnologue 19
- Language articles citing Ethnologue 18
- Language articles citing Ethnologue 16
- Language articles citing Ethnologue 15
- Language articles citing Ethnologue 14
- Language articles citing Ethnologue 13
- Language articles citing Ethnologue 12
- Language articles citing Ethnologue 11
- Language articles citing Ethnologue 10
- Language articles citing Ethnologue 9
- Language articles citing Ethnologue 8
- Pages with broken file links