Smite Wiki
Advertisement

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

-- <nowiki>
local util_args = require('Module:ArgsUtil')
local util_vars = require("Module:VarsUtil")
--local Tooltip = require('Module:Item tooltip')
local h = {}
local p = {}
function p.main(frame)
	local args = util_args.merge()
	local output = mw.html.create('div')
		:attr('id', util_vars.setGlobalIndex('divId'))
		:addClass('tooltip-hover')
		:addClass('item-overview-entry')
		:wikitext(
			('[[%s]]'):format(
				args._pageName
			)
		)
	local goldNumber = args.Totalcost
	if goldNumber ~= nil then
		output:wikitext(' (')
		output:tag('span')
			:css('color', 'gold')
			:wikitext(goldNumber)
		output:wikitext(')')
	end
	return output, '\n'--, Tooltip.makeOutput(args)
end
return p
-- </nowiki>
Advertisement