Content deleted Content added
MusikBot II (talk | contribs) m Protected "Module:RFX report": High-risk template or module: 372 transclusions (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite)) |
Merge code by ProcrastinatingReader from sandbox |
||
Line 5:
local p = {}
local function getTableLength(tbl)
local length = 0
for _ in pairs(tbl) do
length = length + 1
end
return length
end
local function getRfxes()
Line 128 ⟶ 136:
end
local function
if not rfxes then
return nil
Line 146 ⟶ 154:
end
end
return rfas, rfbs
end
local function makeReportRows()
local rfas, rfbs = getRfasRfbsSeparate()
local ret = {}
if #rfas > 0 then
Line 182 ⟶ 197:
end
return mw.ustring.format( '\n{| class="wikitable" %s%s%s\n|-\n|}', style, header, rows )
end
function p.countRfas()
local rfas, rfbs = getRfasRfbsSeparate()
return getTableLength(rfas)
end
|