Modul:R:Szótár.net
Megjelenés
A modult a Modul:R:Szótár.net/doc lapon tudod dokumentálni
local export = {}
local chart = {
['et']='eszt',
['lv']='lett',
['lt']='litvan',
['ko']='koreai',
['uk']='ukran',
['sh']='szerb',
['vi']='vietnami',
['th']='thai',
['ca']='katalan',
['id']='indonez',
['he']='heber',
['ar']='arab',
['is']='izlandi',
['bg']='bolgar',
['zh']='kinai',
['hr']='horvat',
['cs']='cseh',
['da']='dan',
['nl']='holland',
['en']='angol',
['fi']='mind',
['fr']='francia',
['de']='nemet',
['el']='gorog',
['hu']='mind',
['it']='olasz',
['ja']='japan',
['la']='latin',
['no']='norveg',
['pl']='lengyel',
['pt']='portugal',
['ro']='roman',
['ru']='orosz',
['sr']='szerb',
['sk']='szlovak',
['sl']='szloven',
['es']='spanyol',
['sv']='mind',
['tr']='torok'
}
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://www.szotar.net/ Szótár.net]"
else
link = "[https://www.szotar.net/"..langFrom.."/" .. title_url .. "/ " .. title .. "] - ''Szótár.net'' (" ..args[1].."-hu)"
end
return link
end
return export