אונטערשייד צווישן ווערסיעס פון "יחידה:תבנית מידע"

אפדעיט
(אפדעיט)
(אפדעיט)
שורה 291: שורה 291:
return nil
return nil
else
else
if not mw.ustring.match(valueArg, '^ *%[%[') and
-- wrap with wikisyntax if only filename provided. avoid that in case of tags or wikisyntaxed files
not mw.ustring.match(valueArg, '^ *%[%[') and  
if not mw.ustring.match(valueArg, '%[%[') and
  not  mw.ustring.match(valueArg, '^ *<') then
    not  mw.ustring.match(valueArg, '<') then
  local imgSuffix = '|'..args.width .. 'px'
  local imgSuffix = '|'..args.width .. 'px'
  if args.imgDesc~=nil and #args.imgDesc>0 then
  if args.imgDesc~=nil and #args.imgDesc>0 then
שורה 587: שורה 587:
args=args
args=args
}
}
 
args.imageDesc = templateParams['כיתוב']
args.imageDesc = templateParams['כיתוב']
if templateParams['תמונה ללא שאיבה אוטומטית'] ==  'כן' then
if templateParams['תמונה ללא שאיבה אוטומטית'] ==  'כן' then