Module:Sports series: Difference between revisions

Content deleted Content added
add support for FBR style coloring
add legend
Line 154:
end
return false
end
 
local function createFBRLegend()
return mw.html.create('div')
:css('font-size', '90%')
:css('margin-bottom', '0.5em')
:wikitext("Legend: Blue = home team win; Yellow = draw; Red = away team win.")
end
 
Line 250 ⟶ 257:
if args.id then
table:attr('id', args.id) -- Optional id parameter to allow anchor to table
end
 
-- Add FBR legend if isFBRStyle is true
if isFBRStyle then
root:node(createFBRLegend())
end