Module:Navbox: Difference between revisions

1 byte removed ,  10 years ago
use _navbar (copied from sandbox)
m>Jackmcbarn
(apparently none of the test cases test tracking categories. fix a bunch of script errors)
m>Jackmcbarn
(use _navbar (copied from sandbox))
Line 6: Line 6:
   
   
local HtmlBuilder = require('Module:HtmlBuilder')
local HtmlBuilder = require('Module:HtmlBuilder')
local Navbar = require('Module:Navbar')
local navbar = require('Module:Navbar')._navbar


local args
local args
Line 58: Line 58:
         if args.state == 'plain' then spacerSide = 'right' end
         if args.state == 'plain' then spacerSide = 'right' end


         titleCell.wikitext(Navbar.navbar({  
         titleCell.wikitext(navbar{  
             args.name,  
             args.name,  
             mini = 1,  
             mini = 1,  
             fontstyle = (args.basestyle or '') .. ';' .. (args.titlestyle or '') ..  ';background:none transparent;border:none;'
             fontstyle = (args.basestyle or '') .. ';' .. (args.titlestyle or '') ..  ';background:none transparent;border:none;'
         }))
         })
     end
     end
      
      
Anonymous user