SMITE Esports Wiki
Advertisement
SMITE Esports Wiki
To edit the documentation or categories for this module, click here.
local p = {}

--------------------------------------
-- variable names
--------------------------------------

function p.regionname(namevars)
	return namevars.long
end

function p.regionmediumname(namevars)
	return namevars.medium
end

function p.regionshortname(namevars)
	return namevars.short
end

function p.regionadjectivename(namevars)
	return namevars.adjective
end

--------------------------------------
-- image
--------------------------------------

function p.onlyimage(namevars)
	return string.format(
		'<div class="region-icon" style="color:#%s">%s</div>',
		namevars.hex,
		namevars.short
	)
end

--------------------------------------
-- text to the right
--------------------------------------

function p.rightshort(namevars)
	return string.format(
		'<div style="display:inline-block"><div class="region-icon" style="color:#%s">%s</div>&nbsp;%s</div>',
		namevars.hex,
		namevars.short,
		namevars.short
	)
end

function p.rightmedium(namevars)
	return string.format(
		'<div style="display:inline-block"><div class="region-icon" style="color:#%s">%s</div>&nbsp;%s</div>',
		namevars.hex,
		namevars.short,
		namevars.medium
	)
end

function p.rightlong(namevars)
	return string.format(
		'<div style="display:inline-block"><div class="region-icon" style="color:#%s">%s</div>&nbsp;%s</div>',
		namevars.hex,
		namevars.short,
		namevars.long
	)
end

function p.rightadjective(namevars)
	return string.format(
		'<div style="display:inline-block"><div class="region-icon" style="color:#%s">%s</div>&nbsp;%s</div>',
		namevars.hex,
		namevars.short,
		namevars.adjective
	)
end

--------------------------------------
-- text to the left
--------------------------------------

function p.leftshort(namevars)
	return string.format(
		'<div style="display:inline-block">%s&nbsp;<div class="region-icon" style="color:#%s">%s</div></div>',
		namevars.short,
		namevars.hex,
		namevars.short
	)
end

function p.leftmedium(namevars) -- this one is default
	return string.format(
		'<div style="display:inline-block">%s&nbsp;<div class="region-icon" style="color:#%s">%s</div></div>',
		namevars.medium,
		namevars.hex,
		namevars.short
	)
end

function p.leftlong(namevars)
	return string.format(
		'<div style="display:inline-block">%s&nbsp;<div class="region-icon" style="color:#%s">%s</div></div>',
		namevars.long,
		namevars.hex,
		namevars.short
	)
end

function p.leftadjective(namevars)
	return string.format(
		'<div style="display:inline-block">%s&nbsp;<div class="region-icon" style="color:#%s">%s</div></div>',
		namevars.adjective,
		namevars.hex,
		namevars.short
	)
end

return p
Advertisement