Изменения

Перейти к навигации Перейти к поиску
Строка 25: Строка 25:  
local abovestyle
 
local abovestyle
 
local belowstyle
 
local belowstyle
 +
local imageleft
 +
local imageleftstyle
    
local listnums = {}
 
local listnums = {}
Строка 71: Строка 73:  
         -- to balance out the width of the navbar.
 
         -- to balance out the width of the navbar.
 
         if args.state == 'plain' then spacerSide = 'right' end
 
         if args.state == 'plain' then spacerSide = 'right' end
 
+
       
--- Мagnifying glass creation
+
--- Мagnifying glass creation
 
         titleCell
 
         titleCell
 
         :tag('span')
 
         :tag('span')
Строка 120: Строка 122:     
     local titleColspan = 2
 
     local titleColspan = 2
     if args.imageleft then titleColspan = titleColspan + 1 end
+
     if imageleft then titleColspan = titleColspan + 1 end
 
     if image then titleColspan = titleColspan + 1 end
 
     if image then titleColspan = titleColspan + 1 end
 
     if args.titlegroup then titleColspan = titleColspan - 1 end
 
     if args.titlegroup then titleColspan = titleColspan - 1 end
Строка 145: Строка 147:  
local function getAboveBelowColspan()
 
local function getAboveBelowColspan()
 
     local ret = 2
 
     local ret = 2
     if args.imageleft then ret = ret + 1 end
+
     if imageleft then ret = ret + 1 end
 
     if image then ret = ret + 1 end
 
     if image then ret = ret + 1 end
 
     return ret
 
     return ret
Строка 184: Строка 186:  
     local row = addTableRow(tbl)
 
     local row = addTableRow(tbl)
   −
     if listnum == 1 and args.imageleft then
+
     if listnum == 1 and imageleft then
 
         row
 
         row
 
             :tag('td')
 
             :tag('td')
Строка 190: Строка 192:  
                 :addClass(args.imageclass)
 
                 :addClass(args.imageclass)
 
                 :css('width', '0%')
 
                 :css('width', '0%')
                 :css('padding', '0px 2px 0px 0px')
+
                 :css('padding', '0px 7px 0px 0px')
                 :cssText(args.imageleftstyle)
+
                 :cssText(imageleftstyle)
 
                 :attr('rowspan', 2 * #listnums - 1)
 
                 :attr('rowspan', 2 * #listnums - 1)
 
                 :tag('div')
 
                 :tag('div')
                     :wikitext(addNewline(args.imageleft))
+
                :css('float', 'left')
 +
                     :wikitext(addNewline(imageleft))
 
     end
 
     end
   Строка 260: Строка 263:  
                 :addClass(args.imageclass)
 
                 :addClass(args.imageclass)
 
                 :css('width', '0%')
 
                 :css('width', '0%')
                 :css('padding', '0px 0px 0px 2px')
+
                 :css('padding', '0px 0px 0px 7px')
 
                 :cssText(args.imagestyle)
 
                 :cssText(args.imagestyle)
 
                 :attr('rowspan', 2 * #listnums - 1)
 
                 :attr('rowspan', 2 * #listnums - 1)
 
                 :tag('div')
 
                 :tag('div')
 +
                :css('float', 'right')
 
                     :wikitext(addNewline(image))
 
                     :wikitext(addNewline(image))
 
     end
 
     end
Строка 340: Строка 344:  
         tbl
 
         tbl
 
             :addClass('navbox-subgroup')
 
             :addClass('navbox-subgroup')
 +
            :css('background', 'transparent')
 
             :cssText(bodystyle)
 
             :cssText(bodystyle)
 
             :cssText(args.style)
 
             :cssText(args.style)
Строка 374: Строка 379:  
above = args.above or args['вверху']
 
above = args.above or args['вверху']
 
image = args.image or args['изображение']
 
image = args.image or args['изображение']
 +
imageleft = args.imageleft or args['изображение2']
 +
imageleftstyle = args.imageleftstyle or args.imagestyle2
 
below = args.below or args['внизу']
 
below = args.below or args['внизу']
 
titlestyle = args.titlestyle or args['стиль_основного_заголовка']
 
titlestyle = args.titlestyle or args['стиль_основного_заголовка']
Строка 427: Строка 434:  
     _ = maintitle
 
     _ = maintitle
 
     _ = above
 
     _ = above
     for i = 1, 20 do
+
     for i = 1, 23 do
 
         _ = args["group" .. tostring(i)] and args["заголовок" .. tostring(i)]
 
         _ = args["group" .. tostring(i)] and args["заголовок" .. tostring(i)]
 
         _ = args["list" .. tostring(i)] and args["список" .. tostring(i)]
 
         _ = args["list" .. tostring(i)] and args["список" .. tostring(i)]
Анонимный участник

Реклама:

Навигация