Module:MOS modes: Difference between revisions
No edit summary |
No edit summary |
||
| Line 51: | Line 51: | ||
local mode_names = {} | local mode_names = {} | ||
for name in string.gmatch(mode_names_unparsed, '([^;]+)') do | for name in string.gmatch(mode_names_unparsed, '([^;]+)') do | ||
table.insert(mode_names, name) -- Add to array | |||
table.insert(mode_names, name) | |||
end | end | ||
return mode_names | return mode_names | ||
| Line 59: | Line 58: | ||
-- Test function that produces the modes of a mos as a table | -- Test function that produces the modes of a mos as a table | ||
-- TODO: | -- TODO: | ||
-- - Allow for input of mode names | -- - Allow for input of multiple sets of mode names, as some mosses have more than one set of names | ||
-- - Expand this (possibly as a separate template) for mos intervals | -- - Expand this (possibly as a separate template) for mos intervals | ||
function p.modes_table(frame) | function p.modes_table(frame) | ||