Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Test

From Teriock
Revision as of 18:58, 31 March 2025 by Gpe (talk | contribs) (// via Wikitext Extension for VSCode)

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

local test2 = require('Module:Test2')
local es = require('Module:ESTable')

local p = {}

function p.test( frame )
    local outWords = es.getWords(frame, 'life', '*', 1)
    local out = ''
    for _, element in pairs(outWords) do
        for _, part in pairs(element) do
            for _, op in pairs(part) do
                -- Assuming op is a string, concatenate it to the output
                if type(op) == 'string' then
                    out = out .. op .. ' '
                elseif type(op) == 'table' then
                    -- Handle table case if needed
                    for _, subOp in pairs(op) do
                        out = out .. subOp .. ' '
                    end
                end
            end
        end
    end
    return out
end

function p.test2( frame )
    return es.getTable(frame, 'all', 'all', {1, 4, 2})
end

return p