Module:MOS mode degrees: Difference between revisions
mosprefix -> mosabbrev |
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 | -- If "NONE" is given, no prefix will be used | ||
-- If left blank, try to find the appropriate mos | -- If left blank, try to find the appropriate mos prefix, or else defualt to "mos" | ||
-- If not left blank, use the | -- If not left blank, use the prefix passed in instead | ||
local mos_prefix = "mos" | local mos_prefix = "mos" | ||
if frame.args["MOS | if frame.args["MOS Prefix"] == "NONE" then | ||
mos_prefix = "" | mos_prefix = "" | ||
elseif string.len(frame.args["MOS | 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 | ||