Jump to content

Module:InternalLinkCounter: Revision history


For any version listed below, click on its date to view it. For more help, see Help:Page history and Help:Edit summary. (cur) = difference from current version, (prev) = difference from preceding version, m = minor edit, โ†’ = section edit, โ† = automatic edit summary

3 May 2024

  • curprev 23:1423:14, 3 May 2024 Aram talk contribs 602 bytes +602 โ†Created page with '-- This Lua module provides a function to count the number of internal links in a given wikitext. -- This is used by Template:InternalLinkCounter. local p = {} -- Function to count the number of internal links in the provided wikitext. function p.main(frame) local text = frame.args[1] or "" local count = 0 -- Iterating through the wikitext to find internal link patterns. for link in mw.ustring.gmatch(text, "%[%[([^%]]+)%]%]") do...'