4,951
edits
(getTreesTable: Sort rows by level requirement) |
Falterfire (talk | contribs) (Added ID to astrology table) |
||
Line 699: | Line 699: | ||
local rowSpan = (maxRows > 1 and 'rowspan="' .. maxRows .. '"') or '' | local rowSpan = (maxRows > 1 and 'rowspan="' .. maxRows .. '"') or '' | ||
table.insert(resultPart, '\n|-') | table.insert(resultPart, '\n|-') | ||
table.insert(resultPart, '\n|' .. rowSpan .. ' data-sort-value="' .. name .. '"| ' . | table.insert(resultPart, '\n|' .. rowSpan .. ' data-sort-value="' .. name .. '" id="'..name..'"| ') | ||
table.insert(resultPart, Icons.Icon({name, type='constellation', size='50', notext=true})) | |||
table.insert(resultPart, '\n|' .. rowSpan .. '| ' .. Icons.getExpansionIcon(cons.id) .. name) | table.insert(resultPart, '\n|' .. rowSpan .. '| ' .. Icons.getExpansionIcon(cons.id) .. name) | ||
table.insert(resultPart, '\n|' .. rowSpan .. ' style="text-align:right"| ' .. cons.level) | table.insert(resultPart, '\n|' .. rowSpan .. ' style="text-align:right"| ' .. cons.level) |