local p =
--
function p.main (frame) --
local country = frame.args[1] -- parameter from the template : countrylocal sex = frame.args[2] -- parameter from the template : male or female : m or klocal age = frame.args[3] -- parameter from the template : 21, 19, 17, or ? - national team, youth
local return_result = ""local dummy = "dummy"local error_msg = '
The format is {}'--Errorif country
"" or country
"k" or country
-- if 'country' seemed OK then continue:-- men AND adults (no age given)if sex
"" then -- was: return_result = "" .. country .. "" return return_resultend -- adult, men
-- women AND adults (no age given)if sex
"" then --was: return_result = "" .. country .. "" return return_resultend -- adult, women
-- men AND youth (age given 17, 19, 21, or ?)if age ~= "" and sex
-- women AND youth (age given 17, 19, 21, or ?)if age ~= "" and sex
end -- function p.main (frame)
return p -- export table