Module:Navbox: Difference between revisions
Content added Content deleted
m (1 revision: Navbox) |
(Undid revision 654151214, The new Show/Hide doesn't work very well on Navboxes with blue backgrounds) |
||
Line 51: | Line 51: | ||
elseif args.navbar == 'plain' or (not args.name and mw.getCurrentFrame():getParent():getTitle():gsub('/sandbox$', '') == 'Template:Navbox') then |
elseif args.navbar == 'plain' or (not args.name and mw.getCurrentFrame():getParent():getTitle():gsub('/sandbox$', '') == 'Template:Navbox') 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' |
if args.state ~= 'plain' then spacerSide = 'left' end |
||
else |
else |
||
-- Will render navbar (or error message). If there's no show/hide link, need a spacer on the right |
-- Will render navbar (or error message). If there's no show/hide link, need a spacer on the right |