Module:NUMBEROF/rank: Revision history

From EunuchWiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

8 April 2024

  • curprev 14:4114:41, 8 April 2024 AifoxHi talk contribs 1,139 bytes +1,139 Created page with "-- Return a table of statistics to be accessed once per page using mw.loadData. -- For each sister project, the table ranks each site by its number of articles. local projects = { 'wikipedia', } local function getData(statistics) local iSite, iArticles for i, v in ipairs(statistics.schema.fields) do if v.name == 'site' then iSite = i elseif v.name == 'articles' then iArticles = i end end local rankBySite, rankByIndex = {}, {} for _, v in ipairs(statis..."