Difference between revisions of "Template:Infobox language/doc"

m (1 revision imported)
 
(Major overhaul to match the template.)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
{{intricate template}}
 
 
{{lua|Module:InfoboxImage|Module:Check for unknown parameters}}
 
{{lua|Module:InfoboxImage|Module:Check for unknown parameters}}
  
This template is for use in articles about '''[[languages]] or [[dialects]]'''. It provides a common standard for displaying data about a language.
+
This template provides a common standard for displaying data about a language.
  
 
=== Usage ===
 
=== Usage ===
 
This template accepts the following parameters:
 
This template accepts the following parameters:
;name:name of language #REQUIRED
+
;name:name of language, simplest transliteration #REQUIRED
;altname:additional name of the language
+
;nativename:native transliteration of the language's name
;nativename:native or a second additional name
 
 
;pronunciation:IPA pronunciation of the native name
 
;pronunciation:IPA pronunciation of the native name
;acceptance:questionable acceptance/status of the language: unattested, spurious, etc.
+
;ailname:transliteration of the name recorded at the [[World:Aldeemah Imperial Library|AIL]]
 +
;ailprob:IPA pronunciation of the AIL name
 
;states:countries in which it is mainly spoken
 
;states:countries in which it is mainly spoken
 
;state:alias for '''states'''
 
;state:alias for '''states'''
 
;region:geographic region in which it is mainly spoken
 
;region:geographic region in which it is mainly spoken
;latd:latitude degrees
+
;ethnicity:people for whom this is the ethnically native language; races can be specified; this may change as I figure this out (or something)
;latm:latitude minutes
+
;familycolor: background color for main heading
;latNS:latitude direction
+
;bgcolor: background color for entire box
;longd:longitude degrees
+
:NOTE: The previous two will probably be changed after I decide on some language family color schemes (or something)
;longm:longitude minutes
 
;longEW:longitude direction
 
;ethnicity:people for whom this is the ethnically native language; also good for the ethnic population if different from the number of speakers (although the names chosen for the articles on the people and on the language will generally be the same, it may be appropriate to pipe in the native name of the people here)
 
;speakers:{{tlx|sigfig|number of native speakers/signers|2}}
 
;date:date of estimate of number of speakers/signers (must start with a 4-digit year: see next)
 
;dateprefix:any text wanted inside the parentheses before the date; a space ({{code|&nbsp;}}) must be explicitly included at the end
 
;era:era of use of a historical language, such as one that developed into something else; 'speakers' will not display
 
;extinct:date of extinction, or information about extinction; 'speakers' will not display
 
;revived:Date and/or population of attempted revival of extinct language
 
;revived-category: optional name (without "Category:") of appropriate subcategory of [[:Category:Language revival]] (which is used by default if {{para|revived}} has a value); or <code>nocat</code> to suppress categorization
 
;ref:reference for the number of speakers/signers. Appears after the (date) field.
 
;speakers2:2nd line (2nd estimate, 2nd country, L2 speakers, etc.)
 
;familycolor:appropriate language family #REQUIRED
 
:See table below for list of options. Please do not use other names, because they will not be recognised, and the table will be colored grey.
 
:In most cases, 'familycolor' will trigger a default entry for the 'fam1' field, so that field is not necessary (you can continue will 'fam2'), but you can override this by entering something under 'fam1'. For areal colors (American, Khoisan, Paleosiberian, etc.), you will be prompted for a 'fam1' entry if you do not provide one. If 'isolate' or 'unclassified' is used, the fam1–xx tree will not display.
 
;fam1:the broadest possible widely accepted [[language family]] of which the language is a part
 
;fam2:a more specific sub-family
 
;...
 
;fam15:most specific sub group
 
;family:whatever you want to say; fam1–xx will not display
 
 
;ancestor:ancestral or reconstructed forms
 
;ancestor:ancestral or reconstructed forms
 
;ancestor2
 
;ancestor2
Line 45: Line 24:
 
;ancestor5:intermediate forms
 
;ancestor5:intermediate forms
 
;protoname:alias for ancestor
 
;protoname:alias for ancestor
;creator:name of language creator
 
;created:year of first creation
 
;setting:the use or setting for a created language
 
;posteriori:natural-language sources of a created language
 
 
;dia1:
 
;dia1:
 
;...
 
;...
 
;dia20:primary dialects
 
;dia20:primary dialects
 
;dialects:whatever you want to say
 
;dialects:whatever you want to say
;stand1:a standardized register
 
;stand2:a second standardized register
 
;...
 
;stand6:sixth standardized register
 
;standards:whatever you want to say
 
 
;script:the writing system(s) used for the language by literate speakers
 
;script:the writing system(s) used for the language by literate speakers
 
;sign:signed forms (manually coded language)
 
;sign:signed forms (manually coded language)
Line 63: Line 33:
 
;minority:list of countries in which it is a recognised/protected minority language
 
;minority:list of countries in which it is a recognised/protected minority language
 
;agency:regulatory body or language academy for the language
 
;agency:regulatory body or language academy for the language
;iso1:the ISO 639-1 code for the language
 
;iso2:the ISO 639-2 code for the language (not for its family)
 
;iso2b:the ISO 639-2 bibliographic code
 
;iso2t:the ISO 639-2 terminological code
 
;iso2comment:for comments to not interfere with the link
 
;iso3:the ISO 639-3 code for the language.
 
:Field will display even if left empty, unless 'lc1' etc. is used.
 
:Use 'none' if the language (not dialect) has no iso3 code, and the article will be added to [[:Category:Languages without iso3 codes]].
 
:Leave empty for a dialect that has no iso3 code, but the language it belongs to does; in this case, also use |isoexception=dialect.
 
:Leave empty for a historical variety that has no iso3 code, but its modern version does; in this case, also use |isoexception=historical.
 
:Leave blank for a protolanguage, and use |isoexception=protolanguage.
 
:Use 'linglist' if it has an iso3 code, but this is maintained at Linguist List instead of at SIL. Add the code itself under |linglist=. (This is not necessary if the SIL page provides its own link to the Linguist List page.)
 
;iso3comment:for comments to not interfere with the link
 
;{{vanchor|isoexception}}:a maintenance field to organize cleanup categories.
 
:Excludes article from the [[:Category:Language articles without language codes]] if set to any of the following values:
 
:: '''dialect''' (used for a dialect that does not itself have an ISO code, although the language it belongs to does; adds article to the [[:Category:Dialects of languages with ISO 639-3 code]])
 
:: '''historical''' (used for a historical language that does not itself have an ISO code, although its modern version does; adds article to the [[:Category:Historical forms of languages with ISO codes]])
 
:: '''protolanguage''' (used for protolanguages without ISO codes; adds article to the [[:Category:Protolanguages without ISO codes]])
 
:: '''talkpage''' (used on talk pages and in archives so that they don't show up in tracking categories)
 
;lc1:ISO code of the first dialect (the 'iso3' field will not display if empty and this is included)
 
;ld1:name of the first language dialect
 
;lc2:ISO code of the second dialect
 
;ld2:name of the second language dialect
 
:...
 
;lc30:ISO code of the 30–th dialect
 
;ld30:name of the 30–th dialect
 
;iso6:the ISO 639-6 code for the language.
 
;linglist:a private or local Linguist List ISO 639-3 code or substitute for an ISO code; use xxx-xxx format for dialects.
 
:Use for code range qaa–qtz or those involving numerals only; enter other codes under 'iso3' and the reader will be redirected from Ethnologue.
 
;lingname:comment on the Linguist List code or support
 
;linglist2
 
;linglist3:additional Linguist List codes
 
;lingname2
 
;lingname3:additional comments. (If Linguist List has redundant codes, write to them, and they will likely retire them.)
 
;lingua:the Linguasphere code for the language
 
;glotto2
 
;...
 
;glotto5:the Glottolog code(s) for the language
 
;glottoname2
 
;...
 
;glottoname5:the Glottolog name(s) for the language; appears in both the info box and the footnote
 
;glottorefname2
 
;...
 
;glottorefname5:the Glottolog name(s) for the language; appears only in the footnote
 
;glottofoot:set to "no" to hide the Glottolog footnotes
 
;guthrie:the Guthrie code for Bantu languages
 
;aiatsis:the AIATSIS code for Australian languages (linked)
 
;aiatsis2
 
;...
 
;aiatsis8:additional AIATSIS codes
 
;aiatsisname2
 
;...
 
;aiatsisname8:name of code, if not that of the info box, or note to appear after code
 
;ietf:[[IETF language tag]]
 
 
;image:image at top of info box. Use format "image name.png", without "file/image" or brackets.
 
;image:image at top of info box. Use format "image name.png", without "file/image" or brackets.
 
;imagesize:override default image size (currently 200px). Use units ("123px", "12em")
 
;imagesize:override default image size (currently 200px). Use units ("123px", "12em")
Line 138: Line 54:
 
{{Infobox language
 
{{Infobox language
 
| name          =
 
| name          =
| altname      =
 
 
| nativename    =
 
| nativename    =
 
| pronunciation =
 
| pronunciation =
 +
| ailname      =
 +
| ailpron      =
 
| states (state) =
 
| states (state) =
 
| region        =
 
| region        =
| latd  = | latm  = | latNS  = <!-- latitude degrees/minutes/direction -->
 
| longd = | longm = | longEW = <!-- longitude degrees/minutes/direction -->
 
 
| ethnicity    =
 
| ethnicity    =
| speakers      =
 
| extinct      =
 
| revived      =
 
| revived-cat  =
 
| era          =
 
| date          =
 
| dateprefix    =
 
| ref          =
 
| speakers2    =
 
 
| familycolor  =
 
| familycolor  =
 +
| bgcolor      =
 
| fam1          =
 
| fam1          =
 
| fam2          =
 
| fam2          =
 
| fam15        =
 
| fam15        =
 
| family        =
 
| family        =
| ancestor(2/3) =
+
| ancestor     =
| creator      =
+
| ancestor2(-5) =
| created      =
+
| dia1(-15)    =
| setting      =
 
| posteriori    =
 
| dia1         =
 
| dia2          =
 
 
| dialects      =
 
| dialects      =
 +
| script        =
 
| sign          =
 
| sign          =
| stand1        =
 
| stand2        =
 
| standards    =
 
| script        =
 
 
| nation        =
 
| nation        =
 
| minority      =
 
| minority      =
 
| agency        =
 
| agency        =
| iso1          =
 
| iso2          =
 
| iso2b        =
 
| iso2t        =
 
| iso3          =
 
| iso3comment  =
 
| isoexception  =
 
| lc1          =
 
| ld1          =
 
| lc2          =
 
| ld2          =
 
| iso6          =
 
| glotto        =
 
| glottoname    =
 
| glotto2–5    =
 
| glottoname2–5 =
 
| linglist      =
 
| lingname      =
 
| linglist2/3  =
 
| lingname2/3  =
 
| lingua        =
 
| guthrie      =
 
| aiatsis      =
 
| aiatsisname  =
 
| aiatsis2–8    =
 
| aiatsisname2–8 =
 
| ietf =
 
 
| image        =
 
| image        =
 
| imagesize    =
 
| imagesize    =
Line 224: Line 97:
 
{{Infobox language
 
{{Infobox language
 
| name = English
 
| name = English
| pronunciation = {{IPAc-en|ˈ|ɪ|ŋ|ɡ|l|ɪ|ʃ}}<ref>[http://www.oxfordadvancedlearnersdictionary.com/dictionary/english_2 English Adjective] – Oxford Advanced Learner's Dictionary – Oxford University Press ©2010.</ref> |region = (see [[#Geographical distribution|below]])
+
| pronunciation = {{IPAc-en|ˈ|ɪ|ŋ|ɡ|l|ɪ|ʃ}}
| speakers = 360&nbsp;million
+
| region = (see [[#Geographical distribution|below]])
| date = 2010
+
| familycolor = #fff
| dateprefix = cited&nbsp;
+
| bgcolor = #fff
| ref = <ref name=NE>[[Nationalencyklopedin]] "Världens 100 största språk 2010" The World's 100 Largest Languages in 2010</ref>
+
| script = [[English alphabet]] ([[Latin script]])
| speakers2 = [[Second language|L2]]: 375&nbsp;million and 750 million [[English as a foreign or second language|EFL]]<ref name=BritishCouncilEnglish>{{cite web |url=http://www.britishcouncil.org/learning-elt-future.pdf |title=Future of English|accessdate=24 August 2011 |publisher=The British Council}} (page 10)</ref>
 
| familycolor = Indo-European
 
| fam2 = [[Germanic languages|Germanic]]
 
| fam3 = [[West Germanic languages|West Germanic]]
 
| fam4 = [[Anglo-Frisian languages|Anglo–Frisian]]
 
| fam5 = [[English languages|Anglic]]
 
 
| sign = [[Manually coded English]]
 
| sign = [[Manually coded English]]
| script = [[English alphabet]] ([[Latin script]])
 
 
| nation = {{plainlist|
 
| nation = {{plainlist|
 
* [[List of countries where English is an official language#Sovereign states|54 countries]]
 
* [[List of countries where English is an official language#Sovereign states|54 countries]]
Line 252: Line 118:
 
* [[Pacific Islands Forum|PIF]]
 
* [[Pacific Islands Forum|PIF]]
 
* [[UKUSA Agreement]]}}
 
* [[UKUSA Agreement]]}}
| iso1 = en
 
| iso2 = eng
 
| iso3 = eng
 
| lingua = 52-ABA
 
 
| map = Anglospeak.svg
 
| map = Anglospeak.svg
 
| mapcaption = {{legend|#0000ff|Countries where English is the native language of the majority of the population}} {{legend|#8ddada|Countries where English is an official but not primary language}}
 
| mapcaption = {{legend|#0000ff|Countries where English is the native language of the majority of the population}} {{legend|#8ddada|Countries where English is an official but not primary language}}
Line 263: Line 125:
 
{{Infobox language
 
{{Infobox language
 
| name = English
 
| name = English
| pronunciation = {{IPAc-en|ˈ|ɪ|ŋ|ɡ|l|ɪ|ʃ}}<ref>[http://www.oxfordadvancedlearnersdictionary.com/dictionary/english_2 English Adjective] – Oxford Advanced Learner's Dictionary – Oxford University Press ©2010.</ref> |region = (see [[#Geographical distribution|below]])
+
| pronunciation = {{IPAc-en|ˈ|ɪ|ŋ|ɡ|l|ɪ|ʃ}}
| speakers = 360&nbsp;million
+
| region = (see [[#Geographical distribution|below]])
| date = 2010
+
| familycolor = #fff
| dateprefix = cited&nbsp;
+
| bgcolor = #fff
| ref = <ref name=NE>[[Nationalencyklopedin]] "Världens 100 största språk 2010" The World's 100 Largest Languages in 2010</ref>
+
| script = [[English alphabet]] ([[Latin script]])
| speakers2 = [[Second language|L2]]: 375&nbsp;million and 750 million [[English as a foreign or second language|EFL]]<ref name=BritishCouncilEnglish>{{cite web |url=http://www.britishcouncil.org/learning-elt-future.pdf |title=Future of English|accessdate=24 August 2011 |publisher=The British Council}} (page 10)</ref>
 
| familycolor = Indo-European
 
| fam2 = [[Germanic languages|Germanic]]
 
| fam3 = [[West Germanic languages|West Germanic]]
 
| fam4 = [[Anglo-Frisian languages|Anglo–Frisian]]
 
| fam5 = [[English languages|Anglic]]
 
 
| sign = [[Manually coded English]]
 
| sign = [[Manually coded English]]
| script = [[English alphabet]] ([[Latin script]])
 
 
| nation = {{plainlist|
 
| nation = {{plainlist|
 
* [[List of countries where English is an official language#Sovereign states|54 countries]]
 
* [[List of countries where English is an official language#Sovereign states|54 countries]]
Line 291: Line 146:
 
* [[Pacific Islands Forum|PIF]]
 
* [[Pacific Islands Forum|PIF]]
 
* [[UKUSA Agreement]]}}
 
* [[UKUSA Agreement]]}}
| iso1 = en
 
| iso2 = eng
 
| iso3 = eng
 
| lingua = 52-ABA
 
 
| map = Anglospeak.svg
 
| map = Anglospeak.svg
 
| mapcaption = {{legend|#0000ff|Countries where English is the native language of the majority of the population}} {{legend|#8ddada|Countries where English is an official but not primary language}}
 
| mapcaption = {{legend|#0000ff|Countries where English is the native language of the majority of the population}} {{legend|#8ddada|Countries where English is an official but not primary language}}
Line 300: Line 151:
 
}}
 
}}
 
</pre>
 
</pre>
'''References in infobox'''
 
{{Reflist}}
 
 
{{clear}}
 
{{clear}}
 
=== Placement ===
 
=== Placement ===
Line 309: Line 158:
 
:'''<nowiki>{{Infobox language</nowiki>''' ← this calls the template
 
:'''<nowiki>{{Infobox language</nowiki>''' ← this calls the template
 
:'''| name =''' name of language ← the name of the language needs to be given
 
:'''| name =''' name of language ← the name of the language needs to be given
:'''| familycolor =''' appropriate language family ← refer to the coloured chart to the right (or above, depending on your browser), and type the name shown there; this will add the appropriate family color to the template top.8 Using "Altaic" or "Caucasian" etc. does *not* result in a claim that the language belongs to that family: think of them as areal codings.
 
 
:'''<nowiki>}}</nowiki>''' ← this ends the template call
 
:'''<nowiki>}}</nowiki>''' ← this ends the template call
  
Line 319: Line 167:
  
 
There are several more parameters that can be defined between the opening and closing lines. These are:
 
There are several more parameters that can be defined between the opening and closing lines. These are:
:'''| altname =''' additional name of the language [not every one, but one a reader would be likely to look for]
+
:'''| nativename =''' the transliteration of the native name of the language. See [[Meta:English Transliterations]] for more information.
:'''| nativename =''' native name, or a second alternative name [most cases as of 2012 not actually the native name]
+
:'''| ailname = ''' the transliteration of the name it is "officially" listed under at the [[World:Aldeemah Imperial Library|Aldeemah Imperial Library]].
 
:'''| states =''' countries in which it is mainly spoken (multigenerational communities) ← you do not have to define both this and '''region'''. Do not use flag icons except for national or official status ([[WP:INFOBOXFLAG]]).
 
:'''| states =''' countries in which it is mainly spoken (multigenerational communities) ← you do not have to define both this and '''region'''. Do not use flag icons except for national or official status ([[WP:INFOBOXFLAG]]).
 
:'''| region =''' geographic region in which it is mainly spoken ← you do not have to define both this and '''states'''; use this parameter for a single statement about geographic distribution. It is not for the broader region where the states are located, but rather the regions within the country, or across countries, where it is spoken. (That is, do not add SE Asia if we state it's in Laos, or West Africa if we state it's in Mali.)
 
:'''| region =''' geographic region in which it is mainly spoken ← you do not have to define both this and '''states'''; use this parameter for a single statement about geographic distribution. It is not for the broader region where the states are located, but rather the regions within the country, or across countries, where it is spoken. (That is, do not add SE Asia if we state it's in Laos, or West Africa if we state it's in Mali.)
:'''| speakers =''' the number of native speakers of the language. If unknown, enter {{angle bracket|?}} and do not enter NA for the date (this causes the article to be listed in the [[:Category:Language articles with speakers set to 'unknown']], a hidden [[WP:PROJCATS|maintenance category]]). If no native speakers, enter {{angle bracket|none}}. Otherwise, if no date is supplied, ''missing date'' will be displayed.  Use <code><nowiki>{{sigfig|...|2}}</nowiki></code> to round to 2 [[significant figures]] while retaining the exact figure from the reference.
+
:'''| family =''' language family it belongs to.
:'''| date =''' the date of publication of the estimate of the number of speakers.
 
::Used for calculations for obsolete data, so needs to start with a 4-digit year. Exception: If {{angle bracket|NA}} is entered, nothing will display. If {{angle bracket|no date}} is entered, "no date" will display.  Do not enter a date parameter at all if speakers is set to {{angle bracket|none}}.
 
::Articles with old dates (currently ≥ 30 years) appear in [[:Category:Language articles with old speaker data]].
 
:'''| ref =''' reference for the speaker data.
 
::If {{angle bracket|e17}} is entered, this will automatically generate a reference to the ''Ethnologue'' 17 article that bears the ISO 639-3 code entered at 'iso3'.
 
::To link to the auto-generated reference from elsewhere in the article, use <code><nowiki><ref name=e17/></nowiki></code>.
 
::{{angle bracket|e16}} and <code><nowiki><ref name=e16/></nowiki></code> or {{angle bracket|e15}} and <code><nowiki><ref name=e15/></nowiki></code> can be used to ref the 16th or 15th edition, for example for extinct languages which are no longer supported.
 
::{{angle bracket|linglist}} and <code><nowiki><ref name=linglist/></nowiki></code> can be used to ref the ''MultiTree'' entry at the Linguist List.
 
::{{angle bracket|ne2007/ne2010}} and <code><nowiki><ref name=NE100/></nowiki></code> can be used to ref the Swedish national encyclopedia, which we use for many of the world's top 100 languages
 
::{{angle bracket|inali}} and <code><nowiki><ref name=INALI/></nowiki></code> can be used to ref Mexico's [[Instituto Nacional de Lenguas Indígenas]]
 
::Similarly, aiatsis can be used to link to the <code><nowiki><ref name=AIATSIS/></nowiki></code> ref generated by the info box for the AIATSIS entry for Australian languages.  (For Glottolog and Maho's edition of the Guthrie list for Bantu languages, <code><nowiki><ref name=Glottolog(2–5)/></nowiki></code> or <code><nowiki><ref name=Guthrie/></nowiki></code> needs to be added manually, as they do not provide population data.)
 
:'''| speakers2 =''' a 2nd line for speaker data, such as L2 speakers, appearing after the date.
 
::If this is a second line of L1 speakers, it should be arranged so that, if there are two dates cited, the oldest appears in the date parameter, for automated update calculations. Data from different countries should not be added together if they are not comparable: say if one is from 1973 and another from 2006, or if one is rounded to the nearest million and another is on the order of 10,000.
 
:'''| iso1 =''' the [[ISO 639-1]] code for the language
 
:'''| iso2 =''' the [[ISO 639-2]] code for the language; creates a link to the ISO page ← see just hereafter for the situation where a language has two ISO 639-2 codes
 
:'''| iso3 =''' the [[ISO 639-3]] code for the language; creates a link to the ISO page ← see [[#Language with more than one ISO 639-3 code|below]] for the situation where multiple ISO 639-3 codes apply; if there is no ISO 639-3 code, set '''iso3=none''' to return the text ''none'' and add the article to a list of uncoded languages (if '''iso3comment''' is also used, that will display in place of ''none'')
 
::Only iso3 will appear (with a dash) if the code is omitted. If a language has two [[ISO 639-2]] codes, one will be defined as the ''bibliographic'' code, and the other ''terminological''. These can be added in separate fields using the following parameters:
 
:'''| iso2b =''' the [[ISO 639-2]] bibliographic code
 
:'''| iso2t =''' the [[ISO 639-2]] terminological code
 
:'''| lingua =''' the [[Linguasphere]] code for the language
 
:'''| linglist(2,3) =''' the [[Linguist List]] code(s) for the language. May be a proper ISO code maintained at Linguist List, or a local non-ISO code; creates a link to the Linguist List page.
 
:'''| lingname(2,3) =''' the Linguist List name for the language, or other comment
 
:'''| glotto(2–5) =''' the [[Glottolog]] code for the language. Generates a reference which can be accessed via name="Glottolog(2–5)".  Enter "none" if Glottolog does not have a code for the language, "spurious" if Glottolog uses that term. [future: also "unattested"]
 
:'''| glottoname(2–5) =''' the names to be used for the Glottolog reference(s).  If there is more than one box on a page, then you need a different-numbered parameter for each, in order to generate separate footnotes.
 
:'''| guthrie =''' the [[Guthrie classification of Bantu languages|Guthrie]] code for Bantu languages. Generates a reference which can be accessed via name="Guthrie".
 
:'''| aiatsis(2,3) =''' the [[AIATSIS]] code(s) for Australian languages. Generates a reference which can be accessed via name="AIATSIS".
 
:'''| aiatsis(2,3)name =''' the AIATSIS name, if different from the entry at |name=.
 
:'''| iso3comment ='''  allows a comment in the ISO field that will not interfere with the link
 
:'''| isoexception ='''  handles exceptions to the handling of missing ISO codes; see details [[#isoexception|above]].
 
:'''| ietf ='''  [[IETF language tag]]
 
 
 
=== Genetic classification ===
 
 
 
You can use the language template to show the [[language family|genetic classification]] of a language at a glance. This classification is displayed as a descending staircase of language families, from the broadest to the most specific. To add the genetic classification use the following:
 
:'''| fam1 =''' the broadest possible widely accepted [[language family]] of which the language is a part ← if this would be exactly the same as you have defined for '''familycolor''', it may be omitted
 
:'''| fam2 =''' a more specific sub-family
 
:'''| fam3 =''' a more specific group
 
 
 
You can keep adding parameters in like fashion until you have completed the classification. If you would prefer to enter some other information in this box (for example, ''disputed''), use this parameter instead:
 
:'''| family =''' whatever you want to say (sequesters the repetition of the name of the language)
 
This can be set to "na" to avoid specifying a family relationship at all, an for a geographical group that has no single origin.
 
 
 
Ancestral forms may be useful when we have an article on them, or when they have been assigned ISO codes:
 
 
:'''| ancestor =''' an ancestral form, such as Old English or Proto-Basque
 
:'''| ancestor =''' an ancestral form, such as Old English or Proto-Basque
:'''| ancestor2/3 =''' intermediate ancestral forms, such as Middle English or Aquitanian
+
:'''| ancestor2..5 =''' intermediate ancestral forms, such as Middle English or Aquitanian
  
 
=== Optional parameters ===
 
=== Optional parameters ===
  
 
Some parts of the template remain invisible unless they are specifically called. Only use these parameters if they are required.
 
Some parts of the template remain invisible unless they are specifically called. Only use these parameters if they are required.
:'''| fontcolor =''' colour of font against 'familycolor' the font colour is usually black, use this to change it if it is difficult to read
+
:'''| fontcolor =''' color of font against the backgrounds below (defaults to black)
 +
:'''| familycolor =''' background color for the box's heading (defaults to #ddd)
 +
:'''| bgcolor =''' background color for the entire box (defaults to #f0f0f0)
 
:'''| pronunciation =''' pronunciation of the native name of the language in [[International Phonetic Alphabet|IPA]] → remember to enclose the transcription in an IPA template such as {{tl|IPA-all}}
 
:'''| pronunciation =''' pronunciation of the native name of the language in [[International Phonetic Alphabet|IPA]] → remember to enclose the transcription in an IPA template such as {{tl|IPA-all}}
 +
:'''| ailpron =''' pronunciation of the name listed at the AIL.
 
:'''| nation =''' list of countries in which it is an official language
 
:'''| nation =''' list of countries in which it is an official language
 
:'''| minority =''' list of countries in which it is a recognised minority language. This is intended for legal protection and similar ''de jure'' recognition, not simply being listed on a census and other ''de facto'' recognition.
 
:'''| minority =''' list of countries in which it is a recognised minority language. This is intended for legal protection and similar ''de jure'' recognition, not simply being listed on a census and other ''de facto'' recognition.
 
:'''| agency =''' regulatory body or language academy for the language
 
:'''| agency =''' regulatory body or language academy for the language
:'''| extinct =''' date of extinction, or information about extinction ← this replaces '''speakers'''
 
:'''| revived = ''' date and/or population of attempted revival of extinct language
 
:'''| revived-category = ''' (or '''| revived-cat = ''') optional name  (without "Category:") of appropriate subcategory of [[:Category:Language revival]] (which is used by default if {{para|revived}} has a value); can be given as '''| revived-category = nocat ''' to suppress the categorization entirely, when the language has a separate article about its revival that is already in the category (e.g. [[Cornish revival]] is in [[:Category:Celtic language revival]], so {{para|revived-cat=nocat}} is used in the infobox at [[Cornish language]]).
 
:'''| era =''' era of use of an ancestral form of a language ← this replaces '''speakers'''
 
 
:'''| script =''' writing system(s) used to represent the language ← in the form ''script (instantiation)'', such as "[[Latin script|Latin]] ([[English alphabet]])"<br />(Common variants of "Latin (alphabet)" redirect to [[Latin script]]. For the [[Latin alphabet]] itself, add an element such as <code>&amp;nbsp;</code>.)
 
:'''| script =''' writing system(s) used to represent the language ← in the form ''script (instantiation)'', such as "[[Latin script|Latin]] ([[English alphabet]])"<br />(Common variants of "Latin (alphabet)" redirect to [[Latin script]]. For the [[Latin alphabet]] itself, add an element such as <code>&amp;nbsp;</code>.)
 
=== Language with more than one ISO 639-3 code ===
 
 
Some languages have a number of [[ISO 639-3]] codes, one for each dialect of that language. If you try putting all of these codes in the usual '''iso3 ='''  parameter, it will get quite messy. Instead, use the following parameters:
 
:'''| lc1 =''' language code of the first dialect
 
:'''| ld1 =''' name of the first language dialect
 
 
For subsequent dialects, use '''lc2''' and so forth. Lc entries will be automatically linked to the ''Ethnologue'' site. Wikipedia articles on the dialects may be linked from the ld entries..
 
 
For languages with an [[ISO 639-3 macrolanguage]] code and several individual codes, use '''iso3''' for the macrolanguage and '''lc''n''''', '''ld''n''''' for the individual codes.
 
 
=== Constructed languages ===
 
 
This template is appropriate to use for [[constructed languages]]. The following parameters can be used:
 
:'''| creator =''' name of language creator
 
:'''| created =''' year of first creation
 
:'''| setting =''' the use or setting for the language
 
:'''| posteriori =''' natural-language sources
 
 
Using these parameters, or setting '''familycolor=Conlang''', automatically sets the coloured bars of the infobox to {{code|{{Infobox language/family-color|Conlang}}}} background with white fonts, and removes the '''states''' and '''region''' parameters from use ('''nation''' is also disabled). If the '''iso2''' parameter is left undefined, it is treated as being '''iso2=art'''. For conlangs, the '''family''' or '''fam''n''''' parameters are used to describe the hierarchy of purpose of the language, whereas '''posteriori''' is used to describe the ''a posteriori'' sources on which the conlang draws.
 
  
 
=== Images in the template ===
 
=== Images in the template ===
Line 433: Line 217:
 
# [[:Template:Infobox language/quilt]]
 
# [[:Template:Infobox language/quilt]]
  
=== Error-tracking categories ===
+
<!-- Hiding this crap wholesale because I don't need it and/or don't want to edit it right now.
With 8,000 articles, manual review is insufficient. The following automating tracking categories should catch some of the more common errors. They also produce lists of articles that should be reviewed occasionally, because they lack population data or the data is dated.
 
 
 
;ISO support
 
* [[:Category:Languages without ISO 639-3 code]] – [iso3=] is set to 'none', as it is not (yet) included in ISO. May have other codes.
 
** [[:Category:Conlangs without ISO 639-3 code]] (subcat: most conlangs do not qualify for ISO)
 
** [[:Category:Nonexistent E17 links]] (setting [iso3=none] and [ref=e17] generates an invalid reference)
 
* [[:Category:Language articles without language codes]] – no language code listed, but not specifically excluded from ISO with [iso3=none]
 
** [[:Category:Languages without ISO 639-3 code but with Linguist List code]]
 
*** subcat [[:Category:Dialects with Linguist List code]] – LingList codes some dialects with sub-ISO codes as "xxx-yyy"
 
** [[:Category:Languages without ISO 639-3 code but with Linguasphere code]]
 
** [[:Category:Languages without ISO 639-3 code but with AIATSIS code]]
 
** [[:Category:Languages without ISO 639-3 code but with Guthrie code]]
 
** [[:Category:Dialects of languages with ISO 639-3 code]] (a normal exception, triggered by isoexception=dialect)
 
** [[:Category:Historical forms of languages with ISO codes]] (a normal exception, triggered by isoexception=historical)
 
** [[:Category:Protolanguages without ISO codes]] (a normal exception, triggered by isoexception=protolanguage)
 
* [[:Category:Languages which need ISO 639-3 comment]] – triggered by [lc1=] without [lc2=] (once used as a way to provide comments; occasionally still appropriate with [iso3=] when a second but redundant ISO code is included)
 
* [[:Category:Languages with ISO 639-2 code]] (sometimes the 639-3 code is mistakenly copied into the <code>iso2</code> field)
 
* [[:Category:Languages with ISO 639-1 code]]
 
 
 
;Speaker and date issues
 
* [[:Category:Language articles without speaker estimate]] – no entry under [speakers=], and not extinct, a sign language, or a conlang
 
* [[:Category:Language articles with invalid population dates]] – entry error at [date=] (anything other than a 4-digit number at start)
 
* [[:Category:Language articles with speaker number undated]] – no entry at [date=]
 
** [[:Category:Language articles with 'no date' set]] – [date=no date], used when the source lacks a date
 
** [[:Category:Language articles with NA population dates]] – [date=NA], used when a date does not apply
 
* [[:Category:Language articles with old speaker data]] (currently set to > 25 years)
 
* [[:Category:Language articles without reference field]]
 
* [[:Category:Language articles citing Ethnologue 16]]
 
* [[:Category:Language articles citing Ethnologue 15]]
 
* [[:Category:Language articles citing Ethnologue 14]]
 
 
 
;Classification
 
* [[:Category:Language articles with spurious family]] (generally because [fam1=] is autofilled from [familycolor] to 'American', 'Australian', 'Papuan', 'Khoisan', 'Caucasian', 'Andamanese', or 'Paleosiberian')
 
* [[:Category:Languages without family color codes]] – no or invalid familycolor
 
* [[:Category:Languages without classification]] – family displayed as 'unknown' (sometimes triggered by SLs or conlangs)
 
 
 
;Other
 
* [[:Category:Language articles needing infoboxes]] (manual cat: switch off (to "no") if you judge the article does not need one)
 
* [[:Category:Ill-formatted infobox-language images]] – images need to be stripped of external file formatting
 
* [[:Category:Language articles with unsupported infobox fields]] (detects any parameter not in the list, incl. for now anything over dia20)
 
 
 
== See also ==
 
* [[:Template:Infobox language family]]
 
 
 
 
== TemplateData ==
 
== TemplateData ==
 
This is the [[WP:VisualEditor/TemplateData|TemplateData]] for this template so it can be used with the new [[WP:VisualEditor|VisualEditor]].
 
This is the [[WP:VisualEditor/TemplateData|TemplateData]] for this template so it can be used with the new [[WP:VisualEditor|VisualEditor]].
Line 1,778: Line 1,518:
 
}
 
}
 
}
 
}
</templatedata>
+
</templatedata> -->
 
 
== Tracking/maintenance categories ==
 
* [[:Category:Language articles with unsupported infobox fields]] (via [[Module:Check for unknown parameters]])
 
* [[:Category:Articles citing AIATSIS]]
 
* [[:Category:Articles citing INALI]]
 
* [[:Category:Articles citing Linguist List]]
 
* [[:Category:Articles citing Maho/Guthrie]]
 
* [[:Category:Articles citing Nationalencyklopedin]]
 
* [[:Category:Articles opting out of population reference]]
 
* [[:Category:Articles with unnamed Glottolog code]]
 
* [[:Category:Conlangs without ISO 639-3 code]]
 
* [[:Category:Dialect articles with speakers set to 'unknown']]
 
* [[:Category:Dialects of languages with ISO 639-3 code]]
 
* [[:Category:Dialects with Linguist List code]]
 
* [[:Category:Extinct ISO language articles citing sources other than Ethnologue]]
 
* [[:Category:Historical forms of languages with ISO codes]]
 
* [[:Category:Ill-formatted infobox-language images]]
 
* [[:Category:ISO language articles citing sources other than Ethnologue]]
 
* [[:Category:Language articles missing Glottolog code]]
 
* [[:Category:Language articles with invalid population dates]]
 
* [[:Category:Language articles with NA population dates]]
 
* [[:Category:Language articles with 'no date' set]]
 
* [[:Category:Language articles with old Ethnologue 18 speaker data]]
 
* [[:Category:Language articles with old speaker data]]
 
* [[:Category:Language articles with speaker number undated]]
 
* [[:Category:Language articles with speakers set to 'none']]
 
* [[:Category:Language articles with speakers set to 'unknown']]
 
* [[:Category:Language articles with unknown extinction date]]
 
* [[:Category:Language articles with unknown population not citing Ethnologue 18]]
 
* [[:Category:Language articles with unreferenced extinction date]]
 
* [[:Category:Language articles without language codes]]
 
* [[:Category:Language articles without reference field]]
 
* [[:Category:Language articles without speaker estimate]]
 
* [[:Category:Languages rejected by Glottolog]]
 
* [[:Category:Languages which need ISO 639-3 comment]]
 
* [[:Category:Languages with ISO 639-1 code]]
 
* [[:Category:Languages with ISO 639-2 code]]
 
* [[:Category:Languages with neither ISO nor Glottolog code]]
 
* [[:Category:Languages without classification]]
 
* [[:Category:Languages without family color codes]]
 
* [[:Category:Languages without Glottolog code]]
 
* [[:Category:Languages without ISO 639-3 code]]
 
* [[:Category:Languages without ISO 639-3 code but with AIATSIS code]]
 
* [[:Category:Languages without ISO 639-3 code but with Glottolog code]]
 
* [[:Category:Languages without ISO 639-3 code but with Guthrie code]]
 
* [[:Category:Languages without ISO 639-3 code but with Linguasphere code]]
 
* [[:Category:Languages without ISO 639-3 code but with Linguist List code]]
 
* [[:Category:Nonexistent E18 links]]
 
* [[:Category:Protolanguages without ISO codes]]
 
* [[:Category:Language articles with IETF language tag]]
 
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |

Revision as of 01:10, 29 March 2016

Template:Mbox

This template provides a common standard for displaying data about a language.

Usage

This template accepts the following parameters:

name
name of language, simplest transliteration #REQUIRED
nativename
native transliteration of the language's name
pronunciation
IPA pronunciation of the native name
ailname
transliteration of the name recorded at the AIL
ailprob
IPA pronunciation of the AIL name
states
countries in which it is mainly spoken
state
alias for states
region
geographic region in which it is mainly spoken
ethnicity
people for whom this is the ethnically native language; races can be specified; this may change as I figure this out (or something)
familycolor
background color for main heading
bgcolor
background color for entire box
NOTE: The previous two will probably be changed after I decide on some language family color schemes (or something)
ancestor
ancestral or reconstructed forms
ancestor2
...
ancestor5
intermediate forms
protoname
alias for ancestor
dia1
...
dia20
primary dialects
dialects
whatever you want to say
script
the writing system(s) used for the language by literate speakers
sign
signed forms (manually coded language)
nation
list of countries in which it is an official language
minority
list of countries in which it is a recognised/protected minority language
agency
regulatory body or language academy for the language
image
image at top of info box. Use format "image name.png", without "file/image" or brackets.
imagesize
override default image size (currently 200px). Use units ("123px", "12em")
imagealt
alt text for the image
imagecaption
caption to appear under image
imageheader
brief header for image (appears in the left-hand column)
map
image at bottom of info box. Use format "image name.png", without "file/image" or brackets.
mapsize
override default map size (currently 220px). Use units ("123px", "12em"). Affects both maps.
mapalt
alt text for the map
mapcaption
caption to appear under map
map2
a second map
mapalt2
alt text for the second map
mapcaption2
caption to appear under both maps
boxsize
overrides default width of infobox, currently set at 22em. Format must include units ("12em" or "123px").
Useful when an article has various infoboxes aligned in a column. (Box will automatically expand to fix map wider than default box width.)
notice
notice2
IPA/ipa [adds notice for IPA notation], Indic [same for Indic scripts]

Syntax

{{Infobox language
| name          =
| nativename    =
| pronunciation =
| ailname       =
| ailpron       =
| states (state) =
| region        =
| ethnicity     =
| familycolor   =
| bgcolor       =
| fam1          =
| fam2          =
| fam15         =
| family        =
| ancestor      =
| ancestor2(-5) =
| dia1(-15)     =
| dialects      =
| script        =
| sign          =
| nation        =
| minority      =
| agency        =
| image         =
| imagesize     =
| imagealt      =
| imagecaption  =
| imageheader   =
| map           =
| mapsize       =
| mapalt        =
| mapcaption    =
| map2          =
| mapalt2       =
| mapcaption2   =
| boxsize       =
| notice        = 
| notice2       = 
}}

Example

English
Pronunciation /ˈɪŋɡlɪʃ/
Region (see below)
Writing system English alphabet (Latin script)
Signed forms Manually coded English
Official status
Official language in
220px
  Countries where English is the native language of the majority of the population
  Countries where English is an official but not primary language
This article contains IPA phonetic symbols. Without proper rendering support, you may see question marks, boxes, or other symbols instead of Unicode characters.
{{Infobox language
| name = English
| pronunciation = {{IPAc-en|ˈ|ɪ|ŋ|ɡ|l|ɪ|ʃ}}
| region = (see [[#Geographical distribution|below]])
| familycolor = #fff
| bgcolor = #fff
| script = [[English alphabet]] ([[Latin script]])
| sign = [[Manually coded English]]
| nation = {{plainlist|
* [[List of countries where English is an official language#Sovereign states|54 countries]]
* [[List of countries where English is an official language#Non-sovereign entities|27 non-sovereign entities]]
* [[United Nations]]
* [[European Union]]
* [[Commonwealth of Nations]]
* [[Council of Europe]]
* [[International Olympic Committee|IOC]]
* [[NATO]]
* [[North American Free Trade Agreement|NAFTA]]
* [[Organization of American States|OAS]]
* [[Organisation for Economic Co-operation and Development|OECD]]
* [[Organisation of Islamic Cooperation|OIC]]
* [[Pacific Islands Forum|PIF]]
* [[UKUSA Agreement]]}}
| map = Anglospeak.svg
| mapcaption = {{legend|#0000ff|Countries where English is the native language of the majority of the population}} {{legend|#8ddada|Countries where English is an official but not primary language}}
| notice = IPA
}}

Placement

The template should placed at the very top of the wikitext of the article, before any text. The absolute basic syntax is as shown below:

{{Infobox language ← this calls the template
| name = name of language ← the name of the language needs to be given
}} ← this ends the template call

*If you enter "isolate", you will be restricted to a single line for the family. In order to allow levels of classification, as with dialects of a language isolate, enter "grey"/"gray" instead.

However, you will probably want to add more than just this. Other parameters are listed below, they can be incorporated anywhere between the first and last lines, and in any order.

Additional parameters

There are several more parameters that can be defined between the opening and closing lines. These are:

| nativename = the transliteration of the native name of the language. See Meta:English Transliterations for more information.
| ailname = the transliteration of the name it is "officially" listed under at the Aldeemah Imperial Library.
| states = countries in which it is mainly spoken (multigenerational communities) ← you do not have to define both this and region. Do not use flag icons except for national or official status (WP:INFOBOXFLAG).
| region = geographic region in which it is mainly spoken ← you do not have to define both this and states; use this parameter for a single statement about geographic distribution. It is not for the broader region where the states are located, but rather the regions within the country, or across countries, where it is spoken. (That is, do not add SE Asia if we state it's in Laos, or West Africa if we state it's in Mali.)
| family = language family it belongs to.
| ancestor = an ancestral form, such as Old English or Proto-Basque
| ancestor2..5 = intermediate ancestral forms, such as Middle English or Aquitanian

Optional parameters

Some parts of the template remain invisible unless they are specifically called. Only use these parameters if they are required.

| fontcolor = color of font against the backgrounds below (defaults to black)
| familycolor = background color for the box's heading (defaults to #ddd)
| bgcolor = background color for the entire box (defaults to #f0f0f0)
| pronunciation = pronunciation of the native name of the language in IPA → remember to enclose the transcription in an IPA template such as {{IPA-all}}
| ailpron = pronunciation of the name listed at the AIL.
| nation = list of countries in which it is an official language
| minority = list of countries in which it is a recognised minority language. This is intended for legal protection and similar de jure recognition, not simply being listed on a census and other de facto recognition.
| agency = regulatory body or language academy for the language
| script = writing system(s) used to represent the language ← in the form script (instantiation), such as "Latin (English alphabet)"
(Common variants of "Latin (alphabet)" redirect to Latin script. For the Latin alphabet itself, add an element such as &nbsp;.)

Images in the template

You should not put large images at the top of the language template: they just make it very messy. You can place a small image at the top of the template using the following parameters:

| image = image name.png
| imagesize = 100px ← overrides the default image size
| imagealt = alt text
| imagecaption = caption
| imageheader = very simple description of image ('logo', 'map', 'script', etc.) ← this is placed in the left-hand column, and so needs to be short

If you have a larger image or two, such as a map, you can place them at the bottom of the template, spanning both columns, with the following parameter:

| map(2) = image name.png
| mapsize = 300px ← overrides the default image size
| mapalt(2) = alt text
| mapcaption(2) = caption

The usual image markup applies for both images. Alt text is for visually impaired readers, and the caption is for all readers; typically they should have little in common (see WP:ALT).

Footer notice

A notice or notices may be placed at the bottom of the infobox:

| notice=ipa ← places a notice about the Unicode fonts used for displaying IPA

Sub-templates

  1. Template:Infobox language/codelist
  2. Template:Infobox language/family-color
  3. Template:Infobox language/genetic
  4. Template:Infobox language/linguistlist
  5. Template:Infobox language/ref
  6. Template:Infobox language/quilt