Jump to content

Module:Korean

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Grapesurgeon (talk | contribs) at 08:29, 11 April 2025 (t). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

require('strict');
local p = {}

function p.ko(frame)
	local getArgs = require('Module:Arguments').getArgs
	local args = getArgs(frame)
	return p._ko(args)
end

function p._ko(args)
	local hangul, hanja, rr, mr, context, labels, links, lit = args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]
	
	-- apply name mode
	if args["namemode"] == "yes" then
		-- hangul = "%" .. hangul
		hangul = "butt"
	end

	return "(asdf", hangul, "; jkl", args[2], ")"
	
end
return p