Module:MOS mode degrees: Difference between revisions

Ganaram inukshuk (talk | contribs)
mosprefix -> mosabbrev
Ganaram inukshuk (talk | contribs)
Undo revision 148419 by Ganaram inukshuk (talk) (forgot that mosprefix was for the header, not the scale degrees in the udp)
Tag: Undo
Line 174: Line 174:
-- Default param for mos prefix
-- Default param for mos prefix
-- If "NONE" is given, no abbrev will be used
-- If "NONE" is given, no prefix will be used
-- If left blank, try to find the appropriate mos abbrev, or else defualt to "mos"
-- If left blank, try to find the appropriate mos prefix, or else defualt to "mos"
-- If not left blank, use the abbrev passed in instead
-- If not left blank, use the prefix passed in instead
local mos_prefix = "mos"
local mos_prefix = "mos"
if frame.args["MOS Abbrev"] == "NONE" then
if frame.args["MOS Prefix"] == "NONE" then
mos_prefix = ""
mos_prefix = ""
elseif string.len(frame.args["MOS Abbrev"]) == 0 then
elseif string.len(frame.args["MOS Prefix"]) == 0 then
mos_prefix_lookup = tamnams.lookup_prefix(input_mos) or ""
mos_prefix_lookup = tamnams.lookup_prefix(input_mos) or ""
if string.len(mos_prefix_lookup) ~= 0 then
if string.len(mos_prefix_lookup) ~= 0 then