Autopatrolled users, Bots, Bureaucrats, Confirmed users, Interface administrators, Rollbackers, Administrators, Upload Wizard campaign editors
243
edits
(Undid revision 601018314 by Mr. Stradivarius (talk) looks like that broke something) |
m (31 revisions imported) Tags: Mobile edit Mobile web edit |
||
(24 intermediate revisions by 18 users not shown) | |||
Line 18:
-- values can be added as a string, or as an array of strings.
local
'demopage'
}
local argKeys = {}
for i, defaultKey in ipairs(defaultKeys) do
argKeys[defaultKey] = {defaultKey}
end
for defaultKey, t in pairs(argKeys) do
Line 52 ⟶ 57:
-- }
--]]
local subjectNamespaces = mw.site.subjectNamespaces▼
local mappings = {}
mainNsName = mw.ustring.lower(mainNsName)
mappings['talk'] = clone(argKeys.talk)▼
mappings[mainNsName] = mw.clone(argKeys.main)
▲ mappings['talk'] = mw.clone(argKeys.talk)
if nsid ~= 0 then -- Exclude main namespace.
local nsname =
local canonicalName =
mappings[nsname] = {nsname}
if canonicalName ~= nsname then
end
for _, alias in ipairs(ns.aliases) do
end
end
|