Module:qlu-pron: Difference between revisions
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 238: | Line 238: | ||
end | end | ||
function export.crux(term, no_stress) | function export.crux(term, no_stress, outputs) | ||
local ret, dialects = {}, {} | local ret, dialects = {}, {} | ||
term = mw.ustring.lower(term) | term = mw.ustring.lower(term) | ||
| Line 285: | Line 285: | ||
end | end | ||
if outputs then | |||
-- testcases | -- testcases | ||
if outputs == "phonemic" then | if outputs == "phonemic" then | ||
| Line 294: | Line 294: | ||
return "/" .. phonemic .. "/ [" .. phonetic .. "]" | return "/" .. phonemic .. "/ [" .. phonetic .. "]" | ||
end | end | ||
end | end | ||
dialects["paulistan"] = paulistan | dialects["paulistan"] = paulistan | ||
| Line 352: | Line 352: | ||
local parent_args = frame:getParent().args | local parent_args = frame:getParent().args | ||
local params = { | local params = { | ||
[1] = { default = mw.title.getCurrentTitle(). | [1] = { | ||
default = mw.title.getCurrentTitle().text, | |||
template_default = "agghiu" | |||
}, | |||
["rs"] = {type = 'boolean'}, | ["rs"] = {type = 'boolean'}, | ||
} | } | ||