2,788
edits
(Created page with "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 end if #syllables > 0 then return "Syllabification: <big>" .. table.concat(syllables, "·") .. "</big>" end error("no syllables given to {{syllables}}") end return export") |
No edit summary |
||
Line 8: | Line 8: | ||
while args[i] do | while args[i] do | ||
if args[i] ~= "" then table.insert(syllables, args[i]) end | if args[i] ~= "" then table.insert(syllables, args[i]) end | ||
i = i + 1 | |||
end | end | ||
if #syllables > 0 then | if #syllables > 0 then |