Module:Sandbox/Aidan9382/DiscussionOverview: Difference between revisions

Content deleted Content added
{{user}} template makes this hard but test preprocessing section name
mw.uri.anchorEncode (how am i only finding this now)
Line 136:
.. ']]\n|-\n! Section !! Initiator !! Last Comment !! Size !! Participants !! Mentions'
for _,section in next,sections do
local sanitisedName = string.gsub(string.gsub(mw.uri.anchorEncode(frame:preprocess(section.name)),"%[%[:?[^|]-|([^%]]-)]]","%1"),"%[%[:?([^%]]-)]]","%1")
local displayName = string.gsub(string.gsub(frame:preprocess(section.name),"%[%[:?[^|]-|([^%]]-)]]","%1"),"%[%[:?([^%]]-)]]","%1")
local wikilinkAnchor = "[[:"..page.."#"..sanitisedName.."|"..sanitisedNamedisplayName.."]]"
local membersInText = getUserMentions(section.content)
local uniqueParticipants = {}