모듈:Navbox: 두 판 사이의 차이

둘러보기로 이동 검색으로 이동
22 바이트 추가됨 ,  2015년 1월 24일 (토)
편집 요약 없음
편집 요약 없음
편집 요약 없음
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 = HtmlBuilder.create()
     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
             .tag('/div', {unclosed = true})
             :wikitext('</div>') -- XXX: hack due to lack of unclosed support in mw.html.
                .done()
             :node(tbl)
             .node(tbl)
             :wikitext('<div>') -- XXX: hack due to lack of unclosed support in mw.html.
             .tag('div', {unclosed = true})
     else
     else
         res
         res
             .tag('table')
             :tag('table')
                 .attr('cellspacing', 0)
                 :addClass('navbox')
                .addClass('navbox')
                 :css('border-spacing', 0)
                 .css('border-spacing', 0)
                 :cssText(args.bodystyle)
                 .cssText(args.bodystyle)
                 :cssText(args.style)
                 .cssText(args.style)
                 :tag('tr')
                 .tag('tr')
                     :tag('td')
                     .tag('td')
                         :css('padding', '2px')
                         .css('padding', '2px')
                         :node(tbl)
                         .node(tbl)
     end
     end
   
   
익명 사용자

둘러보기 메뉴