Module:Protection banner: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(tidy this up and comment it so it will be easier for others to understand) |
m (fix comment typo) |
||
Line 88: | Line 88: | ||
function p.matchNamespace(ns) |
function p.matchNamespace(ns) |
||
-- Matches a namespace number to a string that can be passed to the |
-- Matches a namespace number to a string that can be passed to the |
||
-- |
-- namespace parameter of p.getCategoryName. |
||
if not ns or type(ns) ~= 'number' then |
if not ns or type(ns) ~= 'number' then |
||
return 'all' |
return 'all' |