Jump to content

Module:BiologicalAgeBiomarkers: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 14: Line 14:
     -- Start of the wiki table
     -- Start of the wiki table
     local wikitable = '{| class="wikitable sortable"\n'
     local wikitable = '{| class="wikitable sortable"\n'
 
     local sep = ''
     -- Column headers: Biomarker and System
    wikitable = wikitable .. '| colspan="2" | Sort || '
    for _, study in pairs(studies) do
        wikitable = wikitable .. ' || '
end
wikitable = wikitable .. '\n'


     for i, row in ipairs(rows) do
     for i, row in ipairs(rows) do
         wikitable = wikitable .. '|-\n'
         wikitable = wikitable .. sep
         wikitable = wikitable .. '| colspan="2" | ' .. row.name .. '\n'
        sep = '|-\n'
         wikitable = wikitable .. '! colspan="2" | ' .. row.name .. '\n'
         for _, study in ipairs(studies) do
         for _, study in ipairs(studies) do
             local cellValue = study[row.key] or ""
             local cellValue = study[row.key] or ""
wikitable = wikitable .. '| ' .. p.template(frame, "VerticalText", cellValue) .. '\n'
wikitable = wikitable .. '! ' .. p.template(frame, "VerticalText", cellValue) .. '\n'
         end
         end
end
end
Cookies help us deliver our services. By using our services, you agree to our use of cookies.