Module:BiologicalAgeBiomarkers

Revision as of 00:08, 19 February 2024 by Strimo (talk | contribs) (Created page with "local p = {} p.createTable = function(frame) local numRows = 10 local numCols = 10 local wikitable = '{| class="wikitable"\n' -- Kopfzeile wikitable = wikitable .. '! ' for col = 1, numCols do wikitable = wikitable .. ' !! ' .. col end wikitable = wikitable .. '\n' -- Zeilen und Spalten for row = 1, numRows do wikitable = wikitable .. '|-\n' wikitable = wikitable .. '| ' .. row for col = 1, numCol...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Output the biological age biomarkers table.

Data is stored in Module:BiologicalAgeBiomarkers/Data


local p = {}

p.createTable = function(frame)
    local numRows = 10
    local numCols = 10
    local wikitable = '{| class="wikitable"\n'

    -- Kopfzeile
    wikitable = wikitable .. '! '
    for col = 1, numCols do
        wikitable = wikitable .. ' !! ' .. col
    end
    wikitable = wikitable .. '\n'

    -- Zeilen und Spalten
    for row = 1, numRows do
        wikitable = wikitable .. '|-\n'
        wikitable = wikitable .. '| ' .. row
        for col = 1, numCols do
            wikitable = wikitable .. ' || ' .. row * col
        end
        wikitable = wikitable .. '\n'
    end

    -- Tabelle schließen
    wikitable = wikitable .. '|}'
    return wikitable
end

return p