Module:syllables: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
end | end | ||
if #syllables > 0 then | if #syllables > 0 then | ||
return | return 'Syllabification: <span style="font-size:110%;">' .. table.concat(syllables, "·") .. '</span>' | ||
end | end | ||
error("no syllables given to {{syllables}}") | error("no syllables given to {{syllables}}") |
Revision as of 18:38, 9 August 2023
Documentation for this module may be created at Module:syllables/documentation
local export = {}
function export.show(frame)
local args = frame:getParent().args
local language = args[1]
local syllables = {}
local i = 2
while args[i] do
if args[i] ~= "" then table.insert(syllables, args[i]) end
i = i + 1
end
if #syllables > 0 then
return 'Syllabification: <span style="font-size:110%;">' .. table.concat(syllables, "·") .. '</span>'
end
error("no syllables given to {{syllables}}")
end
return export