Module:Sports table: Difference between revisions

Content deleted Content added
we should be able to use |section= instead of |transcludesection= if we differentiate between parent and child, but checking to see if there are any pages which are already using flipped parameters
Tag: Reverted
tracking empty, removing tracking and allowing |section= to be used in both parent and template
Tag: Reverted
Line 19:
local team_list = {}
local jj, jjj
 
local extratracking = ''
if ( (frame:getParent().args['section'] or '') ~= '' ) then extratracking = extratracking .. '[[Category:Pages using sports table with unknown parameters|section]]' end
if ( (frame.args['transcludesection'] or '') ~= '' ) then extratracking = extratracking .. '[[Category:Pages using sports table with unknown parameters|transcludesection]]' end
 
-- Exit early if we are using section transclusion for a different section
iflocal tsection = frame:getParent(Args).args['transcludesection'] andor Argsframe:getParent().args['section']) or ''
and local Args['transcludesection']bsection ~= Argsframe.args['section'] thenor ''
if( tsection ~= '' and bsection ~= '' ) then
return '' .. extratracking
if( tsection ~= bsection ) then
return ''
end
end
 
Line 661 ⟶ 660:
end
 
return templatestyles .. '\n' .. table.concat(t) .. extratracking
end