Wowpedia

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

READ MORE

Wowpedia
No edit summary
No edit summary
Line 14: Line 14:
   
 
function m.main(f)
 
function m.main(f)
  +
local info = {
local name = f.args[1]:gsub("API ", ""):gsub(" ", "_")
+
name = f.args[1]:gsub("API ", ""):gsub(" ", "_")
return infobox_module:main(items)
 
  +
}
 
return infobox_module:main(items, info)
 
end
 
end
   

Revision as of 03:38, 25 May 2022

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

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

local items = {
	"! Links",
	{
		{
			icon = "GitHub_Octocat.png", iconsize = 24,
			text = "FrameXML",
			url = "https://github.com/Gethe/wow-ui-source/search?q=%s",
		},
	},
}

function m.main(f)
	local info = {
		name = f.args[1]:gsub("API ", ""):gsub(" ", "_")
	}
	return infobox_module:main(items, info)
end

return m