Изменения

Перейти к навигации Перейти к поиску
+ "navbox-allow-mobile" for simple navboxes without styles and less than 6 groups
Строка 469: Строка 469:  
             :wikitext('<div>') -- XXX: hack due to lack of unclosed support in mw.html.
 
             :wikitext('<div>') -- XXX: hack due to lack of unclosed support in mw.html.
 
     else
 
     else
         res
+
         local tableTag = res:tag('table')
            :tag('table')
+
        tableTag:addClass('navbox')
                :addClass('navbox')
   
                 :css('border-spacing', 0)
 
                 :css('border-spacing', 0)
 
                 :cssText(bodystyle)
 
                 :cssText(bodystyle)
Строка 479: Строка 478:  
                         :css('padding', '2px')
 
                         :css('padding', '2px')
 
                         :node(tbl)
 
                         :node(tbl)
 +
       
 +
        if ( not titlestyle and not groupstyle and not bodystyle and not basestyle and not style
 +
        and not liststyle and not oddstyle and not evenstyle and not abovestyle and not belowstyle
 +
        and not args["group6"] and not args["group7"] and not args["group8"] and not args["group9"] ) then
 +
        tableTag:addClass( 'navbox-allow-mobile' );
 +
        end
 
     end
 
     end
  
Анонимный участник

Реклама:

Навигация