Module:Sandbox/Aidan9382/DiscussionOverview
Appearance
Examples
Section | Initiator | Last Comment | Size | Participants |
---|---|---|---|---|
Thanks | Not yet calculated | Not yet calculated | 1539 | 2: Star Mississippi, Aidan9382 |
ArbCom 2023 Elections voter message | Not yet calculated | Not yet calculated | 2055 | 1: MediaWiki message delivery |
Thanks | Not yet calculated | Not yet calculated | 449 | 2: Mushy Yank, Aidan9382 |
Invitation | Not yet calculated | Not yet calculated | 1728 | 1: MediaWiki message delivery |
Module goodness | Not yet calculated | Not yet calculated | 778 | 2: JPxG, Aidan9382 |
Template:CFB Team Depth Chart | Not yet calculated | Not yet calculated | 1204 | 2: ActivelyDisinterested, Aidan9382 |
Archive Bot | Not yet calculated | Not yet calculated | 1673 | 2: Elvisisalive95, Aidan9382 |
Thank you | Not yet calculated | Not yet calculated | 523 | 2: Joyous!, Aidan9382 |
Aidan9382-Bot: Monitoring page moves failure (Fixed) | Not yet calculated | Not yet calculated | 1702 | 2: SDZeroBot, Aidan9382 |
Aidan9382-Bot: Monitoring page moves failure (Fixed) | Not yet calculated | Not yet calculated | 878 | 1: SDZeroBot |
Help with regex | Not yet calculated | Not yet calculated | 6252 | 3: MSGJ, Tom.Reding, Aidan9382 |
ArbCom 2024 Elections voter message | Not yet calculated | Not yet calculated | 2036 | 1: MediaWiki message delivery |
Need Help with Module:Template parameter value | Not yet calculated | Not yet calculated | 1944 | 2: R1F4T, Aidan9382 |
Aidan9382-Bot: Monitoring page moves failure (Fixed) | Not yet calculated | Not yet calculated | 860 | 1: SDZeroBot |
Aidan9382-Bot: Monitoring page moves failure (Fixed) | Not yet calculated | Not yet calculated | 1106 | 2: SDZeroBot, Aidan9382 |
Aidan9382-Bot: Monitoring page moves failure (Fixed) | Not yet calculated | Not yet calculated | 977 | 2: SDZeroBot, Aidan9382 |
Aidan9382-Bot: Monitoring page moves failure (Fixed) | Not yet calculated | Not yet calculated | 977 | 2: SDZeroBot, Aidan9382 |
Aidan9382-Bot: Monitoring page moves failure (Fixed) | Not yet calculated | Not yet calculated | 1013 | 2: SDZeroBot, Aidan9382 |
Section | Initiator | Last Comment | Size | Participants |
---|---|---|---|---|
IP word vandalism | Not yet calculated | Not yet calculated | 33886 | 32: GiantSnowman, 46.56.250.117, C.Fred, 14.162.206.244, Grapesurgeon, ActivelyDisinterested, Narky Blert, DuncanHill, Mellk, NatGertler, Abasteraster, Bruce1ee, Myrealnamm, TonySt, PharyngealImplosive7, Acroterion, Lynch44, Jonesey95, Sesquilinear, David Eppstein, Mad Jim Bey, VergilSparkles, Robby.is.on, Samwalton9, Chaotic Enby, ChildrenWillListen, Giraffer, EggRoll97, Joyous!, The Bushranger, Celjski Grad, 37.186.45.131 |
IP are insulting me | Not yet calculated | Not yet calculated | 3029 | 3: Fabvill, Panam2014, Izno |
Concern about biased editing by user Weatherextremes | Not yet calculated | Not yet calculated | 14168 | 5: Liz, Aexon79, EF5, Weatherextremes, Simonm223 |
User:Vijay897665566 and page moves | Not yet calculated | Not yet calculated | 1817 | 2: Ivanvector, 103.165.8.92 |
Annoying warning templates from FredTheDeadHead | Not yet calculated | Not yet calculated | 2785 | 4: Ivanvector, Geogene, Voorts, FredTheDeadHead |
Possible hounding and uncivil conduct by User:JalenBarks | Not yet calculated | Not yet calculated | 65225 | 18: Meio2934, JalenBarks, Tamzin, Liz, Daedalus969, The Bushranger, REAL_MOUSE_IRL, JPxG, Isaidnoway, Levivich, WaltCip, CoffeeCrumbs, SuperPianoMan9167, Sesquilinear, Simonm223, Jolielover, MrOllie, ActivelyDisinterested |
Frequentflyer93 | Not yet calculated | Not yet calculated | 16402 | 5: The Banner, Frequentflyer93, Jolielover, Voorts, Canterbury Tail |
User:Moguy | Not yet calculated | Not yet calculated | 18665 | 4: AndyTheGrump, Rambling Rambler, Czello, Moguy |
User:AnLacPubs | Not yet calculated | Not yet calculated | 4967 | 7: Apocheir, ChildrenWillListen, SuperPianoMan9167, PhilKnight, Liz, 2600:4040:B07D:CE00:5049:DB1:D6C6:A3A, JPxG |
BusFan901 | Not yet calculated | Not yet calculated | 1807 | 4: Fabvill, Sable232, Liz, ScottishFinnishRadish |
Dragonfruitfox | Not yet calculated | Not yet calculated | 1172 | 3: Fabvill, Jolielover, ScottishFinnishRadish |
Lucygeejones8 is at it again | Not yet calculated | Not yet calculated | 2209 | 2: ScottishFinnishRadish, ResolutionsPerMinute |
Persistent use of sources that don’t actually exist by User:10bhardwajrock | Not yet calculated | Not yet calculated | 2703 | 3: Jahaza, Northern Moonlight, ScottishFinnishRadish |
User:Ziad0tarek952005 | Not yet calculated | Not yet calculated | 1543 | 3: Govvy, Liz, Ziad0tarek952005 |
User:OCDD 31 July 2025 | Not yet calculated | Not yet calculated | 5635 | 2: Servite et contribuere, Liz |
User:Afrika1997 is adding unsourced content to multiple articles | Not yet calculated | Not yet calculated | 3468 | 3: Kwesi Yema, Johnuniq, Ad Orientem |
This editor | Not yet calculated | Not yet calculated | 2385 | 6: Liz, StopLookingAtMe1, TurboSuperA+, The Bushranger, Fabvill, Jimfbleak |
Kanikosen | Not yet calculated | Not yet calculated | 21694 | 13: Ivanvector, TylerBurden, Mzajac, Kanikosen, Very Polite Person, Slatersteven, Simonm223, 2A04:7F80:37:24E6:9958:72A5:20B4:70F0, Drmies, GothicGolem29, MilesVorkosigan, Mr rnddude, rsjaffe |
User:Marc87 | Not yet calculated | Not yet calculated | 8104 | 7: DaHuzyBru, Marc87, Fabvill, Liz, Voorts, The Bushranger, GoodDay |
Is this a real bot? | Not yet calculated | Not yet calculated | 5038 | 6: Oshwah, Czello, Bahati11, DMacks, GiantSnowman, Tenshi Hinanawi |
Returning block evasion from SF-banned user | Not yet calculated | Not yet calculated | 1101 | 3: Izno, GorillaWarfare, Ahecht |
Robert2300 and overlinking | Not yet calculated | Not yet calculated | 3426 | 4: Voorts, Mellk, Celjski Grad, Izno |
Talk page civility and bad-faith dispute regarding user:MilesVorkosigan | Not yet calculated | Not yet calculated | 19105 | 8: Ecthelion83, Liz, Simonm223, Isaidnoway, Firefangledfeathers, 107.115.5.23, Levivich, Chrisahn |
Promotion of CSAM/Nazi/Satanic Telegram groups | Not yet calculated | Not yet calculated | 2587 | 6: stwalkerster, D1551D3N7, Simonm223, Liz, Jahaza, TonySt |
Amanda Forsythe Tufts | Not yet calculated | Not yet calculated | 800 | 2: Voorts, 4meter4 |
Borrisbaron | Not yet calculated | Not yet calculated | 6771 | 9: The Bushranger, Aleain, 73.38.235.124, Liz, As above, 37.186.45.131, JPxG, Ivanvector, 107.115.5.23 |
Azarelvis WP:IDHT and WP:CIR | Not yet calculated | Not yet calculated | 1585 | 2: TurboSuperA+, Ahri Boy |
User:HiddenInformation: UPE, article hijacking | Not yet calculated | Not yet calculated | 1605 | 3: Liz, Ca, Star Mississippi |
Keizers and Saks Fifth Avenue store locations | Not yet calculated | Not yet calculated | 4280 | 4: Let'srun, rsjaffe, The Bushranger, Liz |
Newinwiki8 repeatedly removing maintenance templates | Not yet calculated | Not yet calculated | 14139 | 7: Liz, Cordless Larry, Rosguill, Rambling Rambler, AndyTheGrump, Mackensen, ChildrenWillListen |
WP:AIV backlog | Not yet calculated | Not yet calculated | 644 | 2: AlphaBetaGamma, Raladic |
User:Mr.choppers | Not yet calculated | Not yet calculated | 1102 | 2: Alawadhi3000, AndyTheGrump |
Section | Initiator | Last Comment | Size | Participants |
---|---|---|---|---|
Latin American politics TBAN appeal | Not yet calculated | Not yet calculated | 30676 | 10: NoonIcarus, Liz, Number 57, Simonm223, David Tornheim, Ahri Boy, The Bushranger, TarnishedPath, Pppery, Allan Nonymous |
RfC closure review request at Wikipedia talk:Notability (music)#RFC: Confusion on applying WP:GNG and WP:NSONG for album reviews | Not yet calculated | Not yet calculated | 19441 | 8: Pppery, Slakr, Buffs, Maddy from Celeste, Voorts, Jessintime, Toadspike, The Bushranger |
Proposal for article creation ban removal | Not yet calculated | Not yet calculated | 6237 | 7: Pppery, Pek, 331dot, TarnishedPath, GorillaWarfare, WhatamIdoing, Curbon7 |
Unblocks backlog | Not yet calculated | Not yet calculated | 5378 | 8: Asilvering, Ponyo, Deepfriedokra, Mz7, Alexf, ThadeusOfNazereth, Star Mississippi, Ivanvector |
Kantamanto Market | Not yet calculated | Not yet calculated | 4581 | 5: Star Mississippi, Marchjuly, Liz, 2001:8003:B15F:8000:1CA8:4555:D1E6:34A, Owula kpakpo |
Request for Revision Deletion – Accidental IP disclosure | Not yet calculated | Not yet calculated | 1028 | 3: The Bushranger, FieldArchivist, Pppery |
Query on CTOP | Not yet calculated | Not yet calculated | 2725 | 4: Ad Orientem, Isaacl, The Bushranger, Toadspike |
RfC closure review request at Talk:Uğur_Şahin#RfC_about_Turkish_ethnicity_in_first_sentence | Not yet calculated | Not yet calculated | 7312 | 6: Bogazicili, Traumnovelle, Compassionate727, Sesquilinear, 208.87.236.180, Tserton |
RfC closure review request at Talk:Zionism/Archive 35#Moratorium proposal and Talk:Zionism/Archive 33#RFC about a recently added claim about Zionism | Not yet calculated | Not yet calculated | 35114 | 20: Pppery, Allthemilescombined1, Chetsford, Cambial Yellowing, Thebiguglyalien, Kowal2701, TarnishedPath, Aquillion, Zero0000, The Bushranger, Jéské Couriano, Cdjp1, MilesVorkosigan, EvansHallBear, buidhe, Asilvering, Huldra, Rainsage, BeŻet, Rosguill |
Harassing Me on Wikipedia User:ChildrenWillListen | Not yet calculated | Not yet calculated | 2246 | 4: Kuru, Shruti Siddhi Deshmukh, ChildrenWillListen, DoubleGrazing |
RfC closure review request at Talk:Ahmed al-Sharaa#RfC about using 'Interim President' or just 'President' | Not yet calculated | Not yet calculated | 4136 | 3: Hauskasic, Toadspike, Compassionate727 |
Global ban for Chealer | Not yet calculated | Not yet calculated | 462 | 1: SHB2000 |
James William Camba Escanilla vandalism | Not yet calculated | Not yet calculated | 1597 | 2: Timtjtim, Ahri Boy |
Jimbo's Talk Page Protection and problems donating | Not yet calculated | Not yet calculated | 3897 | 6: The Bushranger, 70.105.242.150, 331dot, Girth Summit, 95.5.189.119, SuperMarioMan |
can someone please anonymize my bot account? | Not yet calculated | Not yet calculated | 804 | 2: Your Local Italian, Acroterion |
Willbb234 unblock request | Not yet calculated | Not yet calculated | 21339 | 19: Compassionate727, Liz, Pppery, LilianaUwU, REAL_MOUSE_IRL, Simonm223, Willbb234, Firefangledfeathers, LakesideMiners, Voorts, Cactusisme, ThadeusOfNazereth, Levivich, Ivanvector, Alanscottwalker, TonySt, Rusalkii, Kingsif, rsjaffe |
Rename of Arjun G. Menon to ArtistProgrammer | Not yet calculated | Not yet calculated | 16771 | 14: HouseBlaster, Tamzin, Liz, Meters, FlightTime, Compassionate727, fifteen thousand two hundred twenty four, Pppery, Levivich, 95.5.189.119, The Bushranger, rsjaffe, Ivanvector, Newyorkbrad |
Luke10:27 unban discussion | Not yet calculated | Not yet calculated | 7622 | 8: The Bushranger, Luke10.27, Asilvering, Tamzin, Toadspike, Compassionate727, Cactusisme, CoffeeCrumbs |
Vandalism user | Not yet calculated | Not yet calculated | 748 | 3: JohnDavies9612, The Bushranger, JPxG |
User:142.105.69.34 | Not yet calculated | Not yet calculated | 5442 | 6: Megainek, Graeme Bartlett, 142.105.69.34, The Bushranger, Premeditated Chaos, Nathannah |
Question regarding unilateral reversion of an article | Not yet calculated | Not yet calculated | 2594 | 4: Star Mississippi, Daniel Plumber, Tamzin, Fram |
Someone Tried To Log Into My Account | Not yet calculated | Not yet calculated | 697 | 2: Voorts, Master106 |
User permissions | Not yet calculated | Not yet calculated | 471 | 3: The Bushranger, Jerium, Robertsky |
Changes to the functionaries team, July 2025 | Not yet calculated | Not yet calculated | 753 | 2: Daniel, ArbClerkBot |
Announcement regarding use of checkuser by the Wikimedia Foundation | Not yet calculated | Not yet calculated | 2016 | 2: HJ Mitchell, ArbClerkBot |
Confirmed and autoconfirmed | Not yet calculated | Not yet calculated | 4088 | 4: Star Mississippi, Vanderwaalforces, Ivanvector, Xaosflux |
Having two indefinite blocks applied to the same user account? | Not yet calculated | Not yet calculated | 8243 | 3: Oshwah, DoubleGrazing, Xaosflux |
User:104.159.73.87: keeps adding back unsourced information, personnal attack/WP:FAITH | Not yet calculated | Not yet calculated | 6675 | 6: Veverve, Liz, Super Goku V, The Bushranger, 104.159.73.87, NinjaRobotPirate |
Removal of 3X ban on User:ByzantineIsNotRoman | Not yet calculated | Not yet calculated | 1742 | 5: 331dot, Yamla, Compassionate727, DoubleGrazing, rsjaffe |
Category:Wikipedia files with the same name on Wikimedia Commons as of unknown date | Not yet calculated | Not yet calculated | 749 | 2: Matrix, Diannaa |
Disputed article Mavala | Not yet calculated | Not yet calculated | 2864 | 2: CoconutOctopus, Dolphish |
Edit request on Madhan Bob | Not yet calculated | Not yet calculated | 4023 | 3: The Bushranger, Abishe, 37.186.45.131 |
U4C call for non-voting candidates | Not yet calculated | Not yet calculated | 1809 | 1: Barkeep49 |
Hateful user 92.40.213.120 | Not yet calculated | Not yet calculated | 1829 | 5: The Bushranger, FlyingScotsman72, The Sophocrat, Extraordinary Writ, 2605:8D80:666:737A:4871:5632:3689:6AE |
--[=[
A module designed to provide an overall summary and some statistics on a discussion board
Inspired by, and partially borrowed from, [[Module:Sandbox/Smalljim/DiscussionIndexTest]]
--]=]
local Transcluder = require("Module:Transcluder")
local p = {}
table.find = function(t,o) --Used to luau, so assumed this existed. Heres a quick version
for a,b in next,t do
if b == o then
return true
end
end
return false
end
local function convertTimestamp(timestamp)
return tonumber(lang:formatDate("U",timestamp))
end
--Specialised version of Transcluder.getSections, using a similar design
local function getSectionData(text)
local sections = {}
text = "\n"..text.."\n== "
while true do
local section,content = string.match(text,"\n==%s*([^=]-)%s*==\n(.-)\n==[^=]")
if not section then
break
end
text = string.sub(text,string.find(text,content,1,true)+#content,-1)
sections[#sections+1] = {name=section,content=content}
end
return sections
end
local function getUserMentions(text)
--Returns a list of users, and if they were considered a "participant" or someone who was just mentioned
local mentions = {}
--Timestamp is %d%d:%d%d, %d%d? %w+ %d%d%d%d %(UTC%)) but we allow some (minor) leniancy for those who just slightly edit their dates so that it still picks up
local timestampRegex = "((%d%d:%d%d, %d%d? %w+,? %d%d%d%d) %(UTC%))"
local userRegex = "(%[%[:?User:([^|%]]+))"
local userTalkRegex = "(%[%[:?User:([^|%]]+))"
local userContribRegex = "(%[%[:?Special:Contributions/([^|%]]+))"
for line in string.gmatch(text,"[^\n]+") do
--Split by line and check all content on said line. This assumes all signatures never use newlines, which they should not be doing.
--Bar of entry for being labelled a "participant" is a valid timestamp along with their user/usertalk/contribs
--Users can be noted as being both a participant and a mention during the data, so be smart in using this data
local usersOnThisLine = {}
for _,reg in next,{userRegex,userTalkRegex,userContribRegex} do
local index = 1
while true do
local targetText = string.sub(line,index,-1)
local wholeText,identifier = string.match(targetText,reg)
if not wholeText then
break
end
if not string.find(identifier,"/") then --Subpage nonsense
-- mw.log("Found user on reg",reg,"name is",identifier)
usersOnThisLine[string.find(targetText,reg)] = identifier
end
index = index + string.find(targetText,reg) + #wholeText
end
end
--Start associating timestamps with users
local index = 1
local pindex = {} --Lazy coding
local participants = {}
while true do
local targetText = string.sub(line,index,-1)
local wholeText,identifier = string.match(targetText,timestampRegex)
if not wholeText then
break
end
--Backtrack through the text for a mention
local timestampLocation = string.find(targetText,identifier)
local user,where
for i = timestampLocation,1,-1 do
user,where = usersOnThisLine[i],i
if user then
break
end
end
if user then
participants[#participants+1] = {user=user,when=identifier,participated=true}
pindex[user] = true
--else: be confused as hell
end
index = index + timestampLocation + #wholeText
end
local pings = {}
for _,user in next,usersOnThisLine do
if not pings[user] and not pindex[user] then --If they participated on a line, just ignore all pings
pings[user] = true
end
end
--Integrate the new data
for user,_ in next,pings do
mentions[#mentions+1] = {user=user,participated=false}
end
for _,userData in next,participants do
mentions[#mentions+1] = userData
end
end
return mentions
end
function p.main(frame)
local page = frame.args[1] or frame.args.page
assert(type(page)=="string","Invalid or no page provided")
local success,text = pcall(Transcluder.get,page)
assert(success,text)
local sections = getSectionData(text)
local tableContent = '{| class="wikitable sortable"\n! Section !! Initiator !! Last Comment !! Size !! Participants'
for _,section in next,sections do
local sanitisedName = string.gsub(string.gsub(section.name,"%[%[:?[^|]-|([^%]]-)]]","%1"),"%[%[:?([^%]]-)]]","%1")
local wikilinkAnchor = "[[:"..page.."#"..sanitisedName.."|"..sanitisedName.."]]"
local membersInText = getUserMentions(section.content)
local uniqueParticipants = {}
for _,userData in next,membersInText do
if userData.participated and not table.find(uniqueParticipants,userData.user) then
uniqueParticipants[#uniqueParticipants+1] = userData.user
end
end
local initiator = "Not yet calculated"
local lastComment = "Not yet calculated"
local participants = #uniqueParticipants .. ": " .. table.concat(uniqueParticipants,", ")
local sectionContent = "\n|-\n| "..wikilinkAnchor.." || "..initiator.." || "..lastComment.." || "..#section.content.." || "..participants
tableContent = tableContent .. sectionContent
end
return tableContent .. "\n|}"
end
function p.maindev(frame)
local content = p.main(frame)
return content .. "\n\n" .. frame:extensionTag("syntaxhighlight",content,{lang="html5"})
end
p.getSectionData = getSectionData
p.getUserMentions = getUserMentions
return p