Jump to content

Module:Infobox road/sections/sandbox

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Happy5214 (talk | contribs) at 09:30, 5 August 2013 (More testing). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local p = {}

function p.sections(frame)
    local pframe = frame:getParent()
    local config = frame.args -- the arguments passed BY the template, in the wikitext of the template itself
    local args = pframe.args -- the arguments passed TO the template, in the wikitext that transcludes the template
    
    local sectionModule = require "Module:Infobox road/sections"
    local section = sectionModule._section
    for number = 1, 4 do
        section(number, args)
    end
    
    local infoboxModule = require 'Module:Infobox'
    return infoboxModule.infobox{}
end

return p