Module:Check for unknown parameters:修订间差异

删除的内容 添加的内容
enwiki>Johnuniq
implement edit request from User:Zackmann08 to remove 'coord' from default in mapframe_params table per talk permalink
 
CaelLab-import​(留言 | 贡献)
导入自中文维基百科
 
第6行:
 
local p = {}
 
local pushpin_map_params = {
'coordinates',
'pushpin_caption',
'pushpin_relief',
'pushpin_label',
'pushpin_label_position',
'pushpin_label_size',
'pushpin_map',
'pushpin_mark',
'pushpin_mark_size',
'pushpin_alt',
'pushpin_background',
'pushpin_map_size'
}
 
local mapframe_params = {
'coord',
'coordinates',
'id',
第64行 ⟶ 第50行:
'mapframe-stroke-width',
'mapframe-switcher',
'mapframe-type',
'mapframe-width',
'mapframe-wikidata',
第109行 ⟶ 第94行:
-- create the list of known args, regular expressions, and the return string
local knownargs = {}
 
if isnotempty(args['mapframe_args']) then
for _, v in ipairs(mapframe_params) do
knownargs[v] = 1
end
end
 
if isnotempty(args['pushpin_map_args']) then
for _, v in ipairs(pushpin_map_params) do
knownargs[v] = 1
end
end
 
local regexps = {}
for k, v in pairs(args) do
第131行 ⟶ 第110行:
end
end
 
-- loop over the parent args, and make sure they are on the list
local ignoreblank = isnotempty(args['ignoreblank'])