Module:Infobox MOS: Difference between revisions

Ganaram inukshuk (talk | contribs)
mNo edit summary
Ganaram inukshuk (talk | contribs)
mNo edit summary
Line 454: Line 454:
local args = getArgs(frame)
local args = getArgs(frame)
local tuning = args["Scale Signature"]
-- "Scale Signature" is preferred; "Tuning" is supported for legacy purposes
local tuning = args["Tuning"] or args["Scale Signature"]
local other_names = args["othernames"] or nil
local other_names = args["othernames"] or nil
local debug_mode = yesno(tonumber(args["nocat"]), false)
local debug_mode = yesno(tonumber(args["nocat"]), false)
-- Scale Signature is the preferred arg to use
-- Tuning is still supported for legacy purposes
if args["Tuning"] ~= nil then
tuning = args["Tuning"]
end
local result = p._infobox_mos(tuning, other_names)
local result = p._infobox_mos(tuning, other_names)