4,599
edits
(Created page with "require('Module:No globals') local p = {} -- key is beginning of arg name. value is table with namespace number and link -- alternatively, a function taking the namespace number and returning a validity -- can be used local namespaceCategories = { all = { function() return true end }, main = { 0, 'main' }, help = { 12, 'help' }, portal = { 100, 'portal' }, talk = { function(n) return n > 0 and n%2 == 1 end, '[[H...") |
No edit summary |
||
Line 8: | Line 8: | ||
local namespaceCategories = { | local namespaceCategories = { | ||
all = { function() return true end }, | all = { function() return true end }, | ||
main = { 0, '[[ | main = { 0, '[[sw:mainspace|main]]' }, | ||
help = { 12, '[[ | help = { 12, '[[sw:help namespace|help]]' }, | ||
portal = { 100, '[[ | portal = { 100, '[[sw:portal|portal]]' }, | ||
talk = { function(n) return n > 0 and n%2 == 1 end, '[[Help:Talk pages|talk]]' }, | talk = { function(n) return n > 0 and n%2 == 1 end, '[[Help:Talk pages|talk]]' }, | ||
template = { 10, '[[ | template = { 10, '[[sw:template namespace|template]]' }, | ||
stilescasa_wiki = { 4, '[[sw:project namespace|Stiles.casa Wiki project]]' }, | |||
category = { 14, '[[ | category = { 14, '[[sw:categorization|category]]' }, | ||
user = { 2, '[[ | user = { 2, '[[sw:user pages|user]]' }, | ||
} | } | ||