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

27 바이트 추가됨 ,  2015년 9월 27일 (일)
편집 요약 없음
편집 요약 없음
편집 요약 없음
60번째 줄: 60번째 줄:
             args['이름'],
             args['이름'],
             mini = 1,
             mini = 1,
             fontstyle = (args.basestyle or '') .. ';' .. (args['제목모양'] or args.titlestyle or '') ..  ';background:none transparent;border:none;'
             fontstyle = (args['기반모양'] or '') .. ';' .. (args['제목모양'] or args.titlestyle or '') ..  ';background:none transparent;border:none;'
         })
         })
     end
     end
88번째 줄: 88번째 줄:
                 :addClass('navbox-group')
                 :addClass('navbox-group')
                 :addClass(args.titlegroupclass)
                 :addClass(args.titlegroupclass)
                 :cssText(args.basestyle)
                 :cssText(args['기반모양'])
                 :cssText(args.groupstyle or args['묶음모양'])
                 :cssText(args['묶음모양'])
                 :cssText(args.titlegroupstyle)
                 :cssText(args.titlegroupstyle)
                 :wikitext(args.titlegroup)
                 :wikitext(args.titlegroup)
227번째 줄: 227번째 줄:
     listCell
     listCell
         :css('padding', '0px')
         :css('padding', '0px')
         :cssText(args.liststyle)
         :cssText(args['내용모양'])
         :cssText(rowstyle)
         :cssText(rowstyle)
         :cssText(args['list' .. listnum .. 'style'])
         :cssText(args['내용' .. listnum .. 'style'])
         :addClass('navbox-list')
         :addClass('navbox-list')
         :addClass('navbox-' .. evenOdd)
         :addClass('navbox-' .. evenOdd)
257번째 줄: 257번째 줄:


local function needsHorizontalLists()
local function needsHorizontalLists()
     if border == 'child' or border == 'subgroup'  or args.tracking == 'no' then return false end
     if border == '자식' or border == '중첩'  or args.tracking == 'no' then return false end


     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'}
270번째 줄: 270번째 줄:


local function hasBackgroundColors()
local function hasBackgroundColors()
     return mw.ustring.match(args.titlestyle or '','background') or mw.ustring.match(args.groupstyle or '','background') or mw.ustring.match(args.basestyle or '','background')
     return mw.ustring.match(args['제목모양'] or '','background') or mw.ustring.match(args['묶음모양'] or '','background') or mw.ustring.match(args['기반모양'] or '','background')
end
end


288번째 줄: 288번째 줄:
local function getTrackingCategories()
local function getTrackingCategories()
     local cats = {}
     local cats = {}
     if needsHorizontalLists() then table.insert(cats, 'Navigational boxes without horizontal lists') end
     if needsHorizontalLists() then table.insert(cats, '가로 목록을 지원하지 않는 둘러보기 틀') end
     if hasBackgroundColors() then table.insert(cats, 'Navboxes using background colours') end
     if hasBackgroundColors() then table.insert(cats, '배경색을 사용하는 둘러보기 틀') end
     if isIllegible() then table.insert(cats, 'Potentially illegible navboxes') end
     if isIllegible() then table.insert(cats, '읽기 어려울 수 있는 둘러보기 틀') end
     return cats
     return cats
end
end
323번째 줄: 323번째 줄:
         tbl
         tbl
             :addClass('navbox-subgroup')
             :addClass('navbox-subgroup')
             :cssText(args.bodystyle)
             :cssText(args['내용모양'])
             :cssText(args.style)
             :cssText(args['모양'])
     else -- regular navobx - bodystyle and style will be applied to the wrapper table
     else -- regular navobx - bodystyle and style will be applied to the wrapper table
         tbl
         tbl
374번째 줄: 374번째 줄:
                 :addClass('navbox')
                 :addClass('navbox')
                 :css('border-spacing', 0)
                 :css('border-spacing', 0)
                 :cssText(args.bodystyle or args['내용모양'])
                 :cssText(args['내용모양'])
                 :cssText(args.style or args['모양'])
                 :cssText(args['모양'])
                 :tag('tr')
                 :tag('tr')
                     :tag('td')
                     :tag('td')
익명 사용자