View source for Module:VolDiff
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
local sectionExtractor = require('Module:ExtractSection')
local p = {}
-- Helper function to parse chapter number from the chapter link
local function getChapterNumber(chapterLink)
if chapterLink then
local fullMatch = mw.ustring.match(chapterLink, "%[%[(.-)%]%]")
if fullMatch then
local splitMatch = mw.text.split(fullMatch, "|")
return splitMatch[1]
end
end
return nil
end
-- Function to find all Diff positions
local function findDiffPositions(content)
local positions = {}
local startPos = 1
while true do
local diffStart, diffEnd = mw.ustring.find(content, "{{%s*Diff%s*[|\n]", startPos)
000
1:0
Template used on this page:
Return to Module:VolDiff.