Module:DYK list

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search

local p = {}

function p.main(frame)
    local args = frame:getParent().args
    local output = {}

    for i = 1, math.huge do
        local val = args[i]
        if not val then
            break
        end

        val = mw.text.trim(val)
        if val ~= "" then
            table.insert(output, "*... " .. val)
        end
    end

    return table.concat(output, "\n")
end

return p