14,091
edits
m (1 revision) |
(In this edit I have made some changes) |
||
Line 6: | Line 6: | ||
local HtmlBuilder = require('Module:HtmlBuilder') | local HtmlBuilder = require('Module:HtmlBuilder') | ||
local | local Navbar = require('Module:Navbar') | ||
local args | local args | ||
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 | elseif args.navbar == 'plain' or args.navbar == 'off' or (not args.name 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 | ||
Line 58: | Line 58: | ||
if args.state == 'plain' then spacerSide = 'right' end | if args.state == 'plain' then spacerSide = 'right' end | ||
titleCell.wikitext(navbar{ | titleCell.wikitext(Navbar.navbar({ | ||
args.name, | args.name, | ||
mini = 1, | mini = 1, | ||
fontstyle = (args.basestyle or '') .. ';' .. (args.titlestyle or '') .. ';background:none transparent;border:none;' | fontstyle = (args.basestyle or '') .. ';' .. (args.titlestyle or '') .. ';background:none transparent;border:none;' | ||
}) | })) | ||
end | end | ||
Line 386: | Line 386: | ||
-- them false too. | -- them false too. | ||
local args = {} | local args = {} | ||
local | local parent_args = frame:getParent().args; | ||
-- Out of order parsing bug. | -- Out of order parsing bug. | ||
local temp; | local temp; | ||
temp = | temp = parent_args.title; | ||
temp = | temp = parent_args.above; | ||
for i = 1, 20 do | for i = 1, 20 do | ||
temp = | temp = parent_args["group" .. tostring(i)]; | ||
temp = | temp = parent_args["list" .. tostring(i)]; | ||
end | end | ||
temp = | temp = parent_args.below; | ||
for k, v in pairs( | for k, v in pairs(parent_args) do | ||
if v ~= '' then | if v ~= '' then | ||
args[k] = v | args[k] = v |