Munurin millum rættingarnar hjá "Module:Ns has subpages/doc"

Content deleted Content added
Stovnaði síðu við "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 su..."
 
Xqbot (kjak | íkøst)
s Bot: Erstatt forældet <source> -tag og parameteren "enclose" [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html]
 
Linja 12:
 
Load the module:
<sourcesyntaxhighlight lang="lua">
local mNsHasSubpages = require('Module:Ns has subpages')
</syntaxhighlight>
</source>
 
The subpage information can be found with the ._main function:
<sourcesyntaxhighlight lang="lua">
mNsHasSubpages._main(ns, frame)
</syntaxhighlight>
</source>
 
* <var>ns</var> is the namespace name, number, or a page name. It defaults to the current namespace.