Modulo:Bozza: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
+
controlla che la data sia valida
Riga 31:
local text = getPageContent()
local declined = false
local lang = mw.language.getContentLanguage()
 
for str in text:gmatch('%{%{ *[Rr]ichiesta *revisione *bozza *(%|.-%})%}') do
if str:find('%| *ts1? *=? *respinta *[%d%d%d%d%d%d%d%d%d%d%d%d%d|%d}]') then
declined = true
if not str:find('%| *1? *=? *respinta *[%|%}]') then
else
local ts = str:match('| *ts *= *(%d%d%d%d%d%d%d%d%d%d%d%d%d%d) *[%|%}]')
 
if ts and pcall(lang.formatDate, lang, '', ts) == true then
return 'R'
end
declined = true
end
end