편집 요약 없음
편집 요약 없음 |
편집 요약 없음 |
||
347번째 줄: | 347번째 줄: | ||
-- render the appropriate wrapper around the navbox, depending on the border param | -- render the appropriate wrapper around the navbox, depending on the border param | ||
local res = | local res = mw.html.create() | ||
if border == 'none' then | if border == 'none' then | ||
res.node(tbl) | res.node(tbl) | ||
355번째 줄: | 355번째 줄: | ||
-- padding being applied, and at the end add a <div> to balance out the parent's </div> | -- padding being applied, and at the end add a <div> to balance out the parent's </div> | ||
res | res | ||
:wikitext('</div>') -- XXX: hack due to lack of unclosed support in mw.html. | |||
:node(tbl) | |||
:wikitext('<div>') -- XXX: hack due to lack of unclosed support in mw.html. | |||
else | else | ||
res | res | ||
:tag('table') | |||
:addClass('navbox') | |||
:css('border-spacing', 0) | |||
:cssText(args.bodystyle) | |||
:cssText(args.style) | |||
:tag('tr') | |||
:tag('td') | |||
:css('padding', '2px') | |||
:node(tbl) | |||
end | end | ||