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

מ כותרת סטנדרטית (שם+שם בשפת המקור) אם התבנית לא מציינת במפורש כותרת מיוחדת
מאין תקציר עריכה
שורה 438: שורה 438:
if isSubTemplate then return name or '' end
if isSubTemplate then return name or '' end
local originName = templateArgs['שם בשפת המקור']
if not name or #name==0 then --fallback to title
if not name then --fallback to title
name = mw.title.getCurrentTitle().text
name = mw.title.getCurrentTitle().text
     name = mw.ustring.gsub(name, " *[(].*[)]","")
     name = mw.ustring.gsub(name, " *[(].*[)]","")
end
end
local originName = templateArgs['שם בשפת המקור']
if originName == '-' then  
if originName == '-' then  
originName = ''
originName = ''