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:26, 11 April 2025 (e). 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]
	
	-- apply name mode
	if args["namemode"] == "yes" then
		hangul = "%" .. hangul
	end

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