Template:Language: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(43 intermediate revisions by 4 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|{{{nativename}}}}}}}}
| titlestyle = font-weight: bold
| 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 22: Line 29:
| data4 = {{{ethnicity|}}}
| data4 = {{{ethnicity|}}}
| label5    = Number of speakers
| label5    = Number of speakers
| data5      = <!--
| data5      = {{#if:{{{Speakers|}}}{{{speakers|}}}|{{{Speakers|{{{speakers|}}}}}}}}
-->{{#if:{{{extinct|}}}|{{#ifeq:{{{extinct}}}|?|(date missing)|{{{extinct}}}}}<!-- extinct input used
| label6     = Language family
  -->|{{#if:{{{era|}}}|{{{era}}}<!-- era input used
| data6     = {{{LangFamily|{{{fam1|}}}}}}
      -->|<!-- 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|{{{speakers}}}}}}}}}|?|<!--
      -->|{{#ifeq:{{{signers|{{{Speakers|{{{speakers}}}}}}}}}|none|''None''
      |{{#if:{{{date|}}}|{{{signers|{{{Speakers|{{{speakers|–}}}}}}}}}&nbsp;({{{dateprefix|}}}{{{date}}})
      |{{{signers|{{{Speakers|{{{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|{{{speakers|–}}}}}}
      |{{#ifeq: {{{date}}}|no date|(undated figure of {{{Speakers|{{{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|{{{speakers|}}}}}}&nbsp;({{{dateprefix|}}}{{{date}}})<!--
    -->|<!-- old (25+) -->({{{Speakers|{{{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|{{{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|{{{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 87: Line 63:
}}</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 118: Line 94:
{{#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
}}<noinclude>
| data14     = {{#if:{{{LangRegulator|}}}{{{agency|}}}{{{development_body|}}}|{{{LangRegulator|}}}{{{agency|}}}{{{development_body|}}}}}
<noinclude>[[Category: Language templates]] [[Category: Infobox templates]]</noinclude>
| 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>
{{Documentation
|content =
== Template:Infobox language ==
 
This template is used to create an infobox for language-related articles. It is designed to present detailed information about a language, such as its native name, speakers, language family, writing system, and more.
 
=== Usage ===
To use this template, copy and paste the blank example below into your article and fill in the appropriate parameters. Parameters left blank will not be displayed in the infobox.
 
=== Blank Example ===
<pre>{{Infobox language
| Name          =
| NativeName    =
| altname        =
| altname2      =
| image          =
| caption        =
| Pronunciation  =
| NationSpoken  =
| region        =
| ethnicity      =
| Speakers      =
| LangFamily    =
| WritingSystem  =
| Source        =
| EarlyForm      =
| dialects      =
| NationOfficial =
| minority      =
| LangRegulator  =
| ISO639Codes    =
| map            =
| map2          =
| module        =
}}</pre>
 
===Filled Example===
{{Infobox language
| Name          = Alexandrian
| NativeName    = Alexandrien
| altname        = Alexandrian Common Tongue
| altname2      = Standard Alexandrian
| image          =
| caption        =
| Pronunciation  = /əˈlɛk.sən.dri.ən/
| NationSpoken  = [[Nouvelle Alexandrie]]
| region        = {{Unbulleted list|[[Cibola]]|[[Tapfer]]|[[Eura]]|[[Keltia]]|[[Benacia]]|[[Apollonia]]|}}
| ethnicity      = [[Alexandrian people|Alexandrians]]
| Speakers      = Approximately 628 million
| LangFamily    = [[Portal:Languages|Audente]]
| WritingSystem  = [[Portal:Languages|Audente alphabet]]
| Source        = Derived from [[Madland|Madlandian]], [[Portal:Languages|Audente]]
| EarlyForm      = [[Old Alexandrian]]<br>[[Middle Alexandrian]]<br>[[Alexandrian language|Modern Alexandrian]]
| dialects      = {{Unbulleted list|[[wikipedia:French of France|Genevan]] ([[Cibola]], [[Tapfer]], [[Keltia]])|[[wikipedia:Catalan language|Valencian]] ([[Keltia]], [[Eura]])|[[wikipedia:Occitan language|Baudrestian]] ([[Cibola]], [[Tapfer]])|[[wikipedia:Antillean Creole|Creole Alexandrin]] ([[Cibola]], [[Tapfer]])|[[wikipedia:Geographical_distribution_of_French_speakers#Northern_Africa|Creole d'Eura]] ([[Eura]])|[[wikipedia:Belgian French|Dialecte Batave]] ([[Benacia]])|[[wikipedia:Meridional French|Florian Alexandrian]]}}
| NationOfficial = {{Unbulleted list|{{team flag|Nouvelle Alexandrie}}|{{team flag|Oportia}}|{{team flag|Natopia}}|{{team flag|Constancia}}|{{team flag|Ransenar}}|{{team flag|Floria}}|{{team flag| Meckelnburgh}}|}}
| minority      = Recognized minority language in {{team flag|Shireroth}}
| LangRegulator  = [[Académie Alexandrienne]]
| ISO639Codes    = ALX
| map            =
| map2          =
| module        =
}}
 
=== Parameters ===
Below are the parameters available for the template:
 
* Name: The name of the language.
* NativeName: The native name of the language.
* altname, altname2: Alternative names for the language.
* Pronunciation: The phonetic pronunciation of the language.
* NationSpoken: Countries or regions where the language is spoken natively.
* region: The geographic region where the language is spoken.
* ethnicity: The ethnicity associated with the language.
* Speakers: The number of speakers.
* LangFamily: The language family.
* WritingSystem: The writing system(s) used for the language.
* Source: Source or origin of the language.
* EarlyForm: Any early forms of the language.
* dialects: List of dialects.
* NationOfficial: Nations or regions where the language is an official language.
* minority: Recognized minority languages.
* LangRegulator: The organization or agency that regulates the language.
* ISO639Codes: Language codes for the language.
* map, map2: Maps showing the geographic distribution of the language.
* module: Any additional content or modules to be displayed.
}}
[[Category: Language templates]][[Category: Infobox templates]]</noinclude>
[[Category: Languages]]
[[Category: Languages]]

Latest revision as of 15:38, 11 May 2025

Language family
  • Language


Template documentation

Template:Infobox language

This template is used to create an infobox for language-related articles. It is designed to present detailed information about a language, such as its native name, speakers, language family, writing system, and more.

Usage

To use this template, copy and paste the blank example below into your article and fill in the appropriate parameters. Parameters left blank will not be displayed in the infobox.

Blank Example

{{Infobox language
| Name           = 
| NativeName     = 
| altname        = 
| altname2       = 
| image          = 
| caption        = 
| Pronunciation  = 
| NationSpoken   = 
| region         = 
| ethnicity      = 
| Speakers       = 
| LangFamily     = 
| WritingSystem  = 
| Source         = 
| EarlyForm      = 
| dialects       = 
| NationOfficial = 
| minority       = 
| LangRegulator  = 
| ISO639Codes    = 
| map            = 
| map2           = 
| module         = 
}}

Filled Example

Alexandrian
Alexandrien
Alexandrian Common Tongue
Standard Alexandrian
Pronunciation /əˈlɛk.sən.dri.ən/
Spoken natively in Nouvelle Alexandrie
Region
Ethnicity Alexandrians
Number of speakers Approximately 628 million
Language family

Audente

  • Alexandrian
Writing system Audente alphabet
Source Derived from Madlandian, Audente
Old Alexandrian
Middle Alexandrian
Modern Alexandrian
Dialects
Official status
Official language in
Recognised minority
language in
Recognized minority language in Shireroth Shireroth
Regulated by Académie Alexandrienne
Language codes
MOS-9 codes ALX

Parameters

Below are the parameters available for the template:

  • Name: The name of the language.
  • NativeName: The native name of the language.
  • altname, altname2: Alternative names for the language.
  • Pronunciation: The phonetic pronunciation of the language.
  • NationSpoken: Countries or regions where the language is spoken natively.
  • region: The geographic region where the language is spoken.
  • ethnicity: The ethnicity associated with the language.
  • Speakers: The number of speakers.
  • LangFamily: The language family.
  • WritingSystem: The writing system(s) used for the language.
  • Source: Source or origin of the language.
  • EarlyForm: Any early forms of the language.
  • dialects: List of dialects.
  • NationOfficial: Nations or regions where the language is an official language.
  • minority: Recognized minority languages.
  • LangRegulator: The organization or agency that regulates the language.
  • ISO639Codes: Language codes for the language.
  • map, map2: Maps showing the geographic distribution of the language.
  • module: Any additional content or modules to be displayed.