Content deleted Content added
More comment |
Initial version for column headers |
||
Line 22:
-- Write column headers
local team_width = Args('teamwidth') or '190'
table.insert(t,'{|class="wikitable" style="text-align:center;"') -- Open table
table.insert(t,'! scope="col" width=28|<abbr title="<nowiki>Position</nowiki>">Pos</abbr>') -- Position col
table.insert(t,'! scope="col" width='..team_width..'|Team') -- Team col
table.insert(t,'! scope="col" width=28|<abbr title="<nowiki>Played</nowiki>">Pld</abbr>') -- Games played col
table.insert(t,'! scope="col" width=28|<abbr title="<nowiki>Won</nowiki>">W</abbr>') -- Win col
table.insert(t,'! scope="col" width=28|<abbr title="<nowiki>Drawn</nowiki>">D</abbr>') -- Draw col
table.insert(t,'! scope="col" width=28|<abbr title="<nowiki>Lost</nowiki>">L</abbr>') -- Loss col
table.insert(t,'! scope="col" width=28|<abbr title="<nowiki>Goals for</nowiki>">GF</abbr>') -- Goal for col
table.insert(t,'! scope="col" width=28|<abbr title="<nowiki>Goals against</nowiki>">GA</abbr>') -- Goal against col
table.insert(t,'! scope="col" width=28|<abbr title="<nowiki>Goal difference</nowiki>">GD</abbr>') -- Goal difference col
table.insert(t,'! scope="col" width=28|<abbr title="<nowiki>Points</nowiki>">Pts</abbr>') -- Points col
Line 41 ⟶ 52:
table.insert(t, 'Test line just before return statement')
-- END TEST CODE
return table.concat(
end
|