Module:MOS scalesig: Difference between revisions

Ganaram inukshuk (talk | contribs)
Well-commented code should speak for itself!
Ganaram inukshuk (talk | contribs)
comment review/edits
Line 4: Line 4:
local p = {}
local p = {}


-- "Main" function; calls appropriate mos-string functions
function p._mos_scalesig(input_mos, is_link, is_long)
function p._mos_scalesig(input_mos, is_link, is_long)
local is_link = yesno(is_link, false) -- Is the scalesig a link?
local is_link = yesno(is_link, false) -- Should the the scalesig be a link?
local is_long = yesno(is_long, false) -- Is the scalesig in the long form "xL ys (p/q-equivalent)"?
local is_long = yesno(is_long, false) -- Should the scalesig be in the long form "xL ys (p/q-equivalent)"?
return (is_link == true
return (is_link == true