İçeriğe atla

Modül:Cycling race/lang

Vikipedi, özgür ansiklopedi
Modül belgelemesi[oluştur]
local translations = {}
function translations.list(item)
--[[
Using country items to get the name of a country is very slow. Expand and translate this list to your needs, for example to all Scandinavian items or 
South-Amercon items if this is your main topic. The information for rarely used countries is taken from Wikidata. Maybe adding 300+ country names is to much 
and it is to much work to insert them all by hand, but 30 or 40 should be OK.
]]	
local list = {}
list={ ["Q16"]="Kanada", ["Q17"]="Japonya", ["Q20"]="Norveç", ["Q28"]="Macaristan", ["Q29"]="İspanya", ["Q30"]="Amerika Birleşik Devletleri", ["Q31"]="Belçika", ["Q32"]="Lüksemburg", 
	["Q33"]="Finlandiya", ["Q34"]="İsveç", ["Q35"]="Danimarka", ["Q36"]="Polonya", ["Q37"]="Litvanya", ["Q38"]="İtalya", ["Q39"]="İsviçre", 
	["Q40"]="Avusturya",["Q41"]="Yunanistan",["Q43"]="Türkiye",["Q45"]="Portekiz",
	["Q55"]="Hollanda", ["Q77"]="Uruguay", ["Q96"]="Meksika", ["Q114"]="Kenya", ["Q115"]="Etiyopya", ["Q142"]="Fransa", 
	["Q145"]="Birleşil Krallık", ["Q148"]="Çin", ["Q155"]="Brezilya", ["Q159"]="Rusya", 
	["Q183"]="Almanya", ["Q184"]="Belarus", ["Q211"]="Letonya",["Q212"]="Ukrayna",["Q213"]="Çekya",
	['Q214']='Slovakya', ["Q215"]="Slovenya",["Q218"]="Romanya",["Q219"]="Bulgaristan",
	["Q222"]="Arnavutluk", ["Q227"]="Azerbaycan",["Q232"]="Kazakistan", ["Q241"]="Küba",["Q252"]="Endonezya",["Q258"]="Güney Afrika",
	["Q262"]="Cezayir", ["Q265"]="Özbekistan",["Q298"]="Şili",["Q334"]="Singapur",["Q403"]="Sırbistan",
	["Q408"]="Avustralya", ["Q414"]="Arjantin",	["Q664"]="Yeni Zelanda", ["Q717"]="Venezuela", 
	["Q736"]="Ekvador",["Q739"]="Kolombiya",["Q750"]="Bolivya",["Q794"]="İran",["Q800"]="Kosta Rika",
	["Q801"]="İsrail",["Q833"]="Malezya",["Q846"]="Katar",["Q865"]="Tayvan",["Q869 "]="Tayland",
	["Q884"]="Güney Kore ", ["Q928 "]="Filipinler",["Q948"]="Tunus",
	["Q986"]="Eritre", ["Q1028"]="Fas", ["Q1037"]="Rwanda", ["Q29999"]="Hollanda",
	["Q8646"]="Hong Kong"
} 
local value = list[item]
if value ~= nil then return value else return '' end
end

--[[
This is for the data in "official name" - qualifiers in team items. The first element in the list lang_priority has the highest priority. 
The code looks first in Wikidata team items if there is a translation in this language. If there is no such translation, the next language is taken. 
In case no matching "official name" - qualifier is available, the standard "official name" is printed, that is the one that is the value in that statement. 

If a wiki doesn´t have the lang module or this variable is not inserted into the lang module , the "official name" - qualifiers are ignored. 

It is used to print non latin team names in the cycling race tables and local team names, for example "Team Sky" instead of "Sky".
]]        

translations.lang_priority = {'fr'} 

return translations