Module:ArbComOpenTasks and Module:ArbComOpenTasks/sandbox: Difference between pages

(Difference between pages)
Jump to navigation Jump to search
Page 1
Page 2
imported>SilverLocust
If the first signature in a section seems to be from collapsing it, skip that sig for determining date posted for ARCA/ARM
 
imported>SilverLocust
testing heading change
 
Line 71: Line 71:
function p.arca ( frame )
function p.arca ( frame )
frame = frame or mw.getCurrentFrame()
frame = frame or mw.getCurrentFrame()
local page = mw.title.new('Wikipedia:Arbitration/Requests/Clarification and Amendment'):getContent()
local page = mw.title.new('User:SilverLocust/sandbox/7'):getContent()
local re = '\n==%f[^=](.-)=='
local re = '\n==%f[^=](.-)=='
Line 96: Line 96:
content = sub( page, sec.start )
content = sub( page, sec.start )
end
end
-- If the first signature seems to be from collapsing it, skip that sig
content = mw.ustring.gsub( content, "{{.-}}%s*\'*Initiated by", "Initiated by", 1)
local redate = '%d%d?%s%a*%s%d%d%d%d%f[(%s%(UTC%)]'
local redate = '%d%d?%s%a*%s%d%d%d%d%f[(%s%(UTC%)]'
Line 158: Line 155:
content = sub( page, sec.start )
content = sub( page, sec.start )
end
end
-- If the first signature seems to be from collapsing it, skip that sig
content = mw.ustring.gsub( content, "{{[^^].-}}", "", 1)
local redate = '%d%d?%s%a*%s%d%d%d%d%f[(%s%(UTC%)]'
local redate = '%d%d?%s%a*%s%d%d%d%d%f[(%s%(UTC%)]'