Module:TeamMembers/Settings

local util_vars = require("Module:VarsUtil")

local ret = { current = { columns = { 'Residency', 'Country', 'PlayerDisplay', 'IRLNameDisplay', 'RoleDisplay', 'ContractEnd', 'DateDisplayJoinWithPopup', }, where = 'Tenures.IsCurrent="1"', sort = 'role', sort_fields = { 'SortKeyRole' }, sort_ascending = true, },	former = { columns = { 'Residency', 'Country', 'PlayerDisplay', 'IRLNameDisplay', 'RoleDisplay', 'DateDisplayJoin', 'DateDisplayLeave', 'NextTeamDisplay', }, where = 'Tenures.IsCurrent="0"', sort = 'leave', sort_fields = { 'SortKeyLeave', 'SortKeyRole' }, sort_ascending = { false, true }, },	all = { columns = {}, },	classes = { DateDisplayJoin = 'team-members-date-joined', DateDisplayLeave = 'team-members-date-left', ContractEnd = 'team-members-date-contract', RoleDisplay = 'team-members-role', },	attrs = { RoleDisplay = { ['data-sort-type'] = 'number', }, DateDisplayJoin = { ['data-sort-type'] = 'number', }, DateDisplayLeave = { ['data-sort-type'] = 'number', }, }, }

for _, v in ipairs({'current', 'former', 'all'}) do	ret[v].columns.classes = ret.classes ret[v].columns.attrs = ret.attrs end

return ret