FANDOM


local data = mw.loadData('Module:Artifact/data')
 
local p = {}
 
function p.icon(args)
	local code = args.class or args[2]
	local ArtifactData
	if not ArtifactData then
		ArtifactData = data._DEFAULT
	end
	return string.format(
		'[[File:Ds item %s.png%s|link=]]',
		ArtifactData.image,
		args.size or '20x20px'
	)
end
 
function p.icon(frame)
	local args = {}
	for k, v in pairs(frame:getParent().args) do
		args[k] = v
	end
	return p.icon(args)
end
 
return p

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.