Module:Korean
Appearance
| This module is rated as beta. It is considered ready for widespread use, but as it is still relatively new, it should be applied with some caution to ensure results are as expected. |
| This module is currently under extended confirmed protection. Extended confirmed protection prevents edits from all unregistered editors and registered users with fewer than 30 days tenure and 500 edits. The policy on community use specifies that extended confirmed protection can be applied to combat disruption, if semi-protection has proven to be ineffective. Extended confirmed protection may also be applied to enforce arbitration sanctions. Please discuss any changes on the talk page; you may submit an edit request to ask for uncontroversial changes supported by consensus. |
| 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]
-- apply name mode
if args["namemode"] == "yes" then
hangul = "%" .. hangul
end
return "(asdf", hangul, "; jkl", args[2], ")"
end
return p