Modul:R:Lingea
Megjelenés
A modult a Modul:R:Lingea/doc lapon tudod dokumentálni
local export = {}
local chart = {
['en']='angol',
['ar']='arab',
['bg']='bolgar',
['cs']='cseh',
['da']='dan',
['et']='eszt',
['fi']='finn',
['fr']='francia',
['he']='heber',
['el']='gorog',
['hr']='horvat',
['id']='indonez',
['ja']='japan',
['ca']='katalan',
['zh']='kinai',
['ko']='koreai',
['lt']='litvan',
['lv']='lett',
['de']='nemet',
['no']='norveg',
['it']='olasz',
['nl']='holland',
['pl']='lengyel',
['pt']='portugal',
['ro']='roman',
['ru']='orosz',
['es']='spanyol',
['sk']='szlovak',
['sl']='szloven',
['sr']='szerb',
['sv']='sved',
['th']='thai',
['tr']='torok',
['uk']='ukran',
['vi']='vietnami'
}
function export.create(frame)
local args = frame:getParent().args
local title = mw.title.getCurrentTitle().text
local title_url = mw.uri.encode(title, QUERY)
local code1 = args[1]
local langFrom = mw.ustring.gsub(code1,'..',chart)
local link = ""
if args == '' then
link = "[https://szotar.lingea.hu/ Lingea]"
else
link = "[https://szotar.lingea.hu/"..langFrom.."-magyar/" .. title_url .. " " ..title.. "] - ''Lingea'' (" ..args[1].."-hu)"
end
return link
end
return export