Module:Update: Skirtumas tarp puslapio versijų

Pereiti į navigaciją Jump to search
131 pridėtas baitas ,  11 balandžio
S
nėra keitimo aprašymo
SNėra keitimo santraukos
SNėra keitimo santraukos
61 eilutė: 61 eilutė:
-- used by year func
-- used by year func
local looporder = {
local looporder = {
{ 'December', 31 },
{ 'November', 30 },
{ 'November', 30 },
{ 'October', 31 },
{ 'October', 31 },
72 eilutė: 71 eilutė:
{ 'March', 31 },
{ 'March', 31 },
{ 'February', 29 },
{ 'February', 29 },
{ 'January', 31 }
{ 'January', 31 },
{ 'December', 31 }
}
}


209 eilutė: 209 eilutė:
if hc(url) then
if hc(url) then
if url == 'no' then
if url == 'no' then
link = 'oficialus pranešimas'
link = 'oficialus'
else
else
link = '[' .. url .. ' oficialus pranešimas]'
link = '[' .. url .. ' oficialus]'
end
end
else
else
229 eilutė: 229 eilutė:
local date_link, day, month, year
local date_link, 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 = '[[' .. 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
246 eilutė: 246 eilutė:
if url == 'no' then
if url == 'no' then
postDateInfo = 'Buvo pridėtas ' .. date_link .. ', bet vėliau buvo panaikintas.'
postDateInfo = 'Šis straipsnis buvo sukurtas ' .. date_link .. ', bet vėliau buvo panaikintas.'
else
else
postDateInfo = 'Buvo pridėtas ' .. date_link .. '.'
postDateInfo = 'Šis straipsnis buvo sukurtas ' .. date_link .. '.'
end
end
263 eilutė: 263 eilutė:
--OSRS updates
--OSRS updates
else
else
message = ' ir priklauso MCSlime.LT projektui -'
message = ' ir priklauso MCSlime.LT projektui.'
website = '[https://mcslime.lt/ <i>MCSlime</i>]'
website = ''
end
end
div:wikitext('Šis ' .. link .. message)
div:wikitext('Šis straipsnis ' .. link .. message)
:tag('span')
:tag('span')
:addClass('plainlinks')
:addClass('plainlinks')

Naršymo meniu