Module:Protection banner: Difference between revisions
m
fix comment typo
(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' |