Module:Sports table: Difference between revisions

Content deleted Content added
implement templatestyles just to remove the reflist dependency here -- these are not fundamentally reflists. templatestyles can be fixed elsewhere at a later date
move templatestyles up
Line 25:
return ''
end
 
local templatestyles = frame:extensionTag{
name = 'templatestyles', args = { src = 'Module:Sports table/styles.css' }
}
-- Edit links if requested
Line 592 ⟶ 596:
end
local templatestyles = frame:extensionTag{
name = 'templatestyles', args = { src = 'Module:Sports table/styles.css' }
}
-- Add notes (if applicable)
if notes_exist then
table.insert(t_footer,'<br>Notes:')
-- As reflist size text
t_footer = templatestyles .. '<div class="sports-table-notes">'..table.concat(t_footer)..'</div>'
t_footer = t_footer..frame:expandTemplate{ title = 'notelist', args = { group='lower-alpha'} }
else
-- As reflist size text
t_footer = templatestyles .. '<div class="sports-table-notes">'..table.concat(t_footer)..'</div>'
end
Line 651 ⟶ 652:
if Args['float'] then
return frame:expandTemplate{ title = 'stack begin', args = {clear = 'true', margin = '1', float = Args['float']} }
.. templatestyles .. '\n' .. table.concat(t) .. frame:expandTemplate{ title = 'stack end'}
end
 
return templatestyles .. table.concat(t)
end