6,571
次編輯
小 (update) |
小無編輯摘要 |
||
行 172: | 行 172: | ||
function talk_time(talk) | function talk_time(talk) | ||
local result=string.match(talk,"[%s%S]*(%d%d%d%d.*) %( | local result=string.match(talk,"[%s%S]*(%d%d%d%d.*) %(CST%)") | ||
return result | return result | ||
end | end | ||
行 180: | 行 180: | ||
--1-4分别为发言条数,发言人数,发起人,最后发言的人。 | --1-4分别为发言条数,发言人数,发起人,最后发言的人。 | ||
text=string.gsub(text, "Special:用户贡献/", "User:ip:") | text=string.gsub(text, "Special:用户贡献/", "User:ip:") | ||
local match=string.gmatch (text,"User:([^\n]-)%|[^\n]- | local match=string.gmatch (text,"User:([^\n]-)%|[^\n]-CST") | ||
local userlist={} | local userlist={} | ||
local user,firstuser,lastuser="","","" | local user,firstuser,lastuser="","","" | ||
行 201: | 行 201: | ||
function get_table(talktitle,talktext) | function get_table(talktitle,talktext) | ||
local result=[[<table class="wikitable sortable mw-collapsible" style="text-align:center"><tr><th>#</td><th>话题</td><th>发言</td><th>参与</td><th>发起者</td><th>最近发言</td><th>最后发言时间( | local result=[[<table class="wikitable sortable mw-collapsible" style="text-align:center"><tr><th>#</td><th>话题</td><th>发言</td><th>参与</td><th>发起者</td><th>最近发言</td><th>最后发言时间(CST)</td></tr>]] | ||
local tableend=[[</table>]] | local tableend=[[</table>]] | ||
local part="" | local part="" |