Modul:Sports series: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
penyederhanaan pranala jangkar; konversi otomatis "-" menjadi "–" (en dashes); hapus kode-kode duplikat
opsi sel skor warna abu-abu
Baris 235:
local noFlagIcons = false
local fillBlanks = args.fill_blanks and (args.fill_blanks == 'y' or args.fill_blanks == 'yes' or args.fill_blanks == '1' or args.fill_blanks == 'true')
local solidCell = args.solid_cell and (args.solid_cell == 'y' or args.solid_cell == 'yes' or args.solid_cell == '1' or args.solid_cell == 'true' or args.solid_cell == 'grey' or args.solid_cell == 'gray' or args.solid_cell == 'abu-abu')
local baselink = frame:getParent():getTitle()
if mw.title.getCurrentTitle().text == baselink then baselink = '' end
Baris 532 ⟶ 533:
local legIndex = i + 4 + leg + (matchType == 'NT' and -2 or (noFlagIcons and -2 or 0))
local legScore = args[legIndex]
if legScore ~= "nullnil" then
--if FormatlegScore and== rewrite"null" anchor links for leg scoresthen
legScore = format_score(legScore) if solidCell then
if baselink ~= row:tag('td'):css('background', then'#BBBBBB')
legScore = rewriteAnchorLinks(legScore, baselink)else
row:tag('td'):css('text-align', 'center'):wikitext(legScore'—')
-- Write cells for legsend
else
-- Format and rewrite anchor links for leg scores
legScore = format_score(legScore)
if baselink ~= '' then
legScore = rewriteAnchorLinks(legScore, baselink)
end
-- Write cells for legs
row:tag('td'):css('text-align', 'center'):wikitext(legScore)
end
-- Write cells for legs
row:tag('td'):css('text-align', 'center'):wikitext(legScore)
end
end