4,599
edits
imported>Uzume (Pull in sandbox changes requested by User:MJL@Template talk:Redirect template#Template-protected edit request on 12 December 2021) |
(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...") |
||
| Line 8: | Line 8: | ||
local namespaceCategories = { | local namespaceCategories = { | ||
all = { function() return true end }, | all = { function() return true end }, | ||
main = { 0, '[[ | main = { 0, '[[wp:mainspace|main]]' }, | ||
help = { 12, '[[ | help = { 12, '[[wp:help namespace|help]]' }, | ||
portal = { 100, '[[ | portal = { 100, '[[wp: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, '[[wp:template namespace|template]]' }, | ||
wikipedia = { 4, '[[wp:project namespace|Wikipedia project]]' }, | |||
category = { 14, '[[ | category = { 14, '[[wp:categorization|category]]' }, | ||
user = { 2, '[[ | user = { 2, '[[wp:user pages|user]]' }, | ||
} | } | ||