Ugrás a tartalomhoz

Modul:R:Deepl

A Wikiszótárból, a nyitott szótárból

A modult a Modul:R:Deepl/doc lapon tudod dokumentálni

local export = {}
 
function export.create(frame)
	local args = frame:getParent().args
	local title = mw.title.getCurrentTitle().text
	local title_url = mw.uri.encode(title, QUERY)
	local link = ""
	if args == '' then
		link = "[https://www.deepl.com/translator DeepL Translator]"
	else
		link = "[https://www.deepl.com/translator#"..args[1].."/"..args[2].."/" ..title_url.. " " ..title.. "] - ''DeepL''  (" ..args[1].."-"..args[2]..")"
	end
	return link
end
 
return export