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

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 = 'Country'
p.imagelength = 'name'
p.defaultlength = 'name'
p.cssClass = 'country-object'
p.imagesizes = {}
p.nosize = true

function p:name(opts)
	if self.is_nil then return nil end
	if not opts then opts = {} end
	if not opts.the then return self:super('name', opts) end
	if not self.vars.the then return self:super('name', opts) end
	return ('the ') .. self:super('name', opts)
end

return p