Module:siwa-pron: Difference between revisions

No edit summary
No edit summary
Line 75: Line 75:
}
}


function export.syllables(frame)
function export.syllables(word)
local morpheme = {}
local morpheme = {}
--local syll = {}
--local syll = {}
--table.insert(morpheme, syll)
--table.insert(morpheme, syll)
local parent_args = frame:getParent().args
local params = {
[1] = { default = mw.title.getCurrentTitle().text },
}


local args = require("Module:parameters").process(parent_args, params)
local word = args[1]
if gmatch(word,"·") then
if gmatch(word,"·") then
morpheme = split(word,"·")
morpheme = split(word,"·")