https://en.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3AInternalLinkCounterModule:InternalLinkCounter - Revision history2025-05-25T13:25:44ZRevision history for this page on the wikiMediaWiki 1.45.0-wmf.2https://en.wikipedia.org/w/index.php?title=Module:InternalLinkCounter&diff=1222110715&oldid=prevAram: ←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 '-- 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&action=edit&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 "" local count = 0 -- Iterating through the wikitext to find internal link patterns. for link in mw.ustring.gmatch(text, "%[%[([^%]]+)%]%]") do...'</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 ""<br />
local count = 0<br />
-- Iterating through the wikitext to find internal link patterns.<br />
for link in mw.ustring.gmatch(text, "%[%[([^%]]+)%]%]") 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