Module:Sports table: Difference between revisions

Content deleted Content added
template_name is automatic
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
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
if (Args['transcludesection'] and Args['section'])
and Args['transcludesection'] ~= Args['section'] then
return '' .. extratracking
end
 
Line 657 ⟶ 661:
end
 
return templatestyles .. '\n' .. table.concat(t) .. extratracking
end