FANDOM


-- <nowiki>
local p = {}
local pt = require('Module:Paramtest')
local onmain = require('Module:Mainonly').on_main
 
function p.main(frame)
	local a = frame:getParent().args
 
	local lang = mw.getContentLanguage()
	local val = 'Unknown <small>[{{fullurl:Template:Dungeoneering droptable|action=edit}} edit]</small>'
	if pt.has_content(a.Smugvalue) then
		if tonumber(a.Smugvalue) then
			val = lang:formatNum(tonumber(a.Smugvalue))
		else
			val = a.Smugvalue
		end
end
 
	local name = a.Name:gsub('|.*',''):gsub('{{!}}.*','')
 
 
	local ret = {}
	table.insert(ret, string.format('| [[File:%s|link=%s]]', pt.default_to(a.Image, a.Name .. '.png'), a.Name))
	table.insert(ret, string.format('| [[%s]]', a.Name))
	table.insert(ret, string.format('| %s', a.Tier))
	table.insert(ret, string.format('| %s', val))
	table.insert(ret, string.format('| %s', a.Members))
 
	local smw = ''
	if onmain() and a.nosmw ~= 'yes' then
		smw = string.format('[[Drops item::%s| ]][[Drop JSON::&#123; "name": "%s", "quantity": &#91;%s,%s&#93;, "rarity": "%s" &#125;| ]]', name, name, 1, 10, 'Varies')
	end
 
	table.insert(ret, string.format('|- %s\n', smw))
 
	return table.concat(ret, '\n')
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.