יחידה:תבנית מידע: הבדלים בין גרסאות בדף
מאין תקציר עריכה |
מאין תקציר עריכה |
||
| שורה 252: | שורה 252: | ||
if ((#self.templateStructure)==0) and not self.args.subtemplate then | if ((#self.templateStructure)==0) and not self.args.subtemplate then | ||
local templateTitle = mw.getCurrentFrame():getParent():getTitle() | local templateTitle = mw.getCurrentFrame():getParent():getTitle() | ||
errors = {} | |||
table.insert(errors, '[[קטגוריה:שגיאות פרמטריות בתבנית מידע]]') | |||
if mw.title.getCurrentTitle().namespace==0 then | if mw.title.getCurrentTitle().namespace==0 then | ||
local templateName = mw.ustring.gsub(templateTitle, 'תבנית:', '', 1) | |||
table.insert(errors, '[[קטגוריה:שגיאות פרמטריות בתבנית '..templateName..']]') | |||
table.insert(errors, '[[קטגוריה:שגיאות פרמטריות]]' ) | |||
else | else | ||
table.insert(errors, '[[קטגוריה:שגיאות פרמטריות מחוץ למרחב הערכים]]') | |||
end | end | ||
return table.concat(errors, '') | |||
end | end | ||