Module:AUAssembly: Difference between revisions

From EarthMC
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 4: Line 4:


function p.table( frame )
function p.table( frame )
    text = "{|"
     table.sort(players)
     table.sort(players)
     for i, v in ipairs(players) do
     for i, v in ipairs(players) do
         text = text..v
         text = text.."\n| "..v
     end
     end
     return text
     return text

Revision as of 18:26, 7 October 2023

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

local p = {} --p stands for package
local players = {"iUpgrade","Dools2"}
local text = ""

function p.table( frame )
    text = "{|"
    table.sort(players)
    for i, v in ipairs(players) do
        text = text.."\n| "..v
    end
    return text
end

return p