Module:ko-link

local export = {}

-- Language-tags any bare links. Used in Frequency lists/Korean 5800. function export.link(frame) local text = frame.args[1] if not text then return nil end local function link(text) return ' ' .. text .. ' ' end local function tag(text) return ' ' .. text .. ' '	end return (text		:gsub( "%[%[([^%]]+)%]%]",			link)		:gsub( -- Korean words inside parentheses "%(([^)]+)%)",			function (text)				return "(" .. tag(text) .. ")"			end)) end

return export