Leaguepedia | League of Legends Esports Wiki
Advertisement
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Edit the documentation or categories for this module.


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 ('<span class="%s">%s%s</span>'):format(
		self.cssClass or '',
		self:imagelink(opts),
		self:link(opts)
	)
end

return Entity
Advertisement