Halo Esports Wiki

We are currently performing extensive maintenance to this wiki and as a result there will likely be errors. Please be patient while we work to fix all problems.

READ MORE

Halo Esports Wiki
Advertisement
Halo Esports Wiki

To edit the documentation or categories for this module, click here.


local util_vars = require("Module:VarsUtil")

local p = require('Module:EntityAbstract'):finalExtends()
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
Advertisement