Module:Infobox MOS: Difference between revisions

Ganaram inukshuk (talk | contribs)
bugfix infobox (this is apparently the only infobox that uses the new infobox function)
Ganaram inukshuk (talk | contribs)
bugfix
Line 354: Line 354:


-- New "main" function
-- New "main" function
function p._infobox_mos(input_mos, other_names_unparsed)
function p._infobox_mos(input_mos)
local input_mos = input_mos or mos.new(4,5,3)
local input_mos = input_mos or mos.new(4,5,3)
local other_names_unparsed = other_names_unparsed or ""
local other_names_unparsed = ""
local other_names_parsed = tip.parse_entries(other_names_unparsed) or tip.parse_entries(other_names_unparsed, ",")
local other_names_parsed = tip.parse_entries(other_names_unparsed) or tip.parse_entries(other_names_unparsed, ",")
Line 422: Line 422:
local debug_mode = yesno(args["debug"], false)
local debug_mode = yesno(args["debug"], false)
local result = p._infobox_mos(input_mos, other_names)
local result = p._infobox_mos(input_mos)
if not debug_mode then
if not debug_mode then
result = result .. p.categorize(input_mos)
result = result .. p.categorize(input_mos)