Difference between revisions of "Template:InfoboxLanguage"

From Glottopedia
Jump to navigation Jump to search
m (-cat:single language)
(more explanations)
 
(26 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="float: right; clear: right;">
+
<onlyinclude><div style="float: right; clear: right;">
 
{| cellpadding="2" cellspacing="0" style="width:330px; border:1px solid #ccc; margin-left:1em; border-collapse:collapse;" rules="all"
 
{| cellpadding="2" cellspacing="0" style="width:330px; border:1px solid #ccc; margin-left:1em; border-collapse:collapse;" rules="all"
 
! colspan="3" style="background-color:#A9BEC7; font-size:120%;" | {{{Language}}}
 
! colspan="3" style="background-color:#A9BEC7; font-size:120%;" | {{{Language}}}
 
|-  
 
|-  
| style="vertical-align:top; border-color:#E8E8E8" | Autonym:
+
| style="vertical-align:top; border-color:#E8E8E8" | Autoglottonym:
 
| colspan="2" style="border-color:#E8E8E8;" | {{{Autonym}}}
 
| colspan="2" style="border-color:#E8E8E8;" | {{{Autonym}}}
 
|-  
 
|-  
| style="vertical-align:top; border-color:#E8E8E8" | WALS name:
+
| style="vertical-align:top; border-color:#E8E8E8" | Pronunciation:
| colspan="2" style="border-color:#E8E8E8;" | {{{WALSname}}}
+
| colspan="2" style="border-color:#E8E8E8;" | [{{{Pronunciation}}}]
 
|-  
 
|-  
| style="vertical-align:top; border-color:#E8E8E8" | Ethnologue 15 name:
+
| style="vertical-align:top; border-color:#E8E8E8" | [[Ethnologue]] name:
| colspan="2" style="border-color:#E8E8E8;" | {{{Ethn15name}}}
+
| colspan="2" style="border-color:#E8E8E8;" | [http://www.ethnologue.com/show_language.asp?code={{{ISO3}}} {{{Ethn15name}}}]
 
|-  
 
|-  
| style="vertical-align:top;border-color:#E8E8E8" | Spoken in:
+
| style="vertical-align:top; border-color:#E8E8E8" | [[OLAC]] name:
| colspan="2" style="border-color:#E8E8E8;"| {{{Countries}}}
+
| colspan="2" style="border-color:#E8E8E8;" | [http://www.language-archives.org/language/{{{ISO3}}} {{{OLACname}}}]
 +
|-
 +
{{#if: {{{WALScode|}}} |
 +
{{!}} style="vertical-align:top; border-color:#E8E8E8" {{!}} [[WALS]] name:
 +
{{!}} colspan="2" style="border-color:#E8E8E8;" {{!}} [http://wals.info/languoid/lect/wals_code_{{{WALScode}}} {{{WALSname}}}]
 +
}}
 
|-  
 
|-  
| style="vertical-align:top;border-color:#E8E8E8" | [[WALS Location]]:
+
| style="vertical-align:top;border-color:#E8E8E8" | Location point:
 
| colspan="2"  style="border-color:#E8E8E8;"| {{{WALSLoc}}}
 
| colspan="2"  style="border-color:#E8E8E8;"| {{{WALSLoc}}}
|-  
+
|-
 +
! colspan="3" style="background-color:#A9BEC7;border-color:#E8E8E8" | Genealogy
 +
|-
 
| style="vertical-align:top;border-color:#E8E8E8" | Family:
 
| style="vertical-align:top;border-color:#E8E8E8" | Family:
 
| colspan="2"  style="border-color:#E8E8E8;"| {{{Family}}}
 
| colspan="2"  style="border-color:#E8E8E8;"| {{{Family}}}
Line 24: Line 31:
 
| colspan="2"  style="border-color:#E8E8E8;"| {{{Genus}}}
 
| colspan="2"  style="border-color:#E8E8E8;"| {{{Genus}}}
 
|-
 
|-
! colspan="3" style="background-color:#A9BEC7;border-color:#E8E8E8" | Official status
+
! colspan="3" style="background-color:#A9BEC7;border-color:#E8E8E8" | Speakers
 +
|-
 +
| style="vertical-align:top;border-color:#E8E8E8" | Country:
 +
| colspan="2"  style="border-color:#E8E8E8;"| {{{Countries}}}
 +
|-
 +
| style="vertical-align:top;border-color:#E8E8E8" | Official in:
 +
| colspan="2"  style="border-color:#E8E8E8;"| {{{OfficialLg}}}
 +
|-
 +
| style="vertical-align:top;border-color:#E8E8E8" | Speakers:
 +
| colspan="2"  style="border-color:#E8E8E8;"| {{{Speakers}}}
 
|-
 
|-
| style="vertical-align:top;" | Official language in:
+
| style="vertical-align:top;border-color:#E8E8E8" | Writing system:
| colspan="2" style="border-color:#E8E8E8;"| {{{OfficialLg}}}  
+
| colspan="2" style="border-color:#E8E8E8;"| {{{WritingSyst}}}  
 
|-
 
|-
! colspan="3" style="background-color:#A9BEC7;border-color:#E8E8E8" | ISO-Codes
+
! colspan="3" style="background-color:#A9BEC7;border-color:#E8E8E8" | Codes
 
|-
 
|-
| style="border-color:#E8E8E8;" | [[ISO 639]]-1:
+
{{#if: {{{ISO1|}}} |
| colspan="2" style="border-color:#E8E8E8;"| {{{ISO1}}}
+
{{!}} style="border-color:#E8E8E8;" {{!}} [[ISO 639]]-1:  
 +
{{!}} colspan="2" style="border-color:#E8E8E8;" {{!}} {{{ISO1}}}
 +
}}
 
|-
 
|-
| style="border-color:#E8E8E8;" | [[ISO 639]]-2:
+
{{#if: {{{ISO2B|}}} |
| width="33%" style="border-color:#E8E8E8;"| {{{ISO2B}}}
+
{{!}} style="border-color:#E8E8E8;" {{!}} [[ISO 639]]-2:
| style="border-color:#E8E8E8;" | {{{ISO2T}}}
+
{{!}} width="33%" style="border-color:#E8E8E8;" {{!}} {{{ISO2B}}}
 +
{{!}} style="border-color:#E8E8E8;" {{!}} {{{ISO2T}}}
 +
}}
 
|-
 
|-
 
| style="border-color:#E8E8E8;" | [[ISO 639]]-3:
 
| style="border-color:#E8E8E8;" | [[ISO 639]]-3:
| colspan="2" style="border-color:#E8E8E8;" | {{{Ethn15}}}
+
| colspan="2" style="border-color:#E8E8E8;" | {{{ISO3}}}
 +
|-
 +
{{#if: {{{WALScode|}}} |
 +
{{!}} style="vertical-align:top; border-color:#E8E8E8" {{!}} [[WALS]]:
 +
{{!}} colspan="2" style="border-color:#E8E8E8;" {{!}} {{{WALScode}}}
 +
}}
 +
|-
 +
{{#if: {{{MPIExt1|}}} |
 +
{{!}} style="vertical-align:top; border-color:#E8E8E8" {{!}} MPIExt1:
 +
{{!}} colspan="2" style="border-color:#E8E8E8;" {{!}} {{{MPIExt1}}}
 +
}}
 +
|}
 +
</div></onlyinclude>
 +
 
 +
The '''Template:InfoboxLanguage''' is used in [[Glottopedia:Language articles|language articles]] to display details about single languages as a right-side infobox. It can be stacked with other infoboxes.
 +
 
 +
== Usage ==
 +
Copy the following code into the article.
 +
<pre>
 +
{{InfoboxLanguage
 +
|Language        =
 +
|Autonym          =
 +
|Pronunciation    =
 +
|Ethn15name      =
 +
|OLACname        =
 +
|WALSname        =
 +
|WALSLoc          =
 +
|Family          =
 +
|Genus            =
 +
|Countries        =
 +
|OfficialLg      =
 +
|Speakers        =
 +
|WritingSyst      =
 +
|ISO              =
 +
|ISO2B            =
 +
|ISO2T            =
 +
|ISO3            =
 +
|WALScode        =
 +
|MPIExt1          =
 +
}}
 +
</pre>
 +
 
 +
Fill out the values like in the explanations below.
 +
 
 +
{| valign="top" style="border-width:0px; border-collapse:collapse; padding:2px;"
 +
|-
 +
| colspan="3" | <nowiki>{{</nowiki>InfoboxLanguage
 +
|-
 +
| width="15%" | &#124; Language|| width="20px" | = || Name of language (defaults to page name)
 +
|-
 +
|&#124; Autonym|| = ||
 +
|-
 +
|&#124; Pronunciation|| = || Pronunciation of the autoglottonym (in [[IPA]])
 +
|-
 +
|&#124; Ethn15name|| = || Name of the language used by [[Ethnologue]]
 +
|-
 +
|&#124; OLACname|| = || Name of the language used by [[OLAC]]
 +
|-
 +
|&#124; WALSname|| = || Name of the language used by [[WALS]]
 +
|-
 +
|&#124; WALSLoc|| = || Language coordinates used, see below
 +
|-
 +
|&#124; Family|| = || Highest genealogical unit to which the language belongs
 +
|-
 +
|&#124; Genus|| = || Lowest genealogical unit to which the language belongs
 +
|-
 +
|&#124; Countries|| = || Country or countries where the language is spoken
 +
|-
 +
|&#124; OfficialLg|| = || Country or countries where the language has official status
 +
|-
 +
|&#124; Speakers|| = || Number of speakers
 +
|-
 +
|&#124; WritingSyst|| = || Writing system
 +
|-
 +
|&#124; ISO|| = || Language code used by [[ISO 693]]-1
 +
|-
 +
|&#124; ISO2B|| = || Language code used by [[ISO 693]]-2/B
 +
|-
 +
|&#124; ISO2T|| = || Language code used by [[ISO 693]]-2/T
 +
|-
 +
|&#124; ISO3|| = || Language code used by [[ISO 693]]-3
 +
|-
 +
|&#124; WALScode|| = || Language code used by [[WALS]]
 +
|-
 +
|&#124; MPIExt1|| = ||
 
|-
 
|-
| style="border-color:#E8E8E8;" | [[MPIExt]]-1:
+
| colspan="3" | <nowiki>}}</nowiki>
| colspan="2" style="border-color:#E8E8E8;" | {{{MPIExt1}}}
 
 
|}
 
|}
</div><noinclude>
+
 
 +
==Examples==
 +
 
 +
===WALSloc===
 +
For languages included in [[WALS]] you can lookup coordinates there. If you write the coordinates like in the following example, a link to GoogleMaps is included automatically.
 +
<pre>
 +
|WALSLoc          ={{GooglemapLink|Lat=43°N|Long=44°E}}
 +
</pre>
 +
 
 +
 
 +
<noinclude>
 
[[Category:Template|InfoboxLanguage]]
 
[[Category:Template|InfoboxLanguage]]
 
</noinclude>
 
</noinclude>

Latest revision as of 19:06, 4 February 2013

{{{Language}}}
Autoglottonym: {{{Autonym}}}
Pronunciation: [{{{Pronunciation}}}]
Ethnologue name: {{{Ethn15name}}}
OLAC name: {{{OLACname}}}
Location point: {{{WALSLoc}}}
Genealogy
Family: {{{Family}}}
Genus: {{{Genus}}}
Speakers
Country: {{{Countries}}}
Official in: {{{OfficialLg}}}
Speakers: {{{Speakers}}}
Writing system: {{{WritingSyst}}}
Codes
ISO 639-3: {{{ISO3}}}

The Template:InfoboxLanguage is used in language articles to display details about single languages as a right-side infobox. It can be stacked with other infoboxes.

Usage

Copy the following code into the article.

{{InfoboxLanguage
|Language         =
|Autonym          =
|Pronunciation    =
|Ethn15name       =
|OLACname         =
|WALSname         =
|WALSLoc          =
|Family           =
|Genus            =
|Countries        =
|OfficialLg       =
|Speakers         =
|WritingSyst      =
|ISO              =
|ISO2B            =
|ISO2T            =
|ISO3             =
|WALScode         =
|MPIExt1          =
}}

Fill out the values like in the explanations below.

{{InfoboxLanguage
| Language = Name of language (defaults to page name)
| Autonym =
| Pronunciation = Pronunciation of the autoglottonym (in IPA)
| Ethn15name = Name of the language used by Ethnologue
| OLACname = Name of the language used by OLAC
| WALSname = Name of the language used by WALS
| WALSLoc = Language coordinates used, see below
| Family = Highest genealogical unit to which the language belongs
| Genus = Lowest genealogical unit to which the language belongs
| Countries = Country or countries where the language is spoken
| OfficialLg = Country or countries where the language has official status
| Speakers = Number of speakers
| WritingSyst = Writing system
| ISO = Language code used by ISO 693-1
| ISO2B = Language code used by ISO 693-2/B
| ISO2T = Language code used by ISO 693-2/T
| ISO3 = Language code used by ISO 693-3
| WALScode = Language code used by WALS
| MPIExt1 =
}}

Examples

WALSloc

For languages included in WALS you can lookup coordinates there. If you write the coordinates like in the following example, a link to GoogleMaps is included automatically.

|WALSLoc          ={{GooglemapLink|Lat=43°N|Long=44°E}}