Module:API info/util/test

From Warcraft Wiki
Jump to navigation Jump to search

Documentation for this module may be created at Module:API info/util/test/doc

local infobox_module = require("Module:API_info/util/infobox")

local m = {}

function m.main(f)
	local example = {
		"|+ title text",
		"! header 1",
		{ -- html list
			{icon = "Inv_gizmo_01.png", url = "https://wowprogramming.com", text = "hello"},
			{icon = "Inv_gizmo_02.png", url = "https://www.google.com", iconsize = 24, text = "world"},
			{icon = "Inv_gizmo_03.png", url = "https://github.com", text = "apple"},
		},
		"! header 2",
		"| banana",
	}
	return infobox_module:main(example)
end

return m