Anonymous user
tweak the string matching
en>Mr. Stradivarius (make replacement for Template:Ns has subpages) |
en>Mr. Stradivarius (tweak the string matching) |
||
Line 20:
-- 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]
|