Module:Navbox: Difference between revisions

From Test Wiki
No change in size ,  24 May 2014
check is inverted
(it's possible for Module:Navbar to autodetect the name sometimes. also, remove check that can never be true)
(check is inverted)
Line 50: Line 50:
         -- 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() ~= 'Template:Navbox' and (border == 'subgroup' or border == 'child' or border == 'none')) then
     elseif args.navbar == 'plain' or (not args.name and mw.getCurrentFrame():getParent():getTitle() == 'Template:Navbox' and (border == 'subgroup' or border == 'child' or border == 'none')) 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
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.