Permanently protected module
From Wikipedia, the free encyclopedia


local infobox = require ('Module:Infobox').infobox

local getArgs = require ('Module:Arguments').getArgs



local p = {}



function p.main( frame )

    local args = getArgs (frame)



    InfoboxArgs = {}

    InfoboxArgs"subbox" = "yes"



    local a = 1

    local IsEmpty = true

    local KeepCheckingForArgs = true

    while KeepCheckingForArgs == true do

        local thisBranch = "branch" .. a

        local thisVersion = "version" .. a

        local thisDate = "date" .. a

        local CurLabel = "label" .. a

        local CurData = "data" .. a



        if argsthisBranch and argsthisVersion then

            InfoboxArgsCurLabel = argsthisBranch

            InfoboxArgsCurData = argsthisVersion

            if argsthisDate then InfoboxArgsCurData = InfoboxArgsCurData .. " / " .. argsthisDate end

        else

            KeepCheckingForArgs = false

            if a > 1 then IsEmpty = false end

        end

        a = a + 1

    end



    if IsEmpty == false then

        return infobox(InfoboxArgs)

    else

        return nil

    end

end



return p
Permanently protected module
From Wikipedia, the free encyclopedia


local infobox = require ('Module:Infobox').infobox

local getArgs = require ('Module:Arguments').getArgs



local p = {}



function p.main( frame )

    local args = getArgs (frame)



    InfoboxArgs = {}

    InfoboxArgs"subbox" = "yes"



    local a = 1

    local IsEmpty = true

    local KeepCheckingForArgs = true

    while KeepCheckingForArgs == true do

        local thisBranch = "branch" .. a

        local thisVersion = "version" .. a

        local thisDate = "date" .. a

        local CurLabel = "label" .. a

        local CurData = "data" .. a



        if argsthisBranch and argsthisVersion then

            InfoboxArgsCurLabel = argsthisBranch

            InfoboxArgsCurData = argsthisVersion

            if argsthisDate then InfoboxArgsCurData = InfoboxArgsCurData .. " / " .. argsthisDate end

        else

            KeepCheckingForArgs = false

            if a > 1 then IsEmpty = false end

        end

        a = a + 1

    end



    if IsEmpty == false then

        return infobox(InfoboxArgs)

    else

        return nil

    end

end



return p

Videos

Youtube | Vimeo | Bing

Websites

Google | Yahoo | Bing

Encyclopedia

Google | Yahoo | Bing

Facebook