Изменения
Перейти к навигации
Перейти к поиску
Строка 65:
Строка 65:
− +
Строка 420:
Строка 420:
− +
оформление
-- also no show/hide link, then we need a spacer on the right to achieve the left shift.
-- also no show/hide link, then we need a spacer on the right to achieve the left shift.
if args.state == 'plain' then spacerSide = 'right' end
if args.state == 'plain' then spacerSide = 'right' end
elseif args.navbar == 'plain' or (not args.name and mw.getCurrentFrame():getParent():getTitle():gsub('/sandbox$', '') == 'Шаблон:Навигационная таблица/Тестовый') then
elseif args.navbar == 'plain' or (not args.name and mw.getCurrentFrame():getParent():getTitle():gsub('/sandbox$', '') == 'Шаблон:Навигационная таблица') then
-- No navbar. Need a spacer on the left to balance out the width of the show/hide link.
-- No navbar. Need a spacer on the left to balance out the width of the show/hide link.
if args.state ~= 'plain' then spacerSide = 'left' end
if args.state ~= 'plain' then spacerSide = 'left' end
getArgs = require('Module:Arguments').getArgs
getArgs = require('Module:Arguments').getArgs
end
end
args = getArgs(frame, {wrappers = 'Шаблон:Навигационная таблица/Тестовый'})
args = getArgs(frame, {wrappers = 'Шаблон:Навигационная таблица'})
-- Read the arguments in the order they'll be output in, to make references number in the right order.
-- Read the arguments in the order they'll be output in, to make references number in the right order.