Halo Esports Wiki

We are currently performing extensive maintenance to this wiki and as a result there will likely be errors. Please be patient while we work to fix all problems.

READ MORE

Halo Esports Wiki
Advertisement

To edit the documentation or categories for this module, click here.


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 "[[File:" .. logo .. "logo std.png|link=|" .. size .. 'px]]'
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 "[[File:" .. logo .. "logo std.png|link=" .. link .. '|' .. size .. 'px]]'
end

--------------------------------------
-- link only
--------------------------------------

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

function p.plainlinked(namevars, settings)
	local link = namevars.link .. settings.suffix
	return '[[' .. link .. '|' .. 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 '[[File:' .. logo .. 'logo std.png|link=' .. link .. '|' .. size .. 'px]] ' .. 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 '[[File:' .. logo .. 'logo std.png|link=' .. link .. '|' .. size .. 'px]] ' .. 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 '[[File:' .. logo .. 'logo std.png|link=' .. link .. '|' .. size .. 'px]] ' .. 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 '[[File:' .. logo .. 'logo std.png|link=' .. link .. '|' .. size .. 'px]] [[' .. link .. '|' .. 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 '[[File:' .. logo .. 'logo std.png|link=' .. link .. '|' .. size .. 'px]] [[' .. link .. '|' .. 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 '[[File:' .. logo .. 'logo std.png|link=' .. link .. '|' .. size .. 'px]] [[' .. link .. '|' .. 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 .. ' [[File:' .. logo .. 'logo std.png|link=' .. link .. '|' .. size .. 'px]]'
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 .. ' [[File:' .. logo .. 'logo std.png|link=' .. link .. '|' .. size .. 'px]]'
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 .. ' [[File:' .. logo .. 'logo std.png|link=' .. link .. '|' .. size .. 'px]]'
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 '[[' .. link .. '|' .. namevars.short .. ']] [[File:' .. logo .. 'logo std.png|link=' .. link .. '|' .. size .. 'px]]'
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 '[[' .. link .. '|' .. namevars.medium .. ']] [[File:' .. logo .. 'logo std.png|link=' .. link .. '|' .. size .. 'px]]'
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 '[[' .. link .. '|' .. namevars.long .. ']] [[File:' .. logo .. 'logo std.png|link=' .. link .. '|' .. size .. 'px]]'
end

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

return p
Advertisement