10,735
edits
TheNightAvl (talk | contribs) m (Undo revision 4349 by TheNightAvl (talk)) Tag: Undo |
TheNightAvl (talk | contribs) m (Added variable delimiter) |
||
Line 7: | Line 7: | ||
[2] = {list = true, allow_empty = true}, | [2] = {list = true, allow_empty = true}, | ||
["caption"] = {}, | ["caption"] = {}, | ||
["delimiter"] = {}, | |||
} | } | ||
Line 13: | Line 14: | ||
local i = 1 | local i = 1 | ||
local n_i = 1 | local n_i = 1 | ||
local delimiter = args["delimiter"] or "·" | |||
while list[i] do | while list[i] do | ||
if list[i] == "" then | if list[i] == "" then | ||
Line 18: | Line 20: | ||
n_i = 1 | n_i = 1 | ||
else | else | ||
if n_i > 1 then syllables = syllables .. | if n_i > 1 then syllables = syllables .. delimiter end | ||
syllables = syllables .. list[i] | syllables = syllables .. list[i] | ||
n_i = n_i + 1 | n_i = n_i + 1 |