Module:Country

From Leaguepedia | League of Legends 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'):finalExtends()
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