<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.randombell.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ANs_has_subpages%2Fdoc</id>
	<title>Module:Ns has subpages/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.randombell.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ANs_has_subpages%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.randombell.com/index.php?title=Module:Ns_has_subpages/doc&amp;action=history"/>
	<updated>2026-04-04T22:10:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.randombell.com/index.php?title=Module:Ns_has_subpages/doc&amp;diff=1609&amp;oldid=prev</id>
		<title>Randombell: Created page with &quot;{{used in system}} {{Module rating|protected}} {{cascade-protected template|page=module}} This module finds whether a given namespace can have subpages.  == Usage ==  === From wikitext ===  From wikitext this module must be used via the {{tl|ns has subpages}} template. Please see the template page for documentation.  === From Lua ===  Usually Lua modules should use &lt;code&gt;mw.site.namespaces[&#039;&#039;namespace&#039;&#039;].hasSubpages&lt;/code&gt; rather than this module. But if you ha...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.randombell.com/index.php?title=Module:Ns_has_subpages/doc&amp;diff=1609&amp;oldid=prev"/>
		<updated>2025-08-19T15:03:27Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{used in system}} {{Module rating|protected}} {{cascade-protected template|page=module}} This module finds whether a given &lt;a href=&quot;/index.php?title=WP:NS&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:NS (page does not exist)&quot;&gt;namespace&lt;/a&gt; can have subpages.  == Usage ==  === From wikitext ===  From wikitext this module must be used via the {{tl|ns has subpages}} template. Please see the template page for documentation.  === From Lua ===  Usually Lua modules should use &amp;lt;code&amp;gt;mw.site.namespaces[&amp;#039;&amp;#039;namespace&amp;#039;&amp;#039;].hasSubpages&amp;lt;/code&amp;gt; rather than this module. But if you ha...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{used in system}}&lt;br /&gt;
{{Module rating|protected}}&lt;br /&gt;
{{cascade-protected template|page=module}}&lt;br /&gt;
This module finds whether a given [[WP:NS|namespace]] can have subpages.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
=== From wikitext ===&lt;br /&gt;
&lt;br /&gt;
From wikitext this module must be used via the {{tl|ns has subpages}} template. Please see the template page for documentation.&lt;br /&gt;
&lt;br /&gt;
=== From Lua ===&lt;br /&gt;
&lt;br /&gt;
Usually Lua modules should use &amp;lt;code&amp;gt;mw.site.namespaces[&amp;#039;&amp;#039;namespace&amp;#039;&amp;#039;].hasSubpages&amp;lt;/code&amp;gt; rather than this module. But if you have a good reason, it can be accessed like this:&lt;br /&gt;
&lt;br /&gt;
Load the module:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local mNsHasSubpages = require(&amp;#039;Module:Ns has subpages&amp;#039;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The subpage information can be found with the ._main function:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mNsHasSubpages._main(ns, frame)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;var&amp;gt;ns&amp;lt;/var&amp;gt; is the namespace name, number, or a page name. It defaults to the current namespace.&lt;br /&gt;
* &amp;lt;var&amp;gt;frame&amp;lt;/var&amp;gt; is a frame object with which we can call frame:callParserFunction if necessary. This is optional, and intended for internal use.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox | |&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Randombell</name></author>
	</entry>
</feed>