Module:Language/Data

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search

This page defines the configuration data used by Module:Language.

For general information on module data pages and how to edit them, refer to Guidelines:Modules/Data.

Data Visualization

The following is a visualization of the data stored on this page.

CodeFlag(s)LanguageLectAbbr.BCP 47 language tagInterwiki
enBrThe United Kingdom of Great Britain and Northern IrelandThe United Kingdom of Great Britain and Northern IrelandEnglishBritish EnglishEnglishBRBritishen-GB
jaJapanJapanJapaneseJapaneseJapaneseja
zhSThe People's Republic of ChinaThe People's Republic of ChinaChineseSimplified ChineseChineseSISimplifiedzh-Hans
zhT
  • The Republic of ChinaThe Republic of China
  • The Hong Kong Special Administrative Region of ChinaThe Hong Kong Special Administrative Region of China
  • The Macao Special Administrative Region of ChinaThe Macao Special Administrative Region of China
ChineseTraditional ChineseChineseTRTraditionalzh-Hant
csThe Czech RepublicThe Czech RepublicCzechCzechCzechcs
daThe Kingdom of DenmarkThe Kingdom of DenmarkDanishDanishDanishda
nlThe Kingdom of the NetherlandsThe Kingdom of the NetherlandsDutchDutchDutchnl
fiThe Republic of FinlandThe Republic of FinlandFinnishFinnishFinnishfi
frCCanadaCanadaFrenchCanadian FrenchFrenchCACanadianfr-CAfr
frFThe French RepublicThe French RepublicFrenchEuropean FrenchFrenchEUEuropeanfr-FRfr
deThe Federal Republic of GermanyThe Federal Republic of GermanyGermanGermanGermandede
elThe Hellenic Republic (Greece)The Hellenic Republic (Greece)GreekGreekGreekel
huHungaryHungaryHungarianHungarianHungarianhu
itThe Italian RepublicThe Italian RepublicItalianItalianItalianit
koThe Republic of KoreaThe Republic of KoreaKoreanKoreanKoreanko
heThe State of IsraelThe State of IsraelModern HebrewModern HebrewModern Hebrewhe
noThe Kingdom of NorwayThe Kingdom of NorwayNorwegianNorwegianNorwegianno
plThe Republic of PolandThe Republic of PolandPolishPolishPolishpl
ptBThe Federative Republic of BrazilThe Federative Republic of BrazilPortugueseBrazilian PortuguesePortugueseBRBrazilianpt-BR
ptPThe Portuguese RepublicThe Portuguese RepublicPortugueseEuropean PortuguesePortugueseEUEuropeanpt-PT
ruThe Russian FederationThe Russian FederationRussianRussianRussianru
esLLatin AmericaLatin AmericaSpanishLatin American SpanishSpanishLALatin Americanes-419es
esSThe Kingdom of SpainThe Kingdom of SpainSpanishEuropean SpanishSpanishEUEuropeanes-ESes
svThe Kingdom of SwedenThe Kingdom of SwedenSwedishSwedishSwedishsv
thThe Kingdom of ThailandThe Kingdom of ThailandThaiThaiThaith

Schema

The following is a visualization of the schema describing the expected shape of the data on this page.

The schema definition is located at Module:Language/Documentation/Spec.

Datarecord
lectsmap<string,record>
A list of lects (languages or variants thereof) relevant to The Legend of Zelda series.
<code>string
A identifying code for the lect. This should be an ISO 639-1 code. For variants, append a one- or two-character abbreviation.
langstring
The name of the language.
flagstring
A region code identifying a flag (or flags) to associate to the language.
tagstring
A BCP 47 language tag. Templates displaying text in other languages must set the lang attribute to this value in order for characters to appear with correct font and formatting, and to be read correctly by screen readers.
[variant][record]
abbrstring
An abbreviation of the language variant name.
namestring
A demonym representing the language variant.
[interwiki][string]
The interwiki prefix of Zelda Wiki's interlanguage partner for the given language, if applicable.

return {
	lects = {
		enAm = {
			lang = "English",
			flag = "us",
			tag = "en-US",
			variant = {
				abbr = "AM",
				name = "American",
			},
		},
		enBr = {
			lang = "English",
			flag = "gb",
			tag = "en-GB",
			variant = {
				abbr = "BR",
				name = "British",
			},
		},
		ja = {
			lang = "Japanese",
			flag = "jp",
			tag = "ja",
		},
		zhS = {
			lang = "Chinese",
			flag = "cn",
			tag = "zh-Hans",
			variant = {
				abbr = "SI",
				name = "Simplified",
			},
		},
		zhT = {
			lang = "Chinese",
			flag = "thm",
			tag = "zh-Hant",
			variant = {
				abbr = "TR",
				name = "Traditional",
			},
		},
		cs = {
			lang = "Czech",
			flag = "cz",
			tag = "cs",
		},
		da = {
			lang = "Danish",
			flag = "dk",
			tag = "da",
		},
		nl = {
			lang = "Dutch",
			flag = "nl",
			tag = "nl",
		},
		fi = {
			lang = "Finnish",
			flag = "fi",
			tag = "fi",
		},
		frC = {
			lang = "French",
			flag = "ca",
			tag = "fr-CA",
			variant = {
				abbr = "CA",
				name = "Canadian"
			},
			interwiki = "fr",
		},
		frF = {
			lang = "French",
			flag = "fr",
			tag = "fr-FR",
			variant = {
				abbr = "EU", 
				name = "European",
			},
			interwiki = "fr",
		},
		de = {
			lang = "German",
			flag = "de",
			tag = "de",
			interwiki = "de",
		},
		el = {
			lang = "Greek",
			flag = "gr",
			tag = "el",
		},
		he = {
			lang = "Modern Hebrew",
			flag = "il",
			tag = "he",
		},
		hu = {
			lang = "Hungarian",
			flag = "hu",
			tag = "hu",
		},
		it = {
			lang = "Italian",
			flag = "it",
			tag = "it",
		},
		ko = {
			lang = "Korean",
			flag = "kr",
			tag = "ko",
		},
		no = {
			lang = "Norwegian",
			flag = "no",
			tag = "no",
		},
		pl = {
			lang = "Polish",
			flag = "pl",
			tag = "pl",
		},
		ptB = {
			lang = "Portuguese",
			flag = "br",
			tag = "pt-BR",
			variant = {
				abbr = "BR",
				name = "Brazilian",
			},
		},
		ptP = {
			lang = "Portuguese",
			flag = "pt",
			tag = "pt-PT",
			variant = {
				abbr = "EU",
				name = "European",
			},
		},
		ru = {
			lang = "Russian",
			flag = "ru",
			tag = "ru",
		},
		esS = {
			lang = "Spanish",
			flag = "es",
			tag = "es-ES",
			variant = {
				abbr = "EU",
				name = "European"
			},
			interwiki = "es",
		},
		esL = {
			lang = "Spanish",
			flag = "lat",
			tag = "es-419",
			variant = {
				abbr = "LA",
				name = "Latin American",
			},
			interwiki = "es",
		},
		sv = {
			lang = "Swedish",
			flag = "se",
			tag = "sv",
		},
		th = {
			lang = "Thai",
			flag = "th",
			tag = "th",
		},
	},
}