Module:Infobox MOS: Difference between revisions

Ganaram inukshuk (talk | contribs)
Removed multisection infobox code, as it's in the infobox template now
Ganaram inukshuk (talk | contribs)
m Renamed functions in preparation for rewrite
Line 127: Line 127:
-- Main function
-- Main function
-- To be called by wrapper
-- To be called by wrapper
function p._infobox_MOS(tuning, other_names)
function p._infobox_MOS_old(tuning, other_names)
local tuning = tuning or "5L 2s"
local tuning = tuning or "5L 2s"
local other_names = other_names or nil
local other_names = other_names or nil
Line 343: Line 343:
local debug_mode = tonumber(frame.args['debug']) == 1
local debug_mode = tonumber(frame.args['debug']) == 1
local result = p._infobox_MOS(tuning, other_names)
local result = p._infobox_MOS_old(tuning, other_names)
if not debug_mode then
if not debug_mode then
result = result .. p.categorize(tuning)
result = result .. p.categorize(tuning)