Module:Infobox/split

From Nguhcraft Wiki
Revision as of 15:12, 23 October 2024 by Viklo (talk | contribs)
Jump to navigation Jump to search

Documentation for this module may be created at Module:Infobox/split/doc

local p = {}
p.generateColumns = function(frame)
	local ret = ""
	for i in frame.args do
		ret = ret .. frame:expandTemplate{ title = "User:Viklo/Infobox/split/column", args = { i } }
	end
	return ret
end
p.makeEmptyColumnEmpty = function(frame)
	if string.find(frame.args[1], "^(%s*<nowiki%s*/>%s*)*$") == nil then
		return frame.args[1]
	end
	return ""
end
return p