Module:Namespace detect/data: Difference between revisions

m
19 revisions imported: import wikisource templates
(found it - mappings[nsname] was getting an upper-case key)
m (19 revisions imported: import wikisource templates)
 
(16 intermediate revisions by 9 users not shown)
Line 18:
-- values can be added as a string, or as an array of strings.
 
local argKeysdefaultKeys = {
main = {'main'},
talk = {'talk'},
other = {'other'},
subjectns = {'subjectns'},
demospace = {'demospace'},
'demopage'
page = {'page'}
}
 
local argKeys = {}
for i, defaultKey in ipairs(defaultKeys) do
argKeys[defaultKey] = {defaultKey}
end
 
for defaultKey, t in pairs(argKeys) do