Module:Namespace detect/data: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
add a getArgKeys function, so that we can have multiple keys for each argument (helpful for localisation) and so that we only have to create that table once per page |
imported>Ravidreams சி en:Module:Namespace_detect/data இலிருந்து திருத்தம் இறக்குமதி செய்யப்பட்டன |
||
| (4 பயனர்களால் செய்யப்பட்ட 12 இடைப்பட்ட திருத்தங்கள் காட்டப்படவில்லை.) | |||
வரிசை 13:
end
-- This allows wikis to customise parameter names in the cfg table while
▲ -- Returns a table of parameters to query for each default parameter name.
▲ -- values can be added as a string, or as an array of strings.
'demopage'
for i, defaultKey in ipairs(defaultKeys) do
local cfgValueType = type(cfgValue)▼
argKeys[defaultKey] = {defaultKey}
if cfgValueType == 'string' then▼
addKey(t, cfgValue, defaultKey)▼
elseif cfgValueType == 'table' then▼
▲ end
for i, key in ipairs(cfgValue) do
addKey(t, key, defaultKey)
end
cfg[defaultKey] = nil -- Free the cfg value as we don't need it any more.▼
end
end
வரி 53 ⟶ 57:
-- }
--]]
local subjectNamespaces = mw.site.subjectNamespaces▼
local mappings = {}
mainNsName = mw.ustring.lower(mainNsName)
mappings[talk] = {talk}▼
mappings[mainNsName] = mw.clone(argKeys.main)
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
வரி 77 ⟶ 79:
return {
argKeys =
cfg = cfg,
mappings = getParamMappings()
| |||