Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

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

local infobox_module = require("Module:API_info/util/infobox")
local wowprog_data = mw.loadData("Module:API_info/wowprog/widgets")
local m = {}

function m.main(f)
	local widget, method = f.args[1]:match("API (%w+) (%w+)")
	local info = {}
	local group1 = {}
	table.insert(group1, {
		icon = "GitHub_Octocat.png",
		text = "FrameXML",
		url = string.format("https://github.com/Gethe/wow-ui-source/search?q=%s", method),
	})
	local wowprog_widget = wowprog_data[widget..":"..method]
	if wowprog_widget then
		if type(wowprog_widget) == "string" then
			widget = wowprog_widget
		end
		table.insert(group1, {
			icon = "Wowprogramming.png",
			text = "Wowprogramming",
			url = string.format("https://wowprogramming.com/docs/widgets/%s/%s.html", widget, method),
		})
	end
	local items = {
		"! Links",
		group1,
	}
	return infobox_module:main(info, items)
end

return m
Advertisement