Module:sish-pronunc: Difference between revisions
No edit summary |
No edit summary |
||
| Line 111: | Line 111: | ||
} | } | ||
function export. | function export.show(frame) | ||
local parent_args = frame:getParent().args | |||
local params = { | |||
[1] = { default = mw.title.getCurrentTitle().nsText == 'Template' and "Niṡkullit" or mw.title.getCurrentTitle().text }, | |||
} | |||
local args = require("Module:parameters").process(parent_args, params) | |||
local term = mw.ustring.lower(args[1]) | |||
local pronunciations = { | |||
{pron = "[" .. export.crux(term) .. "]"} | |||
} | |||
return "* " .. m_IPA.format_IPA_full{lang = lang, items = pronunciations} | |||
end | end | ||
return export | return export | ||