پودمان:Infobox road/sections/sandbox: تفاوت بین نسخه‌ها

از پژوهشکده امر به معروف
پرش به: ناوبری، جستجو
(More testing)
 
جز (۱ نسخه واردشده)
 
(بدون تفاوت)

نسخهٔ کنونی تا ‏۱۳ اسفند ۱۳۹۴، ساعت ۱۵:۵۵

توضیحات این پودمان می‌تواند در پودمان:Infobox road/sections/sandbox/توضیحات قرار گیرد.

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