Module:T-Event: Difference between revisions

// via Wikitext Extension for VSCode
// via Wikitext Extension for VSCode
Tag: Reverted
Line 90: Line 90:
         "render",
         "render",
         function()
         function()
             return template.render(frame)
             -- Render using Blueprint
            local out = template.render(frame)
            -- Debug: list any numeric keys in raw args
            local rawArgs = frame:getParent().args or {}
            local nums = {}
            for k, _ in pairs(rawArgs) do
                if type(k) == "number" or (type(k) == "string" and tonumber(k) ~= nil) then
                    table.insert(nums, tostring(k))
                end
            end
            if #nums > 0 then
                out = out .. "<!-- T-Event numeric keys: " .. table.concat(nums, ",") .. " -->"
            end
            return out
         end,
         end,
         ErrorHandling.getMessage("TEMPLATE_RENDER_ERROR"),
         ErrorHandling.getMessage("TEMPLATE_RENDER_ERROR"),