Modul:Goalscorers: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Catalyszczowski (bicara | kontrib)
k Catalyszczowski memindahkan halaman Modul:Goalscorers/data/Kualifikasi Piala Dunia FIFA 2022 (AFC) ke Modul:Goalscorers tanpa membuat pengalihan: Kesalahan penamaan
Tidak ada ringkasan suntingan
Baris 85:
function p.addIntroductorySentence() -- add introductory text
local totalGoalString = "A total of Sebanyak" .. g.totalGoals .. " goals weretelah scoreddicetak."
--There were [has been|have been|was|were] #GOALS goal(s) scored in #MATCHES match(s), for an average of #GOALS/#MATCHES per match.
Baris 97:
if g.totalGoals == 1 then
pluralGoals = ""
if dateUpdated == 'complete' then text1 = "was " else text1 = "has been" end
else
if dateUpdated == 'complete' then text1 = "were " else text1 = "have been" end
end
local text = string.format("ThereSebanyak %s %s goal%s scoredtelah dicetak", text1, mw.getLanguage('en'):formatNum(g.totalGoals), pluralGoals)
local pluralMatches = "es."
if matches==1 then pluralMatches = "" end
if matches then
Baris 111:
average = tostring (average)
 
local pluralAverage = "s."
if tonumber(string.format("%.2f",average))==1 then pluralAverage = "" end
text = text .. string.format(" inpada %d match%s, fordengan an average ofrata-rata %."..precision.."g goal%s per matchpertandingan", matches, pluralMatches, average, pluralAverage)
end