Изменения
Перейти к навигации
Перейти к поиску
Строка 25:
Строка 25:
+
+
Строка 71:
Строка 73:
− +
− +
Строка 120:
Строка 122:
− +
Строка 145:
Строка 147:
− +
Строка 184:
Строка 186:
− +
Строка 190:
Строка 192:
− +
− +
− +
+
Строка 260:
Строка 263:
− +
+
Строка 340:
Строка 344:
+
Строка 374:
Строка 379:
+
+
Строка 427:
Строка 434:
− +
импорт Модуль:Navbox/песочница
local abovestyle
local abovestyle
local belowstyle
local belowstyle
local imageleft
local imageleftstyle
local listnums = {}
local listnums = {}
-- 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')
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
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
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')
: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
: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
tbl
tbl
:addClass('navbox-subgroup')
:addClass('navbox-subgroup')
:css('background', 'transparent')
:cssText(bodystyle)
:cssText(bodystyle)
:cssText(args.style)
:cssText(args.style)
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['стиль_основного_заголовка']
_ = 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)]