Module:Infobox road/sandbox: Difference between revisions

Content deleted Content added
Syncing sandbox code with main template (sync-template-sandbox.js)
use sandbox subtemplate
 
(10 intermediate revisions by one other user not shown)
Line 4:
local yesno = require('Module:Yesno')
local langModule = require('Module:Lang')
local routeModule = require("Module:Infobox road/route/sandbox")
local parserModule = require("Module:Road data/parser")
local parser = parserModule.parser
Line 345:
local nextRoute = args.next_route
if previousRoute or nextRoute then
local boxModule = require "Module:Road data/browse/sandbox"
local box = mw.html.create('table'):cssText("width:100%; background:none; border-collapse:collapse; display:inline-table;")
local boxModule = require "Module:Road data/browse"
local primary = boxModule._browse(args)
local tblModule = require "Module:Road data/browsetable"
box:wikitext(primary)
return tostringtblModule._browsetable(boxprimary)
end
end
Line 363 ⟶ 362:
return nil
else
local tblModule = require "Module:Road data/browsetable"
local box = mw.html.create('table'):cssText("width:100%; background:none; border-collapse:collapse; display:inline-table;")
-- Negative margin to counteract infobox border-spacing
box:wikitext(extended)
return tblModule._browsetable(extended, 'margin-top:-3px')
return tostring(box)
end
end