Module:FIBA World Rankings
Ìrísí
Documentation for this module may be created at Module:FIBA World Rankings/doc
local p = {}
local data = require('Module:FIBA World Rankings/data')
function p.main(frame)
local args = frame:getParent().args
local country = args[1] or args.country or ''
local gender = args.gender or 'men'
-- Default to men if gender not specified
if gender ~= 'women' and gender ~= 'w' then
gender = 'men'
else
gender = 'women'
end
-- Get the ranking
local ranking = data[gender][country]
if ranking then
return ranking
else
return "N/A"
end
end
return p