Module:Credits: Difference between revisions

From Videogame Morgue File

No edit summary
mNo edit summary
Line 1: Line 1:
local p = {};
local p = {};


p.credits = function( frame )
p.hello = function( frame )
     local str = "Hello World!"
     local str = "Hello World!"
     return str
     return str
end
function p.credits( frame )
    local tArgs = frame:getParent()
    if not( tArgs.args[1] ) then
      tArgs = frame
    end
    local sOutputText = ""
    for iKey,sValue in pairs(tArgs.args) do
      sOutputText = sOutputText  .. sValue  .. "♣"
    end
    return sOutputText
end
end


return p
return p

Revision as of 11:43, 14 Mayıs 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 = ""

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

    return sOutputText 
end

return p