Modul:Namespace detect/data: Unterschied zwischen den Versionen

K
K (Protected Module:Namespace detect/data: High-risk Lua module ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
K (1 Version von wikivoyage:Modul:Namespace_detect/data importiert)
 
(9 dazwischenliegende Versionen von 6 Benutzern werden nicht angezeigt)
Zeile 18: Zeile 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 argKeys = {
local defaultKeys = {
main = {'main'},
'main',
talk = {'talk'},
'talk',
other = {'other'},
'other',
subjectns = {'subjectns'},
'subjectns',
demospace = {'demospace'},
'demospace',
page = {'page'}
'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