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:Region

From Call of Duty Esports Wiki
Jump to: navigation, search
To edit the documentation or categories for this module, click here.
local util_vars = require("Module:VarsUtil")

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

p.objectType = 'Region'
p.imagelength = 'link'
p.defaultlength = 'medium'
p.cssClass = 'region-object'

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