<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.transpeopletogether.org/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AExtractPageNameFromInternalLink</id>
	<title>Module:ExtractPageNameFromInternalLink - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.transpeopletogether.org/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AExtractPageNameFromInternalLink"/>
	<link rel="alternate" type="text/html" href="https://www.transpeopletogether.org/w/index.php?title=Module:ExtractPageNameFromInternalLink&amp;action=history"/>
	<updated>2026-04-18T22:49:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://www.transpeopletogether.org/w/index.php?title=Module:ExtractPageNameFromInternalLink&amp;diff=1924&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;local p = {}  -- Entry point for {{#invoke:ExtractPageNameFromInternalLink|extract|link}} function p.extract(frame)     -- Get the first positional argument (the full link markup)     local link = frame.args[1] or &quot;&quot;          -- Pattern breakdown:     -- ^%[%[      : match the literal &quot;...     -- ([^%[%|]+): capture one or more characters that are not &quot;[&quot; or &quot;|&quot;     local name = lin...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.transpeopletogether.org/w/index.php?title=Module:ExtractPageNameFromInternalLink&amp;diff=1924&amp;oldid=prev"/>
		<updated>2025-05-18T22:42:07Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {}  -- Entry point for {{#invoke:ExtractPageNameFromInternalLink|extract|link}} function p.extract(frame)     -- Get the first positional argument (the full link markup)     local link = frame.args[1] or &amp;quot;&amp;quot;          -- Pattern breakdown:     -- ^%[%[      : match the literal &amp;quot;[[&amp;quot; at the start     -- :?         : optionally match a leading colon (to allow &lt;a href=&quot;/w/index.php?title=Page&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Page (page does not exist)&quot;&gt;...&lt;/a&gt;     -- ([^%[%|]+): capture one or more characters that are not &amp;quot;[&amp;quot; or &amp;quot;|&amp;quot;     local name = lin...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
-- Entry point for {{#invoke:ExtractPageNameFromInternalLink|extract|link}}&lt;br /&gt;
function p.extract(frame)&lt;br /&gt;
    -- Get the first positional argument (the full link markup)&lt;br /&gt;
    local link = frame.args[1] or &amp;quot;&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
    -- Pattern breakdown:&lt;br /&gt;
    -- ^%[%[      : match the literal &amp;quot;[[&amp;quot; at the start&lt;br /&gt;
    -- :?         : optionally match a leading colon (to allow [[:Page|...]]&lt;br /&gt;
    -- ([^%[%|]+): capture one or more characters that are not &amp;quot;[&amp;quot; or &amp;quot;|&amp;quot;&lt;br /&gt;
    local name = link:match(&amp;quot;^%[%[:?([^%[%|]+)&amp;quot;)&lt;br /&gt;
    &lt;br /&gt;
    -- Return the captured page name, or an empty string if none&lt;br /&gt;
    return name or &amp;quot;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>