Modul:Goalscorers: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
kTidak ada ringkasan suntingan |
hapus penggunaan parameter plural di teks, rata-rata gol formatNum:id |
||
Baris 93:
local Date = require('Module:Date')._Date
local pluralGoals = "
local text1 = ""
if g.totalGoals == 1 then
Baris 101:
if dateUpdated == 'complete' then text1 = " " else text1 = " " end
end
local text = string.format("Sebanyak %s %s gol
local pluralMatches = "
if matches==1 then pluralMatches = "" end
if matches then
local average = g.totalGoals/tonumber(matches)
local precision = 3 --
if average < 1 then precision = 2 end --
average = tostring (average)
local pluralAverage = ""
if tonumber(string.format("%.2f",average))==1 then pluralAverage = "" end
text = text .. string.format(" pada %d pertandingan
end
|