Module:Teamexceptionstyles

local p = {} -- teamexceptionstyles

-- size is forced to be defined for this one

function p.styleNames(style) local lookup = { leftshortlinked = { style = "left", size = 38 }, leftshort = { style = "left", size = 38 }, leftmediumlinked = { style = "left", size = 45 }, leftmedium = { style = "left", size = 45 }, leftlonglinked = { style = "left", size = 60 }, leftlong = { style = "left", size = 60 }, rightshortlinked = { style = "right", size = 38 }, rightshort = { style = "right", size = 38 }, rightmediumlinked = { style = "right", size = 45 }, rightmedium = { style = "right", size = 45 }, rightlonglinked = { style = "right", size = 60 }, rightlong = { style = "right", size = 60 }, onlyimagelinked = { style = "onlyimage", size = 60 }, onlyimage = { style = "onlyimage", size = 60 }, teamlinkname = { style = "teamname" }, teammediumname = { style = "teamname" }, mediumplainlinked = { style = "teamname" }, plainlinked = { style = "teamname" }, teamname= { style = "teamname" }, }	return lookup[style] end

-- -- variable names --

function p.teamname(namevars, settings) return settings.text or namevars.text end

-- -- image --

function p.onlyimage(namevars, settings) local size = settings.size return ' ' end

-- -- text to the right --

function p.right(namevars, settings) local text = settings.text or namevars.text return ' ' .. text end

-- -- text to the left --

function p.left(namevars, settings) -- this one is default return namevars.text .. ' ' end

return p