Call of Duty Esports Wiki
Register
Advertisement

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

local util_vars = require("Module:VarsUtil")

local p = require('Module:EntityAbstract'):extends()
local h = {}

p.objectType = 'Region'
p.imagelength = 'link'
p.defaultlength = 'medium'

function p:image(opts)
	if self.is_nil then return nil end
	if not opts then opts = {} end
	local div = mw.html.create('div')
		:addClass('region-icon')
		:cssText(('color:%s'):format(self:get('hex')))
		:wikitext(self:get('short'))
	return tostring(div)
end

return p
Advertisement