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 08:57, 5 August 2013 (Let's try this out). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
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
    local data = {header1 = section(1, args), header2 = section(2, args), header3 = section(3, args), header4 = section(4, args)}
    
    local infoboxModule = require 'Module:Infobox'
    return infoboxModule.infobox(data)
end

return p