Module:IPA/templates: Difference between revisions

no edit summary
(Created page with "local export = {} local m_IPA = require("Module:IPA") local parameter_utilities_module = "Module:parameter utilities" -- Used for Template:IPA. function export.IPA(frame) local parent_args = frame:getParent().args local include_langname = frame.args.include_langname local compat = parent_args.lang local offset = compat and 0 or 1 local lang_arg = compat and "lang" or 1 local params = { [lang_arg] = {required = true, type = "language", default = "en"}, [...")
 
No edit summary
(14 intermediate revisions by the same user not shown)
Line 22: Line 22:
["sort"] = {},
["sort"] = {},
}
}
 
local m_param_utils = require(parameter_utilities_module)
local m_param_utils = require(parameter_utilities_module)


Line 40: Line 40:


local lang = args[lang_arg]
local lang = args[lang_arg]
 
args.q.default = lang:getCanonicalName()
local data = {
local data = {
lang = lang,
lang = lang,