切换搜索
搜索
切换菜单
notifications
切换个人菜单
查看“模块:Ns has subpages/doc”的源代码
来自决策链云智库
更多操作
←
模块:Ns has subpages/doc
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{used in system}} {{Module rating|protected}} This module finds whether a given [[WP:NS|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 <code>mw.site.namespaces[''namespace''].hasSubpages</code> rather than this module. But if you have a good reason, it can be accessed like this: Load the module: <syntaxhighlight lang="lua"> local mNsHasSubpages = require('Module:Ns has subpages') </syntaxhighlight> The subpage information can be found with the ._main function: <syntaxhighlight lang="lua"> mNsHasSubpages._main(ns, frame) </syntaxhighlight> * <var>ns</var> is the namespace name, number, or a page name. It defaults to the current namespace. * <var>frame</var> is a frame object with which we can call frame:callParserFunction if necessary. This is optional, and intended for internal use. <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | <!-- Categories below this line, please; interwikis at Wikidata --> }}</includeonly>
本页使用的模板:
模板:Module rating
(
查看源代码
)
模板:Sandbox other
(
查看源代码
)
模板:Tl
(
查看源代码
)
模板:Used in system
(
查看源代码
)
模块:High-use
(
查看源代码
)
模块:Message box
(
查看源代码
)
模块:Message box/configuration
(
查看源代码
)
模块:Message box/ombox.css
(
查看源代码
)
模块:String
(
查看源代码
)
模块:Transclusion count
(
查看源代码
)
模块:Transclusion count/data/N
(
查看源代码
)
模块:Yesno
(
查看源代码
)
返回
模块:Ns has subpages/doc
。