Module:ProofreadStats

La bibliothèque libre.
Sauter à la navigation Sauter à la recherche

La documentation pour ce module peut être créée à Module:ProofreadStats/Documentation

-- This module is edited by the bot to invalidate cache when new stats are compiled
-- or when the versionned source is updated; changes to code here will not last.
-- TIMESTAMP 1555828561
local stats = mw.loadData('Module:ProofreadStats/Data')
local export = {}

function export.value( frame )
  if( stats[frame.args[1]] ) then
    return stats[frame.args[1]][0+frame.args[2]]
  end
  return nil
end

function export.total( frame )
  book = stats[frame.args[1]]
  return book[0]+book[1]+book[2]+book[3]+book[4]+book['m']
end

function export.updated()
  return stats['date']
end

return export