Module:MOS intro: Difference between revisions
more gcd fixes |
m Minor rewording to meet current (personal) coding standards |
||
| Line 15: | Line 15: | ||
-- Function that creates a mos intro sentence, given a mos and any other names | -- Function that creates a mos intro sentence, given a mos and any other names | ||
function p. | function p.mos_intro(input_mos, other_names) | ||
local input_mos = input_mos or mos.new(5, 2) | local input_mos = input_mos or mos.new(5, 2) | ||
local other_names = other_names or "name1; name2; name3" | local other_names = other_names or "name1; name2; name3" | ||
| Line 158: | Line 158: | ||
-- Function for use with a template | -- Function for use with a template | ||
function p. | function p.mos_intro_frame(frame) | ||
-- Get and parse the the mos's scale signature, in the form xL ys or xL ys <p/q> | -- Get and parse the the mos's scale signature, in the form xL ys or xL ys <p/q> | ||
local input_mos = mos.parse(frame.args['Scale Signature']) or mos.new(5, 2, 2) | local input_mos = mos.parse(frame.args['Scale Signature']) or mos.new(5, 2, 2) | ||
local other_names = frame.args['Other Names'] or "" | local other_names = frame.args['Other Names'] or "" | ||
return p. | return p.mos_intro(input_mos, other_names) | ||
end | end | ||
return p | return p | ||