Module:Namespace detect/data: Difference between revisions
Content added Content deleted
(use "demopage" instead of "page" as the default page parameter - needed to fix bug on en.wikisource where "Page" is a namespace name) |
(bug fix - use the demospace parameter as both key and value in the argKeys table) |
||
Line 18: | Line 18: | ||
-- values can be added as a string, or as an array of strings. |
-- values can be added as a string, or as an array of strings. |
||
local |
local defaultKeys = { |
||
'main', |
|||
'talk', |
|||
'other', |
|||
'subjectns', |
|||
'demospace', |
|||
'demopage' |
|||
} |
} |
||
local argKeys = {} |
|||
for i, defaultKey in ipairs(defaultKeys) do |
|||
argKeys[defaultKey] = {defaultKey} |
|||
end |
|||
for defaultKey, t in pairs(argKeys) do |
for defaultKey, t in pairs(argKeys) do |