Difference between revisions of "Template:Infobox sprachbund"

From blackwiki
Jump to navigation Jump to search
imported>Soumya-8974
(Created page with '{{Infobox | bodystyle = width:{{#if:{{{boxsize|}}}|{{{boxsize}}}|22em}}; | abovestyle = background-color: {{Infobox language/family-color|{{{sprachbundcolor|Defa...')
 
imported>Soumya-8974
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|{{{sprachbundcolor|Default}}}}};
+
| abovestyle = background-color: {{Infobox language/family-color|{{{familycolor|Default}}}}};
| subheaderstyle = background-color: {{Infobox language/family-color|{{{sprachbundcolor|Default}}}}};
+
| subheaderstyle = background-color: {{Infobox language/family-color|{{{familycolor|Default}}}}};
  
 
| above = {{{name}}}
 
| above = {{{name}}}
Line 17: Line 17:
 
| data4 = {{#if:{{{extinct|}}}|{{#ifeq:{{{extinct}}}|?|(date missing)|{{{extinct}}} }} }}
 
| data4 = {{#if:{{{extinct|}}}|{{#ifeq:{{{extinct}}}|?|(date missing)|{{{extinct}}} }} }}
  
| label5 = [[Language family|Language families]]
+
| label5 = Subdivisions
 
| data5 =
 
| data5 =
{{#if:{{{families|}}}|{{{families}}}}}
+
{{#if:{{{children|}}}|{{{children}}}}}
{{#if:{{{fam1|}}}|*{{{fam1}}}}}
+
{{#if:{{{child1|}}}|*{{{child1}}}}}
{{#if:{{{fam2|}}}|*{{{fam2}}}}}
+
{{#if:{{{child2|}}}|*{{{child2}}}}}
{{#if:{{{fam3|}}}|*{{{fam3}}}}}
+
{{#if:{{{child3|}}}|*{{{child3}}}}}
{{#if:{{{fam4|}}}|*{{{fam4}}}}}
+
{{#if:{{{child4|}}}|*{{{child4}}}}}
{{#if:{{{fam5|}}}|*{{{fam5}}}}}
+
{{#if:{{{child5|}}}|*{{{child5}}}}}
{{#if:{{{fam6|}}}|*{{{fam6}}}}}
+
{{#if:{{{child6|}}}|*{{{child6}}}}}
{{#if:{{{fam7|}}}|*{{{fam7}}}}}
+
{{#if:{{{child7|}}}|*{{{child7}}}}}
{{#if:{{{fam8|}}}|*{{{fam8}}}}}
+
{{#if:{{{child8|}}}|*{{{child8}}}}}
{{#if:{{{fam9|}}}|*{{{fam9}}}}}
+
{{#if:{{{child9|}}}|*{{{child9}}}}}
{{#if:{{{fam10|}}}|*{{{fam10}}}}}
+
{{#if:{{{child10|}}}|*{{{child10}}}}}
{{#if:{{{fam11|}}}|*{{{fam11}}}}}
+
{{#if:{{{child11|}}}|*{{{child11}}}}}
{{#if:{{{fam12|}}}|*{{{fam12}}}}}
+
{{#if:{{{child12|}}}|*{{{child12}}}}}
{{#if:{{{fam13|}}}|*{{{fam13}}}}}
+
{{#if:{{{child13|}}}|*{{{child13}}}}}
{{#if:{{{fam14|}}}|*{{{fam14}}}}}
+
{{#if:{{{child14|}}}|*{{{child14}}}}}
{{#if:{{{fam15|}}}|*{{{fam15}}}}}
+
{{#if:{{{child15|}}}|*{{{child15}}}}}
{{#if:{{{fam16|}}}|*{{{fam16}}}}}
+
{{#if:{{{child16|}}}|*{{{child16}}}}}
{{#if:{{{fam17|}}}|*{{{fam17}}}}}
+
{{#if:{{{child17|}}}|*{{{child17}}}}}
{{#if:{{{fam18|}}}|*{{{fam18}}}}}
+
{{#if:{{{child18|}}}|*{{{child18}}}}}
{{#if:{{{fam19|}}}|*{{{fam19}}}}}
+
{{#if:{{{child19|}}}|*{{{child19}}}}}
{{#if:{{{fam20|}}}|*{{{fam20}}}}}
+
{{#if:{{{child20|}}}|*{{{child20}}}}}
 +
| rowclass8 = {{{listclass|plainlist}}}
  
| label6 = {{#if:{{{iso1|}}}
+
| data6 = {{#if:{{{map|}}}
  | [[ISO 639-1]]
 
  }}
 
 
 
| data6 = {{#if:{{{iso1|}}}
 
  |<samp>{{{iso1}}}</samp>
 
  }}
 
 
 
| label7 = {{#if:{{{iso2|}}}
 
  | [[ISO 639-2]] / [[ISO 639-5|5]]
 
  |{{#if:{{{iso5|}}}
 
    |[[ISO 639-5]]
 
    }}
 
  }}
 
 
 
| data7 = {{#if:{{{iso2|}}}
 
  |<samp>[[ISO639-3:{{{iso2}}}|{{{iso2}}}]]</samp>
 
  |{{#if:{{{iso5|}}}
 
    |<samp>[[ISO639-3:{{{iso5}}}|{{{iso5}}}]]</samp>
 
    }}
 
  }}
 
 
 
| label8 = {{#if:{{{iso3|}}}
 
  | [[ISO 639-3]] }}
 
 
 
| data8 = {{#if:{{{iso3|}}}
 
  |<samp>[http://www-01.sil.org/iso639-3/documentation.asp?id={{{iso3}}} {{{iso3}}}]</samp> }}
 
 
 
| label9 = [[Linguasphere Observatory|Linguasphere]]
 
 
 
| data9 = {{#if:{{{lingua|}}}
 
  |<samp>{{{lingua}}}</samp> }}
 
 
 
| label10 = [[Glottolog]]
 
 
 
| data10 =  {{#if:{{{glotto|}}}|{{#ifeq:{{lc:{{{glotto|}}}}}|none|''None''{{main other|[[Category:Sprachbunds rejected by Glottolog]]}}|{{#ifeq:{{lc:{{{glotto|}}}}}|na|(not evaluated){{main other|[[Category:Sprachbunds not evaluated by Glottolog]]}}
 
  |<samp>{{glottolink|{{{glotto}}}}}</samp>{{#if:{{{glottoname|}}}|&nbsp; {{nowrap|({{{glottoname}}})}}}}{{#ifeq:{{{glottofoot|}}}|no||{{#tag:ref|{{Glottolog|{{{glotto}}}|{{{glottorefname|{{{glottoname|{{{name}}}}}}}}}}}|name="Glottolog"}}}}}}}}}}<!--
 
-->{{#if:{{{glotto2|}}}|{{#if:{{{glotto|}}}|<br>|<!--no break when more than one info box on a page-->}}<samp>{{glottolink|{{{glotto2}}}}}</samp>{{#if:{{{glottoname2|}}}|&nbsp; {{nowrap|({{{glottoname2}}})}}}}{{#ifeq:{{{glottofoot|}}}|no||{{#tag:ref|{{Glottolog|{{{glotto2}}}|{{{glottorefname2|{{{glottoname2|{{{name}}}}}}}}}}}|name="Glottolog2"}}}}}}<!--
 
-->{{#if:{{{glotto3|}}}|{{#if:{{{glotto2|}}}|<br>|<!--no break-->}}<samp>{{glottolink|{{{glotto3}}}}}</samp>{{#if:{{{glottoname3|}}}|&nbsp; {{nowrap|({{{glottoname3}}})}}}}{{#ifeq:{{{glottofoot|}}}|no||{{#tag:ref|{{Glottolog|{{{glotto3}}}|{{{glottorefname3|{{{glottoname3|{{{name}}}}}}}}}}}|name="Glottolog3"}}}}}}<!--
 
-->{{#if:{{{glotto4|}}}|{{#if:{{{glotto3|}}}|<br>|<!--no break-->}}<samp>{{glottolink|{{{glotto4}}}}}</samp>{{#if:{{{glottoname4|}}}|&nbsp; {{nowrap|({{{glottoname4}}})}}}}{{#ifeq:{{{glottofoot|}}}|no||{{#tag:ref|{{Glottolog|{{{glotto4}}}|{{{glottorefname4|{{{glottoname4|{{{name}}}}}}}}}}}|name="Glottolog4"}}}}}}<!--
 
-->{{#if:{{{glotto5|}}}|{{#if:{{{glotto4|}}}|<br>|<!--no break-->}}<samp>{{glottolink|{{{glotto5}}}}}</samp>{{#if:{{{glottoname5|}}}|&nbsp; {{nowrap|({{{glottoname5}}})}}}}{{#ifeq:{{{glottofoot|}}}|no||{{#tag:ref|{{Glottolog|{{{glotto5}}}|{{{glottorefname5|{{{glottoname5|{{{name}}}}}}}}}}}|name="Glottolog5"}}}}}}
 
 
 
| data11 = {{#if:{{{map|}}}
 
 
   | {{#invoke:InfoboxImage|InfoboxImage|image={{{map}}}|size={{{mapsize|}}}|sizedefault=300px|alt={{{mapalt|}}}}}{{#if:{{{mapcaption|}}}
 
   | {{#invoke:InfoboxImage|InfoboxImage|image={{{map}}}|size={{{mapsize|}}}|sizedefault=300px|alt={{{mapalt|}}}}}{{#if:{{{mapcaption|}}}
 
     |<div style="text-align:left;">{{{mapcaption}}}</div>
 
     |<div style="text-align:left;">{{{mapcaption}}}</div>
Line 89: Line 48:
 
   }}
 
   }}
  
| data12 = {{#if:{{{map2|}}}
+
| data7 = {{#if:{{{map2|}}}
 
   | [[File:{{{map2}}}|{{#if:{{{mapsize|}}}|{{{mapsize}}}px|300px}}|alt={{{mapalt2|}}}]]{{#if:{{{mapcaption2|}}}
 
   | [[File:{{{map2}}}|{{#if:{{{mapsize|}}}|{{{mapsize}}}px|300px}}|alt={{{mapalt2|}}}]]{{#if:{{{mapcaption2|}}}
 
     |<br><div style="text-align:left;">{{{mapcaption2}}}</div>
 
     |<br><div style="text-align:left;">{{{mapcaption2}}}</div>
Line 95: Line 54:
 
   }}
 
   }}
  
| data13 = {{{module|}}}
+
| data8 = {{{module|}}}
| label14 = Notes
+
| label9 = Notes
| data14 = {{{notes|}}}
+
| data9 = {{{notes|}}}
 
}}<!--
 
}}<!--
 
-->{{main other|{{{{{|safesubst:}}}#invoke:Check for unknown parameters|check|unknown=[[Category:Language articles with unsupported infobox fields|_VALUE_]]
 
-->{{main other|{{{{{|safesubst:}}}#invoke:Check for unknown parameters|check|unknown=[[Category:Language articles with unsupported infobox fields|_VALUE_]]
Line 103: Line 62:
 
|name|altname
 
|name|altname
 
|region|ethnicity|acceptance
 
|region|ethnicity|acceptance
|sprachbundcolor|families|fam1|fam2|fam3|fam4|fam5|fam6|fam7|fam8|fam9
+
|sprachbundcolor|children|child1|child2|child3|child4|child5|child6|child7|child8|child9|child10
|fam10|fam11|fam12|fam13|fam14|fam15|fam16|fam17|fam18|fam19|fam20|extinct
+
|child11|child12|child13|child14|child15|child16|child17|child18|child19|child20|extinct
 
|listclass|module|notes
 
|listclass|module|notes
|iso1|iso2|iso3|iso5|iso6
 
|lingua|glotto|glottoname|glotto2|glottoname2|glotto3|glottoname3|glotto4|glottoname4|glotto5|glottoname5|glottorefname|glottorefname2|glottorefname3|glottorefname4|glottorefname5|glottofoot
 
 
|map|mapsize|mapalt|mapcaption|map2|mapalt2|mapcaption2|boxsize
 
|map|mapsize|mapalt|mapcaption|map2|mapalt2|mapcaption2|boxsize
 
}}<!--
 
}}<!--
-->{{#ifeq:{{Infobox language/family-color|{{{sprachbundcolor|}}}}}|<!--blank-->|[[Category:Languages without sprachbund color codes]]}}<!--
+
-->{{#ifeq:{{Infobox language/family-color|{{{familycolor|}}}}}|<!--blank-->|[[Category:Languages without family color codes]]}}}}<noinclude>
-->{{#if:{{{glotto|}}}{{{glotto2|}}}{{{glotto3|}}}{{{glotto4|}}}{{{glotto5|}}}|<!--ok-->|[[Category:Sprachbunds missing Glottolog code]]}}<!--
 
-->{{#if:{{{glotto|}}}|{{#if:{{{glottorefname|}}}{{{glottoname|}}}|<!--ok-->|{{#ifeq:{{lc:{{{glotto|}}}}}|none|<!--ok-->|{{#ifeq:{{lc:{{{glotto|}}}}}|na|<!--ok-->|[[Category:Articles with unnamed Glottolog code]]}}}}}}}}<!--
 
-->{{#if:{{{glotto2|}}}|{{#if:{{{glottoname2|}}}{{{glottorefname2|}}}|<!--ok-->|[[Category:Articles with unnamed Glottolog code]]}}}}<!--
 
-->{{#if:{{{glotto3|}}}|{{#if:{{{glottoname3|}}}{{{glottorefname3|}}}|<!--ok-->|[[Category:Articles with unnamed Glottolog code]]}}}}<!--
 
-->{{#if:{{{glotto4|}}}|{{#if:{{{glottoname4|}}}{{{glottorefname4|}}}|<!--ok-->|[[Category:Articles with unnamed Glottolog code]]}}}}<!--
 
-->{{#if:{{{glotto5|}}}|{{#if:{{{glottoname5|}}}{{{glottorefname5|}}}|<!--ok-->|[[Category:Articles with unnamed Glottolog code]]}}}}<!--
 
-->}}<noinclude>
 
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 09:45, 17 September 2020

{{{name}}}
Geographic
distribution

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

The sprachbund template is for use in articles about sprachbunds. It provides a common standard for displaying data for navigating to sprachbunds.

Usage

{{Infobox sprachbund
| name        = name of sprachbund #REQUIRED
| altname     = alternative name(s) of the sprachbund
| acceptance  = acceptance status of the languages as a valid sprachbund
| ethnicity   = people(s) who speak the languages as a sprachbund
| region      = geographic region in which its languages are mainly spoken
| extinct     = date sprachbund went extinct
| familycolor = appropriate sprachbund #REQUIRED
| child1      = a language or group of languages belonging to this sprachbund
| child2      = another language or group of languages belonging to this sprachbund
| ...
| child20     = another language or group of languages belonging to this sprachbund
| 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.)
| 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

[[Category:Infobox templates|Template:Remove first word]]

The familycolor parameter should always be set, and determines the color of template headings indicating the broad group of languages to which the sprachbund belongs.