Module:Infobox road/sandbox: Difference between revisions

Content deleted Content added
No edit summary
Tag: Reverted
use sandbox subtemplate
 
(3 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 primary = boxModule._browse(args)
 
local tblModule = require "Module:Road data/browsetable"
return tblModule._browsetable(primary)
Line 359 ⟶ 358:
 
local function extended(args)
local extended = args.browse
if args.nobrowse or extended == nil then
return nil
Line 365 ⟶ 364:
local tblModule = require "Module:Road data/browsetable"
-- Negative margin to counteract infobox border-spacing
return tblModule._browsetable(extended, nil, 'margin-top:-3px')
end
end