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('%| *
declined = true▼
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
|