We're currently performing an overhaul of our entire tournament results system so results will be missing from team and player pages for a while, and there may be some errors on tournament pages. Please bear with us as we complete this update.

Module:FileEntityAbstract

From Call of Duty Esports Wiki
Jump to: navigation, search

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

local Entity = require('Module:EntityAbstract'):abstractExtends()

function Entity:image(opts)
	return self:file(opts)
end

function Entity:imagelink(opts)
	return self:filelink(opts)
end

function Entity:flairlink(opts)
	if self.is_nil then return end
	return ('%s%s'):format(self:imagelink(opts), self:link(opts))
end

return Entity