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', 'SortKeyJoin', 'PlayerDisplay' }, sort_ascending = { true, true, true }, parent_class = 'team-members-current', },	former = { columns = { 'Residency', 'Country', 'PlayerDisplay', 'IRLNameDisplay', 'RoleDisplay', 'DateDisplayJoin', 'DateDisplayLeave', 'NextTeamDisplay', }, where = 'Tenures.IsCurrent="0"', sort = 'leave', sort_fields = { 'SortKeyLeave', 'SortKeyJoin', 'PlayerDisplay' }, sort_ascending = { false, false, true }, },	all = { columns = {}, },	classes = { PlayerDisplay = 'team-members-player', 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