Modul:Cycling race/lang
Die Dokumentation für dieses Modul kann unter Modul:Cycling race/lang/Doku erstellt werden
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"]="Japan", ["Q20"]="Norwegen", ["Q28"]="Ungarn", ["Q29"]="Spanien", ["Q30"]="Vereinigte Staaten", ["Q31"]="Belgien",
["Q32"]="Luxemburg",
["Q33"]="Finnland", ["Q34"]="Schweden", ["Q35"]="Dänemark", ["Q36"]="Polen", ["Q37"]="Litauen", ["Q38"]="Italien", ["Q39"]="Schweiz",
["Q40"]="Österreich",["Q41"]="Griechenland",["Q43"]="Türkei",["Q45"]="Portugal",
["Q55"]="Niederlande", ["Q77"]="Uruguay", ["Q96"]="Mexiko", ["Q114"]="Kenia", ["Q115"]="Äthiopien", ["Q142"]="Frankreich",
["Q145"]="Großbritannien", ["Q148"]="China", ["Q155"]="Brasilien", ["Q159"]="Russland",
["Q183"]="Deutschland", ["Q184"]="Belarus", ["Q211"]="Lettland",["Q212"]="Ukraine",["Q213"]="Tschechien",
['Q214']='Slowakei', ["Q215"]="Slowenien",["Q218"]="Rumänien",["Q219"]="Bulgarien",
["Q222"]="Albanien", ["Q227"]="Aserbaidschan",["Q232"]="Kasachstan", ["Q241"]="Kuba",["Q252"]="Indonesien",["Q258"]="Südafrika",
["Q262"]="Algerien", ["Q265"]="Usbekistan",["Q298"]="Chile",["Q334"]="Singapur",["Q403"]="Serbien",
["Q408"]="Australien", ["Q414"]="Argentinien", ["Q664"]="Neuseeland", ["Q717"]="Venezuela",
["Q736"]="Ecuador",["Q739"]="Kolumbien",["Q750"]="Bolivien",["Q794"]="Iran",["Q800"]="Costa Rica",
["Q801"]="Israel",["Q833"]="Malaysia",["Q846"]="Katar",["Q865"]="Taiwan",["Q869 "]="Thailand",
["Q884"]="Südkorea", ["Q928 "]="Phillipinen",["Q948"]="Tunesien",
["Q986"]="Eritrea", ["Q1028"]="Marokko", ["Q1037"]="Ruanda", ["Q29999"]="Niederlande",
["Q8646"]="Hongkong"
}
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".
]]
return translations
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.