Open main menu

Changes

Module:Ns has subpages

4 bytes added, 06:14, 10 December 2014
match whitespace and underscores
-- 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]
Anonymous user