Last edited 3 months ago
by Max Mustermann

SpaltenAusgabe

No categories assignedEdit

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

-- Modul:SpaltenAusgabe
local p = {}

function p.anzeigen(frame)
    local args = frame.args
    local html = '{| class="wikitable"\n|-'

    -- Spaltenüberschriften
    local i = 1
    while args['h' .. i] do
        html = html .. '\n! ' .. args['h' .. i]
        i = i + 1
    end

    html = html .. '\n|-'

    -- Werte
    for j = 1, i - 1 do
        html = html .. '\n| ' .. (args[j] or '')
    end

    html = html .. '\n|}'
    return html
end

return p