Module:Infobox MOS: Difference between revisions

Ganaram inukshuk (talk | contribs)
No edit summary
Ganaram inukshuk (talk | contribs)
No edit summary
Line 73: Line 73:
-- Main function
-- Main function
-- To be called by wrapper
-- To be called by wrapper
function p._infobox_MOS(tuning, debug_mode, other_names)
function p._infobox_MOS(tuning, other_names)
local tuning = tuning or "5L 2s"
local tuning = tuning or "5L 2s"
local debug_mode = debug_mode == true
local other_names = other_names or nil
local other_names = other_names or nil
local mos = MOS.parse(tuning)
local mos = MOS.parse(tuning)
Line 279: Line 278:
xenpaper_links
xenpaper_links
)
)
if not debug_mode then
result = result .. p.categorize(tuning)
end
return result
return result
Line 293: Line 289:
local debug_mode = frame.args['debug'] ~= nil
local debug_mode = frame.args['debug'] ~= nil
return p._infobox_MOS(tuning, debug_mode, other_names)
local result = p._infobox_MOS(tuning, other_names)
if not debug_mode then
result = result .. p.categorize(tuning)
end
return result


end
end