Module:Infobox MOS: Difference between revisions
bugfix infobox (this is apparently the only infobox that uses the new infobox function) |
bugfix |
||
| Line 354: | Line 354: | ||
-- New "main" function | -- New "main" function | ||
function p._infobox_mos(input_mos | 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 = | 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 | 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) | ||