Module:icons: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:


function p.main(frame)
function p.main(frame)
local title = mw.title.new("OnAddIVNetworkEvent")
local args = p.getArgs(frame)
local title = mw.title.new(args.item)
local text = title:getContent()
local text = title:getContent()
local args = p.getArgs(frame)
return text
return args.games
end
end



Revision as of 13:37, 9 June 2026

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

local p = {}

function p.main(frame)
	local args = p.getArgs(frame)
	local title = mw.title.new(args.item)
	local text = title:getContent()
	return text
end

function p.getArgs(frame)
	if p.argsCache then
		return p.argsCache
	else
		local args = frame:getParent().args
		p.argsCache = args
		return args
	end
end

return p