Module:Teamstyles

local p = {} -- teamstyles

-- -- variable names --

function p.teamname(namevars, settings) return namevars.long end

function p.teammediumname(namevars, settings) return namevars.medium end

function p.teamshortname(namevars, settings) return namevars.short end

function p.teamlinkname(namevars, settings) return namevars.link end

-- -- image --

function p.onlyimage(namevars, settings) local size = settings.size or 60 local logo = settings.logo or namevars.link:gsub("+", " ") return "' end

function p.onlyimagelinked(namevars, settings) local size = settings.size or 60 local logo = settings.logo or namevars.link:gsub("+", " ") local link = namevars.link .. settings.suffix return "' end

-- -- link only --

function p.mediumplainlinked(namevars, settings) local link = namevars.link .. settings.suffix return  .. namevars.medium ..  end

function p.plainlinked(namevars, settings) local link = namevars.link .. settings.suffix return  .. namevars.long ..  end

-- -- text to the right --

function p.rightshort(namevars, settings) local size = settings.size or 38 local logo = settings.logo or namevars.link:gsub("+", " ") local link = namevars.link .. settings.suffix return ' ' .. namevars.short end

function p.rightmedium(namevars, settings) local size = settings.size or 38 local logo = settings.logo or namevars.link:gsub("+", " ") local link = namevars.link .. settings.suffix return ' ' .. namevars.medium end

function p.rightlong(namevars, settings) local size = settings.size or 60 local logo = settings.logo or namevars.link:gsub("+", " ") local link = namevars.link .. settings.suffix return ' ' .. namevars.long end

function p.rightshortlinked(namevars, settings) local size = settings.size or 38 local logo = settings.logo or namevars.link:gsub("+", " ") local link = namevars.link .. settings.suffix return ' ' .. namevars.short .. '' end

function p.rightmediumlinked(namevars, settings) local size = settings.size or 38 local logo = settings.logo or namevars.link:gsub("+", " ") local link = namevars.link .. settings.suffix return ' ' .. namevars.medium .. '' end

function p.rightlonglinked(namevars, settings) -- this one is default local size = settings.size or 60 local logo = settings.logo or namevars.link:gsub("+", " ") local link = namevars.link .. settings.suffix return ' ' .. namevars.long .. '' end

-- -- text to the left --

function p.leftshort(namevars, settings) local size = settings.size or 38 local logo = settings.logo or namevars.link:gsub("+", " ") local link = namevars.link .. settings.suffix return namevars.short .. ' ' end

function p.leftmedium(namevars, settings) local size = settings.size or 45 local logo = settings.logo or namevars.link:gsub("+", " ") local link = namevars.link .. settings.suffix return namevars.short .. ' ' end

function p.leftlong(namevars, settings) -- this one is default local size = settings.size or 60 local logo = settings.logo or namevars.link:gsub("+", " ") local link = namevars.link .. settings.suffix return namevars.short .. ' ' end

function p.leftshortlinked(namevars, settings) local size = settings.size or 38 local logo = settings.logo or namevars.link:gsub("+", " ") local link = namevars.link .. settings.suffix return '' .. namevars.short .. ' ' end

function p.leftmediumlinked(namevars, settings) local size = settings.size or 45 local logo = settings.logo or namevars.link:gsub("+", " ") local link = namevars.link .. settings.suffix return '' .. namevars.medium .. ' ' end

function p.leftlonglinked(namevars, settings) local size = settings.size or 60 local logo = settings.logo or namevars.link:gsub("+", " ") local link = namevars.link .. settings.suffix return '' .. namevars.long .. ' ' end

function p.table(namevars, settings) return namevars end

return p