Template:Infobox language family: Difference between revisions
Jump to navigation
Jump to search
Chrysophylax (talk | contribs) (Created page with " {{Infobox | bodystyle = width:{{#if:{{{boxsize|}}}|{{{boxsize}}}|22em}}; | abovestyle = background-color: {{Infobox language/family-color|{{{familycolor|Default}}}}}; | subhe...") |
No edit summary |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{Infobox | {{Infobox | ||
| bodystyle = width:{{#if:{{{boxsize|}}}|{{{boxsize}}}|22em}}; | | bodystyle = width:{{#if:{{{boxsize|}}}|{{{boxsize}}}|22em}}; | ||
| abovestyle = background-color: {{Infobox language/family-color|{{{familycolor|Default}}}}}; | | abovestyle = background-color: {{Infobox language/family-color|{{{familycolor|Default}}}}}; | ||
| subheaderstyle = background-color: {{Infobox language/family-color|{{{familycolor|Default}}}}}; | | subheaderstyle = background-color: {{Infobox language/family-color|{{{familycolor|Default}}}}}; | ||
| above = {{{name}}} | | above = {{{name}}} | ||
| subheader = {{{altname|}}} | | subheader = {{{altname|}}} | ||
| subheader2 = {{#if:{{{acceptance|}}}|({{{acceptance|}}})}} | |||
| label1 = Created by | |||
| data1 = {{#ifeq: {{str left|{{{creator|–}}}|4}}|User|[[{{{creator}}}|{{str right|{{{creator}}}|5}}]]|{{{creator|–}}}}} | |||
| label2 = Ethnicity | |||
| data2 = {{{ethnicity|}}} | |||
| | | label3 = Geographic<br>distribution | ||
| | | data3 = {{{region|—}}} | ||
| | |||
| | | label4 = {{#if: {{{extinct|}}}<!-- | ||
| | -->|[[w:Extinct language|Extinct]]<!-- | ||
| | -->|{{#if: {{{era|}}}<!-- | ||
-->|Era<!-- | |||
-->|{{{speakers_label|Native speakers}}}<!-- | |||
-->}}<!-- | |||
-->}} | |||
| data4 = {{#if: {{{extinct|}}}<!-- | |||
-->|{{#ifeq: {{{extinct}}}|?<!-- | |||
-->|<small>(date missing)</small>[[Category:Language articles with unknown extinction date]]<!-- | |||
-->|{{{extinct}}}<!-- | |||
-->}}<!-- extinct input used | |||
-->|{{#if: {{{era|}}}<!-- | |||
-->|{{{era}}}<!-- era input used | |||
-->|{{#if: {{{speakers|}}}<!-- | |||
-->|{{#switch: {{lc: {{{date}}}}}<!-- | |||
-->|na={{{speakers|–}}}<!-- | |||
-->|no date=<small>(undated figure of {{{speakers}}})</small><!-- | |||
-->|{{{speakers}}} ({{{date}}})<!-- | |||
-->}}<!-- | |||
-->|<!-- (no speakers number to be shown) | |||
-->}}<!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
-->{{#if: {{{speakers2|}}}|<br />{{{speakers2|}}}}} | |||
| label5 = [[w:Language family|Linguistic classification]] | |||
| data5 = {{{family|{{{fam1|{{Infobox language/genetic|{{{familycolor|Default}}}}}}}}<ul style="line-height:100%; margin-left:15px;padding-left:0"><li>{{#if:{{{fam2|}}} | |||
| {{{fam2}}}<ul style="line-height:100%; margin-left:5px;padding-left:0"><li>{{#if:{{{fam3|}}} | | {{{fam2}}}<ul style="line-height:100%; margin-left:5px;padding-left:0"><li>{{#if:{{{fam3|}}} | ||
| {{{fam3}}}<ul style="line-height:100%; margin-left:5px;padding-left:0"><li>{{#if:{{{fam4|}}} | | {{{fam3}}}<ul style="line-height:100%; margin-left:5px;padding-left:0"><li>{{#if:{{{fam4|}}} | ||
Line 43: | Line 75: | ||
}}</li></ul> | }}</li></ul> | ||
}}} | }}} | ||
| label6 = | | label6 = {{longitem|{{#if:{{{ancestor2|}}}|Early forms|Early form}}}} | ||
| data6 = {{{ | | data6 = {{#if:{{{ancestor|}}}|<div style="text-align:left;">{{{ancestor|}}} | ||
| | {{#if:{{{ancestor2|}}}|<ul style="line-height:100%; margin-left:1.35em; padding-left:0"><li>{{{ancestor2}}} | ||
| | {{#if:{{{ancestor3|}}}|<ul style="line-height:100%; margin-left:0.45em; padding-left:0"><li>{{{ancestor3}}} | ||
{{#if:{{{ancestor4|}}}|<ul style="line-height:100%; margin-left:0.45em; padding-left:0"><li>{{{ancestor4}}} | |||
}} <!-- | {{#if:{{{ancestor5|}}}|<ul style="line-height:100%; margin-left:0.45em; padding-left:0"><li>{{{ancestor5}}} | ||
| | </li></ul>}} | ||
</li></ul>}} | |||
|{{#if:{{{ | </li></ul>}} | ||
| | </li></ul>}} | ||
</div>}} | |||
| label7 = Proto-language | |||
| data7 = {{{protoname|}}} | |||
| label8 = Subdivisions | |||
| data8 = | |||
{{#if:{{{children|}}}|{{{children}}}}} | |||
{{#if:{{{child1|}}}|*{{{child1}}}}} | |||
{{#if:{{{child2|}}}|*{{{child2}}}}} | |||
{{#if:{{{child3|}}}|*{{{child3}}}}} | |||
{{#if:{{{child4|}}}|*{{{child4}}}}} | |||
{{#if:{{{child5|}}}|*{{{child5}}}}} | |||
{{#if:{{{child6|}}}|*{{{child6}}}}} | |||
{{#if:{{{child7|}}}|*{{{child7}}}}} | |||
{{#if:{{{child8|}}}|*{{{child8}}}}} | |||
{{#if:{{{child9|}}}|*{{{child9}}}}} | |||
{{#if:{{{child10|}}}|*{{{child10}}}}} | |||
{{#if:{{{child11|}}}|*{{{child11}}}}} | |||
{{#if:{{{child12|}}}|*{{{child12}}}}} | |||
{{#if:{{{child13|}}}|*{{{child13}}}}} | |||
{{#if:{{{child14|}}}|*{{{child14}}}}} | |||
{{#if:{{{child15|}}}|*{{{child15}}}}} | |||
{{#if:{{{child16|}}}|*{{{child16}}}}} | |||
{{#if:{{{child17|}}}|*{{{child17}}}}} | |||
{{#if:{{{child18|}}}|*{{{child18}}}}} | |||
{{#if:{{{child19|}}}|*{{{child19}}}}} | |||
{{#if:{{{child20|}}}|*{{{child20}}}}} | |||
| rowclass7 = {{{listclass|plainlist}}} | |||
| label11 = {{nowrap|[[w:ISO 639-1|ISO 639-1]]}} | |||
| data11 = {{#if: {{{iso1|}}}|<code class="plainlinks">[https://www.loc.gov/standards/iso639-2/php/langcodes_name.php?iso_639_1={{{iso1}}} {{{iso1}}}]</code> {{{iso1comment|}}}}} | |||
| label12 = {{nowrap|[[w:ISO 639-2|ISO 639-2]]}} | |||
| data12 = {{#if: {{{iso2|}}}|<code>{{{iso2}}}</code> {{{iso2comment|}}}}} | |||
| label13 = {{nowrap|[[w:ISO 639-3|ISO 639-3]]}} | |||
| data13 = {{#if:{{{iso3|}}}|<code class="plainlinks">[https://iso639-3.sil.org/code/{{{iso3}}} {{{iso3}}}]</code> {{{iso3comment|}}}}} | |||
| label14 = <span class="plainlinks">{{nowrap|[https://www.kreativekorp.com/clcr/ CLCR]}}</span> | |||
| data14 = {{#if:{{{clcr|}}}|<code>{{{clcr}}}</code>}} | |||
| label15 = [[Glottolog]] | |||
| data15 = {{#if:{{{glotto|}}}|<code>[http://glottolog.org/resource/languoid/id/{{{glotto|}}} {{{glotto|}}}]</code>{{#if:{{{glottoname|}}}| {{nowrap|{{{glottoname}}}}}}}}}<!-- | |||
-->{{#if:{{{glotto2|}}}|{{#if:{{{glotto|}}}|<br />|<!--no break when more than one box on a page-->}}<code>[http://glottolog.org/resource/languoid/id/{{{glotto2|}}} {{{glotto2|}}}]</code>{{#if:{{{glottoname2|}}}| {{nowrap|{{{glottoname2}}}}}}}}} | |||
| label16 = <span class="plainlinks">[https://conworkshop.com/ ConWorkShop]</span> | |||
| data16 = {{#if:{{{cws|}}}|<code>[https://conworkshop.com/view_language.php?l={{{cws}}} {{{cws}}}]</code>}} | |||
| data17 = {{#if:{{{map|}}} | |||
| {{#invoke:InfoboxImage|InfoboxImage|image={{{map}}}|size={{{mapsize|}}}|sizedefault=300px|alt={{{mapalt|}}}}}{{#if:{{{mapcaption|}}} | |||
|<div style="text-align:left;">{{{mapcaption}}}</div> | |||
}} | }} | ||
}} | }} | ||
| data21 = {{#if:{{{map2|}}} | |||
| [[File:{{{map2}}}|{{#if:{{{mapsize|}}}|{{{mapsize}}}px|300px}}|alt={{{mapalt2|}}}]]{{#if:{{{mapcaption2|}}} | |||
| [[File:{{{ | |||
|<br><div style="text-align:left;">{{{mapcaption2}}}</div> | |<br><div style="text-align:left;">{{{mapcaption2}}}</div> | ||
}} | }} | ||
}} | }} | ||
| data22 = {{{module|}}} | |||
| label23 = Notes | |||
| data23 = {{{notes|}}} | |||
}}<noinclude> | |||
{{documentation}} | |||
</noinclude> |
Latest revision as of 17:46, 14 April 2022
{{{name}}} | |
---|---|
Created by | – |
Geographic distribution | — |
Linguistic classification | Default
|
- The following documentation is located at Template:Infobox language family/doc. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
This template uses Lua: |
The language family template is for use in articles about language families and groupings. It provides a common standard for displaying data about the family, and for navigating to larger or smaller groups.
Usage
{{Infobox language family | name = <!--name of language family #REQUIRED--> | altname = <!--alternative name(s) of the language family--> | creator = <!--creator of the language #REQUIRED; if the value is of the form User:xxxxxx, it links automatically to that user--> | acceptance = <!--acceptance status of the languages as a valid genetic group--> | ethnicity = <!--people(s) who speak the languages as a group--> | region = <!--geographic region in which its languages are mainly spoken--> | extinct = <!--date family went extinct--> | speakers = <!--population, for families treated as languages in censuses etc.--> | date = <!--date of population estimate--> | ref = <!--ref for extinction date or population estimate--> | familycolor = <!--appropriate language family #REQUIRED--> | fam1 = <!--the broadest possible widely accepted [[language family]] of which this language family is a part--> | fam2 = <!--a more specific sub-family of which this family is a part--> | ... | fam15 = <!--most specific sub-group of which this family is a part--> | family = <!--whatever you want to say--> | ancestor = <!--oldest attested ancestral form--> | ancestor2 = <!--(to ancestor5) more recent attested ancestors of the family--> | protoname = <!--proto-language, if one has been reconstructed--> | child1 = <!--a language or group of languages belonging to this family--> | child2 = <!--another language or group of languages belonging to this family--> | ... | child20 = <!--another language or group of languages belonging to this family--> | children = <!--whatever you want to say--> | listclass = <!--class for the list of children: plainlist (default), hlist (horizontal) or flatlist (bulleted)--> | map = <!--a map of the region where it is spoken. Format must be "name of map.extension" (without 'file/image' or the square brackets)--> | mapalt = <!--caption for the blind--> | mapcaption = <!--printed caption underneath the map. See "Template:legend" as a helpful tool.--> | map2 = <!--a second map (or any image)--> | mapalt2 = <!--caption for the blind--> | mapcaption2 = <!--caption underneath second map--> | mapsize = <!--overrides the default map size, which is currently 350px. Format must include units ("123px" or "12em"). Affects 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.)--> | iso2, iso3 = <!--ISO 639-2 or -3 language code (such as for 'macrolanguages')--> | iso5 = <!--ISO 639-5 language family code--> | iso6 = <!--ISO 639-6 code--> | lingua = <!--the Linguasphere code for the family--> | glotto = <!--the Glottolog code for the family. Set glotto to "none" if Glottolog does not list the family because it is undemonstrated (branches can still be listed under glotto); set to "NA" if Glottolog does not cover more than one language or branch and so has not evaluated the family.--> | glottoname = <!--the name to be used in the Glottolog reference (can be cross-ref'd as name=Glottolog etc.)--> | module = <!--used for embedding other infoboxes into this one--> | notes = <!--A space for notes, e.g., "† indicates a dead language", or any "* [something here]" footnote--> }}
Background colors by family
The familycolor parameter should always be set, and determines the color of template headings indicating the broad group of languages to which the family belongs. Some of these groups (e.g. Altaic, Caucasian) are areal groups rather than accepted language families. When these values are used, the parameter fam1 should be set to the broadest widely accepted language family containing this one, if any.
See also