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

341 בייטן אראפגענומען ,  פֿאַר 2 יאָר
קיין רעדאגירונג באמערקונג
(כ'ווייס וואס כ'טו?..)
צייכן: צוריקגעשטעלט
אין תקציר עריכה
צייכן: צוריקגעשטעלט
שורה 120: שורה 120:
end
end
-- render the main image
-- render the main image
if args.image then
if self.args.image then
args.image1 = args.image
self.root:tag('tr')
end
:tag('td')
if args.caption then
:attr('colspan', 2)
args.caption1 = args.caption
:css('text-align','center')
end
:wikitext(self.args.image)
local imagenums = getArgNums('image')
if self.args.imageDesc and #self.args.imageDesc>0 then
for k, num in ipairs(imagenums) do
self.root:tag('tr')
local caption = args['caption' .. tostring(num)]
:tag('td')
local data = mw.html.create():wikitext(args['image' .. tostring(num)])
:attr('colspan', 2)
if caption then
:addClass('infobox-caption')
data
:addClass('borderless')
:tag('div')
:css('text-align','center')
:addClass('infobox-caption')
:wikitext(self.args.imageDesc)
-- @deprecated next; target .infobox-<name> .infobox-caption
:cssText(args.captionstyle)
:wikitext(caption)
end
end
addImageRow({
data = tostring(data),
-- @deprecated next; target .infobox-<name> .infobox-image
datastyle = args.imagestyle,
class = args.imageclass,
rowclass = args['imagerowclass' .. tostring(num)]
})
end
end
end
end