Module:Credits: Difference between revisions

From Videogame Morgue File

mNo edit summary
mNo edit summary
Line 13: Line 13:
     end
     end


     local sOutputText = ""
     local sOutputText = '<div class="container-fluid"><dl class="row">'


     for iKey,sValue in pairs(tArgs.args) do  
     for iKey,sValue in pairs(tArgs.args) do  
       sOutputText = sOutputText  .. sValue  .. "♣"
       sOutputText = sOutputText  .. sValue  .. "♣"
     end
     end
    sOutputText = sOutputText .. "</dl></div>"


     return sOutputText  
     return sOutputText  

Revision as of 12:50, 14 May 2021

Documentation for this module may be created at Module:Credits/doc

local p = {};

p.hello = function( frame )
    local str = "Hello World!"
    return str
end

function p.credits( frame )
    local tArgs = frame:getParent()

    if not( tArgs.args[1] ) then
       tArgs = frame
    end

    local sOutputText = '<div class="container-fluid"><dl class="row">'

    for iKey,sValue in pairs(tArgs.args) do 
       sOutputText = sOutputText  .. sValue  .. "♣"
    end

    sOutputText = sOutputText .. "</dl></div>"

    return sOutputText 
end

return p