Module:ExtractSection: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

6 August 2024

  • curprev 15:2215:22, 6 August 2024Vish talk contribs 945 bytes +945 Created page with "local p = {} -- Helper function to extract content under a specific section header function p.extractSection(content, header) -- Define the pattern to find the section header local startPattern = mw.ustring.gsub(header, "=", "%%=") -- Find the start of the specified header local sectionStart, sectionEnd = mw.ustring.find(content, startPattern) -- If the section is not found, return nil if not sectionStart then return nil end -- Fi..."