Module:mg-pron: Difference between revisions

No edit summary
No edit summary
Line 32: Line 32:


local function syllabify(term)
local function syllabify(term)
term = term:gsub("(" .. consonants .. "*)(" .. vowels .. "*)", "%1%2.")
term = term:gsub("(" .. consonants .. ")(" .. consonants .. ")(" .. vowels .. "*)", "%1.%2%3")
return term
return term
end
end
Line 83: Line 86:
function export.show(frame)
function export.show(frame)
local params = {
local params = {
[1] = { default = mw.title.getCurrentTitle().text },
[1] = { default = mw.title.getCurrentTitle().text }, -- PAGENAME
}
}
local args = require("Module:parameters").process(frame:getParent().args, params)
local args = require("Module:parameters").process(frame:getParent().args, params)