1,535
edits
(make replacement for Template:Ns has subpages) |
m (5 revisions imported from templatewiki:Module:Ns_has_subpages) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 20:
-- thing as {{NAMESPACE}} in most cases.
if not nsTable and type(ns) == 'string' and not ns:find('[<>|%[%]{}]') then
local nsStripped = ns:gsub('^[_%s]*:
nsStripped = nsStripped:gsub(':.*$', '')
nsTable = mw.site.namespaces[nsStripped]
|