Module:Infobox road/sandbox: Difference between revisions

Content deleted Content added
Syncing sandbox code with main template (sync-template-sandbox.js)
Use display:table and margin:0 for browse tables
Line 338:
 
--BROWSE LINKS
 
-- display:table and margin:0 override Minerva styling
local browseTableStyles = 'width:100%; background:none; border-collapse:collapse; display:table; margin:0;'
 
local function browse(args)
Line 345 ⟶ 348:
local nextRoute = args.next_route
if previousRoute or nextRoute then
local box = mw.html.create('table'):cssText("width:100%; background:none; border-collapse:collapse; display:inline-table;"browseTableStyles)
local boxModule = require "Module:Road data/browse"
local primary = boxModule._browse(args)
Line 363 ⟶ 366:
return nil
else
local box = mw.html.create('table'):cssText("width:100%; background:none; border-collapse:collapse; display:inline-table;"browseTableStyles)
box:wikitext(extended)
return tostring(box)