Template:Language: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(42 intermediate revisions by 3 users not shown)
Line 2: Line 2:
| bodyclass  = vcard
| bodyclass  = vcard
| title      = {{{Name|<includeonly>{{PAGENAME}}</includeonly>}}}
| title      = {{{Name|<includeonly>{{PAGENAME}}</includeonly>}}}
| above      = {{#if:{{{NativeName|}}}|{{{NativeName}}}}}
| above      = {{#if:{{{NativeName}}}{{{nativename}}}|{{{NativeName|}}}{{{nativename|}}}}}{{#if:{{{date|}}}|to {{{date}}}}}
| aboveclass = fn org
| aboveclass = fn org
| image      = {{#if:{{{Logo|}}}|{{{Logo}}}}}
| abovestyle = background-color: {{Infobox language/family-color|{{{LangFamily|{{{fam1|}}}|Default}}} }};
| caption    = {{#if:{{{caption|}}}|{{{caption}}}}}
| subheaderstyle = font-size:110%; background-color: {{Infobox language/family-color|{{{LangFamily|{{{fam1|}}}|Default}}} }};
| subheader1 = {{{altname|}}}
| subheader2 = {{{altname2|}}}
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{#if:{{{Logo|}}}{{{logo|}}}{{{image|}}}|{{{Logo|{{{logo|}}}{{{image}}}}}}}}|upright={{#if:{{{imagescale|}}}|{{{imagescale|}}}|0.9}}|alt={{{imagealt|}}}}}
| caption    = {{#if:{{{caption|}}}{{{imagecaption|}}}|{{{caption|{{{imagecaption}}}}}}}}
 
| headerstyle = background-color: {{Infobox language/family-color|{{{LangFamily|{{{fam1|}}}|Default}}}}};


| label1    = Pronunciation
| label1    = Pronunciation
| data1      = {{{Pronunciation|}}}
| data1      = {{{Pronunciation|{{{pronunciation|}}}}}}
| label2    = Spoken natively in
| label2    = Spoken natively in
| data2      = {{#if:{{{NationSpoken|}}}{{{states|}}}{{{state|}}}|{{{NationSpoken|}}}{{{states|}}}{{{state|}}}}}
| data2      = {{#if:{{{NationSpoken|}}}{{{states|}}}{{{state|}}}|{{{NationSpoken|}}}{{{states|}}}{{{state|}}}}}
Line 23: Line 29:
| label5    = Number of speakers
| label5    = Number of speakers
| data5      = {{#if:{{{Speakers|}}}{{{speakers|}}}|{{{Speakers|{{{speakers|}}}}}}}}
| data5      = {{#if:{{{Speakers|}}}{{{speakers|}}}|{{{Speakers|{{{speakers|}}}}}}}}
| label6 = {{#if:{{{extinct|}}} |[[Extinct language|Extinct]] |{{#if:{{{era|}}} |Era |{{#if:{{{creator|{{{speakers_label|}}}}}} |{{{speakers_label|Users}}} |{{longitem|Native {{#if:{{{signers|}}}{{#ifeq:{{Infobox language/family-color|{{{familycolor|}}}}}|silver|1}}|speakers|speakers}}}} }} }} }}
| label6    = Language family
| data6 =<!--
| data6     = {{{LangFamily|{{{fam1|}}}}}}
-->{{#if:{{{extinct|}}}|{{#ifeq:{{{extinct}}}|?|(date missing)|{{{extinct}}}}}<!-- extinct input used
  -->|{{#if:{{{era|}}}|{{{era}}}<!-- era input used
      -->|<!-- no era, check for sign/spoken -->{{#if:{{{signers|}}}{{#ifeq:{{Infobox language/family-color|{{{familycolor|}}} }}|silver|1}}<!-- check for signers/silver
        -->|<!-- SIGN language (silver) -->{{#if:{{{signers|}}}{{{speakers|}}}|{{#ifeq: {{lc:{{{date}}}}}|na|{{{signers|{{{speakers|–}}}}}}
      |{{#ifeq:{{{signers|{{{speakers}}}}}}|?|<!--
      -->|{{#ifeq:{{{signers|{{{speakers}}}}}}|none|''None''
      |{{#if:{{{date|}}}|{{{signers|{{{speakers|–}}}}}}&nbsp;({{{dateprefix|}}}{{{date}}})
      |{{{signers|{{{speakers|–}}}}}}{{main other|[[Category:Language articles with speaker number undated]]}}}} }} }} }} }}<!--(end if:date, ifeq:date=na, if:signers. end of SIGN)
        -->|<!-- SPOKEN language (not silver) -->{{#if:{{{speakers|}}}|{{#ifeq: {{lc:{{{date}}}}}|na|{{{speakers|–}}}
      |{{#ifeq: {{{date}}}|no date|(undated figure of {{{speakers}}})|<!--
The following changes the display depending on the age of the data. Limit set to 25 years, as a population can double in that time.
-->{{#if:{{{date|}}}|{{#iferror:{{#expr: {{padleft:|4|{{{date}}}|}} }}||{{#ifexpr:(({{CURRENTYEAR}} - {{padleft:|4|{{{date}}}|}}) < 25)<!--
    -->|<!-- regular-->{{{speakers|–}}}&nbsp;({{{dateprefix|}}}{{{date}}})<!--
    -->|<!-- old (25+) -->({{{speakers}}} cited {{{dateprefix|}}}{{{date}}}){{main other|{{#ifeq:{{{ref}}}|e19|[[Category:Language articles with old Ethnologue 19 speaker data]]|{{#ifeq:{{{ref}}}|e18|[[Category:Language articles with old Ethnologue 18 speaker data]]|[[Category:Language articles with old speaker data]]}}}}}}}}}}<!--(end ifexpr:25+, iferror:)
    -->|{{#ifeq:{{{speakers}}}|?|<!--
      -->|{{#ifeq:{{{speakers}}}|none|''None''
      |<!-- no date input -->{{{speakers|–}}}{{main other|[[Category:Language articles with speaker number undated]]}}}} }} }}<!--(end if:date, before the 25+ expr check)
    -->}}<!--(end ifeq:date=no date)
    -->}}<!--(end ifeq:date=na)
    -->|<!--(no speakers number to be shown)-->}}}}<!--(end if:speakers (in 2nd param of silver-check), if:silver. end of SPOKEN)
      -->}} }}<!--(end if:era, if:extinct. No open #if:s left)
If there is a ref, and there is any input for this row (data7), then we add the reference:
-->{{#if:{{{ref|}}}|{{#if:{{{extinct|}}}{{{era|}}}{{{signers|}}}{{{speakers|}}}{{{date|}}}{{#ifeq:{{Infobox language/family-color|{{{familycolor|}}}}}|silver|sign_language}}|{{Infobox language/ref|{{{ref}}}|iso3={{{iso3|}}}|refname={{{refname|}}}|name={{{name|{{PAGENAME}}}}}|lc1={{{lc1|}}}|ld1={{Delink|{{{ld1}}}}}|lc2={{{lc2|}}}|ld2={{Delink|{{{ld2}}}}}|lc3={{{lc3|}}}|ld3={{Delink|{{{ld3}}}}}|lc4={{{lc4|}}}|ld4={{Delink|{{{ld4}}}}}|lc5={{{lc5|}}}|ld5={{Delink|{{{ld5}}}}}|lc6={{{lc6|}}}|ld6={{Delink|{{{ld6}}}}}|lc7={{{lc7|}}}|ld7={{Delink|{{{ld7}}}}}}}}}}}<!--
Add speakers2 after the ref:
-->{{#if:{{{speakers2|}}}|<br />{{{speakers2|}}} }}
| label7     = Language family
| data7     = {{#ifeq: {{lc:{{{LangFamily|}}}{{{family}}}}}|na|{{{LangFamily|}}}|<div style="text-align:left;">{{{LangFamily|{{{fam1|{{#if:{{{signers|}}}{{#ifeq:{{Infobox language/family-color|{{{familycolor|}}}}}|silver|1}}
  |''Unknown''{{main other|[[Category:Languages without classification]]}}
  |{{#if:{{{creator|}}}{{{setting|}}}
    |[[constructed language]]
    |{{Infobox language/genetic|{{{familycolor|Default}}}}}
    }}
  }}}}}
<ul style="line-height:100%; margin-left:1.35em;padding-left:0"><li>
<ul style="line-height:100%; margin-left:1.35em;padding-left:0"><li>
{{#ifeq:{{{familycolor|}}}|unclassified||{{#ifeq:{{{familycolor|}}}|Unclassified||{{#ifeq:{{{familycolor|}}}|isolate||{{#ifeq:{{{familycolor|}}}|Isolate||{{#if:{{{fam2|}}}
{{#if:{{{fam2|}}}
| {{{fam2}}}<ul style="line-height:100%;margin-left:0.45em;padding-left:0;"><li>{{#if:{{{fam3|}}}
| {{{fam2}}}<ul style="line-height:100%;margin-left:0.45em;padding-left:0;"><li>{{#if:{{{fam3|}}}
| {{{fam3}}}<ul style="line-height:100%;margin-left:0.45em;padding-left:0;"><li>{{#if:{{{fam4|}}}
| {{{fam3}}}<ul style="line-height:100%;margin-left:0.45em;padding-left:0;"><li>{{#if:{{{fam4|}}}
Line 89: Line 62:
}}</li></ul>| '''{{{Name|{{{name|{{PAGENAME}}}}}}}}'''
}}</li></ul>| '''{{{Name|{{{name|{{PAGENAME}}}}}}}}'''
}}</li></ul>
}}</li></ul>
}}}}}}}}}}}</div>}}
</div>
| label8     = Writing system
| label7     = Writing system
| data8     = {{#if:{{{WritingSystem|}}}{{{script|}}}|{{{WritingSystem|{{{script}}}}}}}}
| data7     = {{#if:{{{WritingSystem|}}}{{{script|}}}|{{{WritingSystem|{{{script}}}}}}}}
| label9     = Source
| label8     = Source
| data9     = {{{Source|}}}
| data8     = {{{Source|}}}
| labe10     = Early forms
| labe9     = Early forms
| data10     = {{{EarlyForm|}}}
| data9     = {{{EarlyForm|}}}
| label11     = [[wikipedia:Dialect|Dialects]]
| label10     = [[wikipedia:Dialect|Dialects]]
| data11     = {{#if:{{{Dialect|}}}{{{dialects|}}}|{{{Dialect|{{{dialects}}}}}}
| data10     = {{#if:{{{Dialect|}}}{{{dialects|}}}|{{{Dialect|{{{dialects}}}}}}
|{{#if:{{{dia1|}}}|
|{{#if:{{{dia1|}}}|
{{#if:{{{dia1|}}}|*{{{dia1}}}}}
{{#if:{{{dia1|}}}|*{{{dia1}}}}}
Line 120: Line 93:
{{#if:{{{dia20|}}}|*{{{dia20}}}}}
{{#if:{{{dia20|}}}|*{{{dia20}}}}}
}}}}
}}}}
| label12     = Official language in
| header11  = {{#if:{{{NationOfficial|}}}|Official status}}
| data12     = {{{NationOfficial|}}}
| label12   = Official language in
| label13    = Regulated by
| data12     = {{#if:{{{NationOfficial|}}}{{{nation|}}}{{{official|}}}|{{{NationOfficial|}}}{{{nation|}}}{{{official|}}}}}
| data13     = {{{LangRegulator|}}}
| label13   = {{longitem|class=nowrap|Recognised minority<br />language&nbsp;in}}
| label14   = [[wikipedia:ISO 639|ISO 639]] codes
| data13    = {{#if:{{{minority|}}} |<div style="<!--label17 above almost always linewraps, so:-->vertical-align:middle;">{{{minority}}}</div>}}
| data14    = {{{ISO639Codes|}}}
| label14   = Regulated by
| data14     = {{#if:{{{LangRegulator|}}}{{{agency|}}}{{{development_body|}}}|{{{LangRegulator|}}}{{{agency|}}}{{{development_body|}}}}}
| header15  = {{#if:{{{ISO639Codes|}}}|Language codes}}
| label16   = [[Micras Organisation for Standardisation|MOS-9]] codes
| data16    = {{{ISO639Codes|}}}
 
| data17 = {{#if:{{{map|}}}
  |{{#invoke:InfoboxImage|InfoboxImage|image={{{map}}}|upright={{#if:{{{mapscale|}}}|{{{mapscale|}}}|1.45}}|alt={{{mapalt|}}}}}{{#if:{{{mapcaption|}}}|<div style="text-align:left;">{{{mapcaption}}}</div>}}|
  }}
 
| data18 = {{#if:{{{map2|}}}
  | {{#invoke:InfoboxImage|InfoboxImage|image={{{map2}}}|upright={{#if:{{{mapscale|}}}|{{{mapscale|}}}|1.45}}|alt={{{mapalt2|}}}}}{{#if:{{{mapcaption2|}}}|<div style="text-align:left;">{{{mapcaption2}}}</div>}}
  }}
 
| data19 = {{{module|}}}
 
<!--
| belowclass = noprint selfref
| belowstyle = background-color:#E7E7FF;color:inherit;padding:0.3em 0.5em;text-align:left;line-height:1.3;
| below = {{#ifeq:{{lc:{{{notice|{{{notice2|}}}}}}}}|ipa
  |'''This article contains [[wikipedia:International Phonetic Alphabet|IPA]] phonetic symbols.''' Without proper [[wikipedia:Help:IPA#Rendering issues|rendering support]], you may see [[wikipedia:Specials (Unicode block)#Replacement character|question marks, boxes, or other symbols]] instead of [[wikipedia:Unicode|Unicode]] characters. For an introductory guide on IPA symbols, see [[wikipedia:Help:IPA|Help:IPA]].
  }}
-->
}}<noinclude>
}}<noinclude>
<noinclude>[[Category: Language templates]] [[Category: Infobox templates]]</noinclude>
<noinclude>[[Category: Language templates]] [[Category: Infobox templates]]</noinclude>
[[Category: Languages]]
[[Category: Languages]]

Latest revision as of 01:49, 29 October 2024

Language family
  • Language