편집 요약 없음
편집 요약 없음 |
편집 요약 없음 |
||
49번째 줄: | 49번째 줄: | ||
-- 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['상태'] == 'plain' then spacerSide = 'right' end | if args['상태'] == 'plain' then spacerSide = 'right' end | ||
elseif args.navbar == 'plain' or (not args | elseif args.navbar == 'plain' or (not args['이름'] 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['상태'] ~= 'plain' then spacerSide = 'left' end | if args['상태'] ~= 'plain' then spacerSide = 'left' end | ||
58번째 줄: | 58번째 줄: | ||
titleCell:wikitext(navbar{ | titleCell:wikitext(navbar{ | ||
args | args['이름'], | ||
mini = 1, | mini = 1, | ||
fontstyle = (args.basestyle or '') .. ';' .. (args['제목모양'] or args.titlestyle or '') .. ';background:none transparent;border:none;' | fontstyle = (args.basestyle or '') .. ';' .. (args['제목모양'] or args.titlestyle or '') .. ';background:none transparent;border:none;' | ||
261번째 줄: | 261번째 줄: | ||
local listClasses = {'plainlist', 'hlist', 'hlist hnum', 'hlist hwrap', 'hlist vcard', 'vcard hlist', 'hlist vevent'} | local listClasses = {'plainlist', 'hlist', 'hlist hnum', 'hlist hwrap', 'hlist vcard', 'vcard hlist', 'hlist vevent'} | ||
for i, cls in ipairs(listClasses) do | for i, cls in ipairs(listClasses) do | ||
if args.listclass == cls or args | if args.listclass == cls or args['내용속성'] == cls then | ||
return false | return false | ||
end | end | ||
311번째 줄: | 311번째 줄: | ||
local tbl = mw.html.create('table') | local tbl = mw.html.create('table') | ||
:addClass('nowraplinks') | :addClass('nowraplinks') | ||
:addClass(args | :addClass(args['내용속성']) | ||
if args.title and (args['상태'] ~= 'plain' and args['상태'] ~= 'off') then | if args.title and (args['상태'] ~= 'plain' and args['상태'] ~= 'off') then |