Module:Infobox/TeamHist

local Role = require('Module:Role').role local Team = require('Module:Team').team

local p = {}

function p.teamHist(storeto, args) local i = 1 if args['teamhist' .. 1] then local tbl = mw.html.create('table'):addClass('teamhist') while args['teamhist' .. i] do			tbl:tag('tr') :tag('td') :addClass('teamdate') :wikitext(args['teamdate' .. i] or '') :done :tag('td') :wikitext(Role{					args['teamrole' .. i] or '',					'onlyimage',					sub = args['issub' .. i]				}) :wikitext('&#8198;') :wikitext(Team{args['teamhist' .. i], 'rightmediumlinked'}) i = i + 1 end storeto.teamhist = tostring(tbl) i = i - 1 end return { team = Team{args['teamhist' .. i],'teamlinkname'}, date = args['teamdate' .. i], role = args['teamrole' .. i]	} end

return p