https://en.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3AInternalLinkCounter Module:InternalLinkCounter - Revision history 2025-05-25T13:25:44Z Revision history for this page on the wiki MediaWiki 1.45.0-wmf.2 https://en.wikipedia.org/w/index.php?title=Module:InternalLinkCounter&diff=1222110715&oldid=prev Aram: ←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...' 2024-05-03T23:14:15Z <p><a href="/wiki/Wikipedia:AES" class="mw-redirect" title="Wikipedia:AES">←</a>Created page with &#039;-- This Lua module provides a function to count the number of internal links in a given wikitext. -- This is used by <a href="/w/index.php?title=Template:InternalLinkCounter&amp;action=edit&amp;redlink=1" class="new" title="Template:InternalLinkCounter (page does not exist)">Template:InternalLinkCounter</a>. local p = {} -- Function to count the number of internal links in the provided wikitext. function p.main(frame) local text = frame.args[1] or &quot;&quot; local count = 0 -- Iterating through the wikitext to find internal link patterns. for link in mw.ustring.gmatch(text, &quot;%[%[([^%]]+)%]%]&quot;) do...&#039;</p> <p><b>New page</b></p><div>-- This Lua module provides a function to count the number of internal links in a given wikitext.<br /> -- This is used by [[Template:InternalLinkCounter]].<br /> <br /> local p = {}<br /> <br /> -- Function to count the number of internal links in the provided wikitext.<br /> function p.main(frame)<br /> local text = frame.args[1] or &quot;&quot;<br /> local count = 0<br /> -- Iterating through the wikitext to find internal link patterns.<br /> for link in mw.ustring.gmatch(text, &quot;%[%[([^%]]+)%]%]&quot;) do<br /> count = count + 1<br /> end<br /> -- Returning the total count of internal links.<br /> return count<br /> end<br /> <br /> -- Returning the module table.<br /> return p</div> Aram