Module:API info/sandbox

From Warcraft Watch Secrets
Revision as of 06:18, 21 July 2025 by imported>Ketho
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

local infobox_module = require("Module:API_info/util/infobox")
-- local properties_module = require("Module:API_info/properties")
local m = {}

function m.main(f)
	local pageName = f.args[1]
	return pageName
end

function m.infobox()
	local example = {
		"|+ title text",
		"! header 1",
		"| banana",
		"! header 2",
		{ -- 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"},
		},
	}
	local box = infobox_module:main(example)
end

return m