Module:Korean
Appearance
![]() | This module is rated as beta, and is ready for widespread use. It is still new and should be used with some caution to ensure the results are as expected. |
![]() | This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
![]() | This module depends on the following other modules: |
This module provides the logic for {{Korean/auto}}. For an overview of the parameters and logic, see that template's documentation.
Usage
This module can be called by other Lua modules (use p._ko()
) and can be invoked
{{#invoke:Korean|ko|args_here}}
.
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