<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ATEMPLATENAME%2Fdoc</id>
	<title>Module:TEMPLATENAME/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ATEMPLATENAME%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Module:TEMPLATENAME/doc&amp;action=history"/>
	<updated>2026-10-31T19:40:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://elite.mistflux.co.uk/w/index.php?title=Module:TEMPLATENAME/doc&amp;diff=125721&amp;oldid=prev</id>
		<title>Wikipedia&gt;Chrisahn: /* See also */ Remove link to Module:Params, it&#039;s being deleted. Section is now empty, deleted.</title>
		<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Module:TEMPLATENAME/doc&amp;diff=125721&amp;oldid=prev"/>
		<updated>2026-07-02T15:36:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;See also: &lt;/span&gt; Remove link to &lt;a href=&quot;/w/index.php?title=Module:Params&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Module:Params (page does not exist)&quot;&gt;Module:Params&lt;/a&gt;, it&amp;#039;s being deleted. Section is now empty, deleted.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Module rating|protected}}&lt;br /&gt;
&amp;lt;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --&amp;gt;&lt;br /&gt;
{{Distinguish|Template:TEMPLATENAME}}&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;syntaxhighlight inline lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{#invoke:TEMPLATENAME|main}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This module returns the name of the page it is being transcluded from. This differs from &amp;lt;code&amp;gt;{{mwl|FULLPAGENAME}}&amp;lt;/code&amp;gt;, which returns the name of the currently viewed page even if it is called from a template. To use this {{code|/doc}} subpage as an example, if you are viewing the main module page, &amp;lt;syntaxhighlight inline lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{#invoke:TEMPLATENAME|main}}&amp;lt;/syntaxhighlight&amp;gt; should generate &amp;lt;samp&amp;gt;&amp;lt;code&amp;gt;{{#invoke:TEMPLATENAME|main}}&amp;lt;/code&amp;gt;&amp;lt;/samp&amp;gt; while &amp;lt;syntaxhighlight inline lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{FULLPAGENAME}}&amp;lt;/syntaxhighlight&amp;gt; should generate &amp;lt;samp&amp;gt;&amp;lt;code&amp;gt;{{FULLPAGENAME}}&amp;lt;/code&amp;gt;&amp;lt;/samp&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
To get the same behavior for [[Help:variables|variables]] other than &amp;lt;syntaxhighlight inline lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{FULLPAGENAME}}&amp;lt;/syntaxhighlight&amp;gt;, this module can be passed as a parameter to their corollary parser functions as in:&lt;br /&gt;
&amp;lt;syntaxhighlight inline lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{PAGENAME:{{#invoke:TEMPLATENAME|main}}}}&amp;lt;/syntaxhighlight&amp;gt; → &amp;lt;samp&amp;gt;&amp;lt;code&amp;gt;{{PAGENAME:{{#invoke:TEMPLATENAME|main}}}}&amp;lt;/code&amp;gt;&amp;lt;/samp&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;[[Category:Module documentation pages]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Chrisahn</name></author>
	</entry>
</feed>