[checked revision] | [checked revision] |
No edit summary |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
p.objectType = 'Game' |
p.objectType = 'Game' |
||
p.imageDisplayLength = 'long' |
p.imageDisplayLength = 'long' |
||
− | p.imagelength = ' |
+ | p.imagelength = 'long' -- this is for the sprite |
p.defaultlength = 'long' -- this is what we store in cargo !! |
p.defaultlength = 'long' -- this is what we store in cargo !! |
||
-- p.cssClass = 'league-object' |
-- p.cssClass = 'league-object' |
||
Line 13: | Line 13: | ||
function p:init(str) |
function p:init(str) |
||
− | self:super('init', str |
+ | self:super('init', str) |
if self.unknown then |
if self.unknown then |
||
self.vars = { |
self.vars = { |
Latest revision as of 20:53, 12 September 2021
Documentation for this module may be created at Module:Game/doc
local util_vars = require("Module:VarsUtil")
local p = require('Module:EntityAbstract'):extends()
local h = {}
p.objectType = 'Game'
p.imageDisplayLength = 'long'
p.imagelength = 'long' -- this is for the sprite
p.defaultlength = 'long' -- this is what we store in cargo !!
-- p.cssClass = 'league-object'
p.imagesizes = {}
p.nosize = true
function p:init(str)
self:super('init', str)
if self.unknown then
self.vars = {
long = str,
short = str,
image = 'Unknown Infobox Image - Tournament.png'
}
end
end
return p