בדוקי עריכות אוטומטית, אינטערפעיס רעדאקטארן, אינטערפעיס אדמיניסטראַטאָרן, סיסאפן, מייבאים, מעדכנים, מייבא, אספקלריה רעדאקטארן
46,358
רעדאגירונגען
אין תקציר עריכה צייכן: צוריקגעשטעלט |
אין תקציר עריכה |
||
| שורה 302: | שורה 302: | ||
valueArg = '[[File:' .. valueArg .. imgSuffix | valueArg = '[[File:' .. valueArg .. imgSuffix | ||
end | end | ||
elseif args.imgDesc~=nil and #args.imgDesc>0 and not mw.ustring.match(args.imgDesc, '%[%[ | elseif args.imgDesc~=nil and #args.imgDesc>0 and not mw.ustring.match(args.imgDesc, '%[%[קאטעגאריע:ערכים להחלפת תמונה בחופשית%]%]$') then | ||
if mw.ustring.match(valueArg, '^ *%[%[[Ff]ile:') or | if mw.ustring.match(valueArg, '^ *%[%[[Ff]ile:') or | ||
mw.ustring.match(valueArg, '^ *%[%[ | mw.ustring.match(valueArg, '^ *%[%[טעקע:') or | ||
mw.ustring.match(valueArg, '^ *%[%[קובץ:') or | mw.ustring.match(valueArg, '^ *%[%[קובץ:') or | ||
mw.ustring.match(valueArg, '^ *%[%[תמונה:') then | mw.ustring.match(valueArg, '^ *%[%[תמונה:') then | ||
| שורה 329: | שורה 329: | ||
function splitMaintainceCategory(value) | function splitMaintainceCategory(value) | ||
local maintainceCats = nil | local maintainceCats = nil | ||
local hasData = #(mw.ustring.gsub(value, '%[%[ | local hasData = #(mw.ustring.gsub(value, '%[%[קאטעגאריע:.-%]%]', ''))>0 | ||
if not hasData then | if not hasData then | ||
maintainceCats = value | maintainceCats = value | ||
| שורה 390: | שורה 390: | ||
wikidataOptions['filter'] = filterExists | wikidataOptions['filter'] = filterExists | ||
elseif templateParams[missingParam..'-ויקינתונים-סינון'] and mw.ustring.match(templateParams[missingParam..'-ויקינתונים-סינון'], 'filter[a-zA-Z]+') then | elseif templateParams[missingParam..'-ויקינתונים-סינון'] and mw.ustring.match(templateParams[missingParam..'-ויקינתונים-סינון'], 'filter[a-zA-Z]+') then | ||
local moduleTitle = mw.ustring.match( frame:getParent():getTitle(), ' | local moduleTitle = mw.ustring.match( frame:getParent():getTitle(), 'מוסטער:(.+)' ) | ||
moduleTitle = mw.ustring.format('יחידה:%s', moduleTitle) | moduleTitle = mw.ustring.format('יחידה:%s', moduleTitle) | ||
local filterFunc = mw.ustring.match(templateParams[missingParam..'-ויקינתונים-סינון'],'filter[a-zA-Z]+') | local filterFunc = mw.ustring.match(templateParams[missingParam..'-ויקינתונים-סינון'],'filter[a-zA-Z]+') | ||
רעדאגירונגען