<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.statsape.com/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3ANs_has_subpages%2Fdoc</id>
	<title>模块:Ns has subpages/doc - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.statsape.com/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3ANs_has_subpages%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=%E6%A8%A1%E5%9D%97:Ns_has_subpages/doc&amp;action=history"/>
	<updated>2026-05-14T15:36:06Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://wiki.statsape.com/index.php?title=%E6%A8%A1%E5%9D%97:Ns_has_subpages/doc&amp;diff=8460&amp;oldid=prev</id>
		<title>Zeroclanzhang：​创建页面，内容为“{{used in system}} {{Module rating|protected}} 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 have a good reason, it can be acces…”</title>
		<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=%E6%A8%A1%E5%9D%97:Ns_has_subpages/doc&amp;diff=8460&amp;oldid=prev"/>
		<updated>2024-01-23T07:39:20Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{used in system}} {{Module rating|protected}} 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（页面不存在）&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 have a good reason, it can be acces…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{used in system}}&lt;br /&gt;
{{Module rating|protected}}&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>Zeroclanzhang</name></author>
	</entry>
</feed>