Module:Update: Skirtumas tarp puslapio versijų

Pereiti į navigaciją Jump to search
134 pridėti baitai ,  11 balandžio
S
nėra keitimo aprašymo
SNėra keitimo santraukos
SNėra keitimo santraukos
238 eilutė: 238 eilutė:
if hc(a.rev) then
if hc(a.rev) then
date_link = date_link .. ', ir paskutinį kartą atnaujintas ' .. lang:formatDate('[[Y]]-[[m]]-[[d]]', a.rev)
date_link = date_link .. ' ir paskutinį kartą atnaujintas ' .. lang:formatDate('[[Y-m-d]]', a.rev)
end
end
319 eilutė: 319 eilutė:
local day, month, year = '', '', ''
local day, month, year = '', '', ''
if hc(a.date) then
if hc(a.date) then
day = lang:formatDate('j', a.date)
    day = lang:formatDate('d', a.date)       -- Day with leading zeros
month = lang:formatDate('F', a.date)
    month = lang:formatDate('m', a.date)     -- Month with leading zeros
year = lang:formatDate('Y', a.date)
    year = lang:formatDate('Y', a.date)     -- Four-digit year
date_link = string.format('[[%s %s]] [[%s]]', day, month, year)
    date_link = string.format('[[%s-%s-%s]]', year, month, day) -- Format as yyyy-MM-dd
else
else
date_link = '(nenurodyta)'
    date_link = '(nenurodyta)' -- If no date is provided
end
end
if hc(a.rev) then
if hc(a.rev) then
date_link = date_link .. ', ir paskutinį kartą atnaujintas ' .. lang:formatDate('[[Y]]-[[m]]-[[d]]', a.rev)
date_link = date_link .. ', ir paskutinį kartą atnaujintas ' .. lang:formatDate('[[Y-m-d]]', a.rev)
end
end

Naršymo meniu