Module:DepthCalculator

local p = {}

function p.depth(params) local edits, pages, articles = mw.site.stats.edits, mw.site.stats.pages, mw.site.stats.articles local depth = tostring((edits / pages) * (((pages - articles) / articles) ^ 2)) return depth end

function p.balancedDepth(params) local edits, pages, articles = mw.site.stats.edits, mw.site.stats.pages - mw.site.stats.files, mw.site.stats.articles local depth = tostring((edits / pages) * (((pages - articles) / articles) ^ 2)) end

return p