Module:Item Products

From Guinea Isles Wiki
Revision as of 16:41, 20 September 2025 by Squeaky (talk | contribs) (Created page with "local p = {} function _main(args) local item_id = nil if args["id"] ~= nil then item_id = args["id"] else item_id = mw.title.getCurrentTitle.text end return item_id end function main(frame) local args = frame:getParent().args return _main(args) end return p")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

local p = {}

function _main(args)
	local item_id = nil
	if args["id"] ~= nil then
		item_id = args["id"]
	else
		item_id = mw.title.getCurrentTitle.text
	end
	
	return item_id
end

function main(frame)
	local args = frame:getParent().args
	return _main(args)
end

return p