Content deleted Content added
HouseBlaster (talk | contribs) create a draft |
HouseBlaster (talk | contribs) tostring not needed |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1:
local p = {}
function p.main(
local UTRS = mw.title.new('User:AmandaNP/UTRS Appeals').content -- get the UTRS table
local numberEncountered = 0 -- initialize the counter
local currentStartIndex = 1 -- initialize the index
while true do
-- find the next
local nextMatchRange = string.find(UTRS, 'CHECKUSER', currentStartIndex, true)
if not nextMatchRange then
--
return numberEncountered
else
--
numberEncountered = numberEncountered + 1
currentStartIndex =
end
end
end
return p
|