Module:Infobox MOS: Difference between revisions

Ganaram inukshuk (talk | contribs)
No edit summary
Ganaram inukshuk (talk | contribs)
Fixed logic (hopefully) for debug mode
Line 287: Line 287:
local tuning = frame.args['Tuning']
local tuning = frame.args['Tuning']
local other_names = frame.args['Other names'] or nil
local other_names = frame.args['Other names'] or nil
local debug_mode = frame.args['debug'] ~= nil
local debug_mode = frame.args['debug']
local result = p._infobox_MOS(tuning, other_names)
local result = p._infobox_MOS(tuning, other_names)
-- Force categories
-- Force categories
result = result .. "\n\n\n" .. p.categorize(tuning)
if not debug_mode then
result = result .. p.categorize(tuning)
end
return result
return result