Module:Apiexp

From Warcraft Watch Secrets
Jump to navigation Jump to search

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

-- https://warcraft.wiki.gg/wiki/Template:Apiexp
local m = {}

local function GetExpansionIcons(args)
	local t = {}
	table.insert(t, #args.mainline > 0 and "[[File:TheWarWithin-Icon-Inline.png|34px|link=]]" or "")
	table.insert(t, #args.cata > 0 and "[[File:Cata-Logo-Small.png|link=]]" or "")
	table.insert(t, #args.vanilla > 0 and "[[File:WoW Icon update.png|link=]]" or "")
	return table.concat(t, "||")
end

function m.main(f)
	return GetExpansionIcons(f.args)
end

return m