Changes

Jump to navigation Jump to search

Module:Ns has subpages

1 byte added, 06:13, 10 December 2014
tweak the string matching
-- thing as {{NAMESPACE}} in most cases.
if not nsTable and type(ns) == 'string' and not ns:find('[<>|%[%]{}]') then
local nsStripped = ns:gsub('^_*:+', '')
nsStripped = nsStripped:gsub(':.*$', '')
nsTable = mw.site.namespaces[nsStripped]
Anonymous user

Navigation menu