Module:Infobox MOS: Difference between revisions

Ganaram inukshuk (talk | contribs)
Adopt getArgs, rename some params: Tuning -> Scale Signature (preferred); debug -> nocat (to fit current use of "debug" seen with other templates)
Ganaram inukshuk (talk | contribs)
mNo edit summary
Line 454: Line 454:
local args = getArgs(frame)
local args = getArgs(frame)
local tuning = frame.args["Scale Signature"] or frame.args["Tuning"]
local tuning = args["Scale Signature"] or args["Tuning"]
local other_names = frame.args["othernames"] or nil
local other_names = args["othernames"] or nil
local debug_mode = yesno(tonumber(frame.args["nocat"]), false)
local debug_mode = yesno(tonumber(args["nocat"]), false)
local result = p._infobox_mos(tuning, other_names)
local result = p._infobox_mos(tuning, other_names)