-- This implements Template:Football squadlocal p =
local getArgs = require('Module:Arguments').getArgslocal Navbox = require('Module:Navbox')
local function buildList(args, listType) local list= for k, v in pairs(args) do if (type(k)
listType and (tonumber(n) or n
'manager' then n = (args['manager_type' .. n] or "Manager") .. ':' end if k
function p.navbox(frame) local args = getArgs(frame)
args.name = args.name or "" args.state = args.state or "autocollapse" args.teamname = args.teamname or "" args.bgcolor = args.bgcolor or "#ccf" args.textcolor = args.textcolor or "#000" args.bordercolor = args.bordercolor or ""
args.list1 = buildList(args, 'p') .. (args.list1 or args.list or ) .. buildList(args, 'manager') if args.list1
return Navbox._navboxend
return p