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

מ שחזור לגרסה 20279476 מאת ערן
מאין תקציר עריכה
שורה 31: שורה 31:
local function renderTitle()
local function renderTitle()
-- renders the title
-- renders the title
return root
local  titleCaption = root
         :tag('caption')
         :tag('caption')
             :addClass(args.titleclass)
             :addClass(args.titleclass)
             :cssText(args.titlestyle)
             :cssText(args.titlestyle)
             :wikitext(args.title)
             :wikitext(args.title)
if args.subtitle and  args.subtitle~=nil and #(args.subtitle)>0 then
local row = root:tag('tr')
:tag('th')
:attr('colspan', 2)
:css('text-align','center')
:cssText(args.subtitlestyle)
:addClass(args.subtitleclass)
:wikitext(args.subtitle)
end
return titleCaption
end
end


שורה 312: שורה 323:
args.titlestyle = frame.args['כותרת תבנית-עיצוב']
args.titlestyle = frame.args['כותרת תבנית-עיצוב']
args.titleclass = frame.args['כותרת תבנית-מחלקה']
args.titleclass = frame.args['כותרת תבנית-מחלקה']
args.subtitle = frame.args['תת כותרת תבנית']
args.subtitlestyle = frame.args['תת כותרת תבנית-עיצוב']
args.subtitleclass = frame.args['תת כותרת תבנית-מחלקה']
args.rightImage = getValueOrWikidataImage(frame.args['תמונה ימין'], frame.args['תמונה ימין-ויקינתונים'], '100')
args.rightImage = getValueOrWikidataImage(frame.args['תמונה ימין'], frame.args['תמונה ימין-ויקינתונים'], '100')
args.rightImageDesc = frame.args['כיתוב ימין']
args.rightImageDesc = frame.args['כיתוב ימין']