Module:BiologicalAgeBiomarkers: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 16: Line 16:


     -- Column headers: Biomarker and System
     -- Column headers: Biomarker and System
     wikitable = wikitable .. ' System !! Biomarker'
     wikitable = wikitable .. ' System !! Biomarker !! Count '
     for _, study in pairs(studies) do
     for _, study in pairs(studies) do
         wikitable = wikitable .. ' !! ' .. p.template(frame, "pmid", study.pmid)
         wikitable = wikitable .. ' !! ' .. p.template(frame, "pmid", study.pmid)
Line 24: Line 24:
     for i, row in ipairs(rows) do
     for i, row in ipairs(rows) do
         wikitable = wikitable .. '|-\n'
         wikitable = wikitable .. '|-\n'
         wikitable = wikitable .. '| ' .. row.name .. ' || ' .. ''
         wikitable = wikitable .. '! ' .. row.name .. ' !! ' .. ''
         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)
wikitable = wikitable .. ' !! ' .. p.template(frame, "VerticalText", cellValue)
         end
         end
wikitable = wikitable .. '\n'
wikitable = wikitable .. '\n'