Template:Infobox language family: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
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|}}}


| label1 = Setting
| label3 = Geographic<br>distribution
| data1 = {{{setting|}}}
| data3 = {{{region|—}}}
| label2 = Geographic<br>distribution:
 
| data2 = {{{region|}}}
| label4 = {{#if: {{{extinct|}}}<!--
| label3 = [[w:Language family|Linguistic classification]]:
            -->|[[w:Extinct language|Extinct]]<!--
| data3 = {{{family|{{{fam1|{{Infobox language/genetic |{{{familycolor|Default}}}}}}}}<ul style="line-height:100%; margin-left:15px;padding-left:0"><li>{{#if:{{{fam2|}}}
            -->|{{#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>
}}}
}}}
| label4 = Proto-language:
| data4 = {{{protoname|}}}
| label5 = Subdivisions:
|data5 =
<div>{{{children|}}}</div>
<div>{{{child1|—}}}</div>
<div>{{{child2|}}}</div>
<div>{{{child3|}}}</div>
<div>{{{child4|}}}</div>
<div>{{{child5|}}}</div>
<div>{{{child6|}}}</div>
<div>{{{child7|}}}</div>
<div>{{{child8|}}}</div>
<div>{{{child9|}}}</div>
<div>{{{child10|}}}</div>
<div>{{{child11|}}}</div>
<div>{{{child12|}}}</div>
<div>{{{child13|}}}</div>
<div>{{{child14|}}}</div>
<div>{{{child15|}}}</div>
<div>{{{child16|}}}</div>
<div>{{{child17|}}}</div>
<div>{{{child18|}}}</div>
<div>{{{child19|}}}</div>
<div>{{{child20|}}}</div>


| label6 = Number of [[native speakers]]:
| label6 = {{longitem|{{#if:{{{ancestor2|}}}|Early forms|Early form}}}}
| data6 = {{{native speakers|}}}
| data6 = {{#if:{{{ancestor|}}}|<div style="text-align:left;">{{{ancestor|}}}
| label7 = ''[[w:Ethnologue|Ethnologue]]'' code{{#if:{{{silname2|}}}|s}}:
{{#if:{{{ancestor2|}}}|<ul style="line-height:100%; margin-left:1.35em; padding-left:0"><li>{{{ancestor2}}}
| data7 = {{#if:{{{sil|}}}
{{#if:{{{ancestor3|}}}|<ul style="line-height:100%; margin-left:0.45em; padding-left:0"><li>{{{ancestor3}}}
  |<tt>[http://www.ethnologue.com/show_family.asp?subid={{{sil}}} {{#if:{{{silname|}}}|{{{silname}}}|{{{sil}}}}}]{{#if:{{{sil2|}}}|, [http://www.ethnologue.com/show_family.asp?subid={{{sil2}}} {{#if:{{{silname2|}}}|{{{silname2}}}|{{{sil2}}}}}]}}{{#if:{{{sil3|}}}|, [http://www.ethnologue.com/show_family.asp?subid={{{sil3}}} {{#if:{{{silname3|}}}|{{{silname3}}}|{{{sil3}}}}}]}}</tt>
{{#if:{{{ancestor4|}}}|<ul style="line-height:100%; margin-left:0.45em; padding-left:0"><li>{{{ancestor4}}}
}} <!--ISO 639-2, 639-5 CODE-->
{{#if:{{{ancestor5|}}}|<ul style="line-height:100%; margin-left:0.45em; padding-left:0"><li>{{{ancestor5}}}
| label8 ={{#if:{{{iso2|}}}
</li></ul>}}
  | [[w:ISO 639-2|ISO 639-2]] and [[w:ISO 639-5|639-5]]:
</li></ul>}}
  |{{#if:{{{iso5|}}}
</li></ul>}}
    |[[w:ISO 639-5|ISO 639-5]]:
</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|}}}|&nbsp; {{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|}}}|&nbsp; {{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>
     }}
     }}
   }}
   }}
| data8 = {{#if:{{{iso2|}}}
 
  |<tt>{{{iso2}}}</tt>
| data21 = {{#if:{{{map2|}}}
  |{{#if:{{{iso5|}}}
   | [[File:{{{map2}}}|{{#if:{{{mapsize|}}}|{{{mapsize}}}px|300px}}|alt={{{mapalt2|}}}]]{{#if:{{{mapcaption2|}}}
    |<tt>{{{iso5}}}</tt>
    }}
  }}
| data9 = {{#if:{{{map|}}}
   | [[File:{{{map}}}|{{#if:{{{mapsize|}}}|{{{mapsize}}}px|300px}}]]{{#if:{{{mapcaption|}}}
    |<br><div style="text-align:left;">{{{mapcaption}}}</div>
    }}
  }}
| data10 = {{#if:{{{map2|}}}
  | [[File:{{{map2}}}|{{#if:{{{mapsize|}}}|{{{mapsize}}}px|300px}}]]{{#if:{{{mapcaption2|}}}
     |<br><div style="text-align:left;">{{{mapcaption2}}}</div>
     |<br><div style="text-align:left;">{{{mapcaption2}}}</div>
     }}
     }}
   }}
   }}
}}<!--this code just adds a category to track boxes w/o familycolor-->{{#ifeq:{{Infobox language/family-color|{{{familycolor|}}}}}|<!--blank-->|<includeonly>[[Category:Languages without family color codes]]</includeonly>}}<includeonly>[[Category:Language families]]</includeonly><noinclude>{{documentation}}</noinclude>
 
| data22 = {{{module|}}}
 
| label23 = Notes
| data23 = {{{notes|}}}
}}<!--
-->{{#ifeq:{{Infobox language/family-color|{{{familycolor|}}}}}|<!--blank-->|[[Category:Languages without family color codes]]}}<noinclude>
{{documentation}}
</noinclude>

Navigation menu