יחידה:תבנית מידע: הבדלים בין גרסאות בדף

מאין תקציר עריכה
מאין תקציר עריכה
שורה 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
return ('[[קטגוריה:שגיאות פרמטריות בתבנית ' .. mw.ustring.gsub(templateTitle, 'תבנית:', '', 1))..']][[קטגוריה:שגיאות פרמטריות]]'
local templateName = mw.ustring.gsub(templateTitle, 'תבנית:', '', 1)
table.insert(errors, '[[קטגוריה:שגיאות פרמטריות בתבנית '..templateName..']]')
table.insert(errors, '[[קטגוריה:שגיאות פרמטריות]]' )
else
else
return '[[קטגוריה:שגיאות פרמטריות מחוץ למרחב הערכים]]'
table.insert(errors, '[[קטגוריה:שגיאות פרמטריות מחוץ למרחב הערכים]]')
end
end
return table.concat(errors, '')
end
end