Module:Infobox road/sections/sandbox

< Module:Infobox road‎ | sections
Revision as of 10:30, 5 August 2013 by imported>Happy5214 (More testing)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:Infobox road/sections/sandbox/doc

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