2,875
edits
No edit summary |
No edit summary |
||
Line 1,172: | Line 1,172: | ||
-- Header rows | -- Header rows | ||
local headerRow1 = tableRoot:tag('tr'):addClass('headerRow-0') | local headerRow1 = tableRoot:tag('tr'):addClass('headerRow-0') | ||
headerRow1:tag('th'):attr('rowspan', 2):wikitext('Constellation') | headerRow1:tag('th'):attr('rowspan', 2) | ||
headerRow1:tag('th'):attr('rowspan', 2):wikitext(Icons.Icon({ "Astrology", type='skill', notext='true' }) .. ' Level') | :attr('colspan', 2) | ||
headerRow1:tag('th'):attr('rowspan', 2):wikitext('XP') | :wikitext('Constellation') | ||
headerRow1:tag('th'):attr('rowspan', 2):wikitext('Skills') | headerRow1:tag('th'):attr('rowspan', 2) | ||
:wikitext(Icons.Icon({ "Astrology", type='skill', notext='true' }) .. '<br>Level') | |||
headerRow1:tag('th'):attr('rowspan', 2) | |||
:wikitext('XP') | |||
headerRow1:tag('th'):attr('rowspan', 2) | |||
:wikitext('Skills') | |||
local headerRow2 = tableRoot:tag('tr'):addClass('headerRow-1') | local headerRow2 = tableRoot:tag('tr'):addClass('headerRow-1') | ||
Line 1,205: | Line 1,210: | ||
local row = tableRoot:tag('tr') | local row = tableRoot:tag('tr') | ||
if rowIdx == 1 then | if rowIdx == 1 then | ||
row:tag('td'):attr('rowspan', maxRows):wikitext(Icons.Icon({ name, type='constellation', notext=true })) | row:tag('td'):attr('rowspan', maxRows) | ||
row:tag('td'):attr('rowspan', maxRows):wikitext(cons.level) | :wikitext(Icons.Icon({name, type='constellation', size=50, notext=true})) | ||
row:tag('td'):attr('rowspan', maxRows):wikitext(cons.baseExperience) | :css('text-align', 'center') | ||
row:tag('td'):attr('rowspan', maxRows):wikitext(table.concat(skillIconArray, '<br/>')) | row:tag('td'):attr('rowspan', maxRows) | ||
:wikitext(name) | |||
row:tag('td'):attr('rowspan', maxRows) | |||
:wikitext(cons.level) | |||
:css('text-align', 'center') | |||
row:tag('td'):attr('rowspan', maxRows) | |||
:wikitext(cons.baseExperience) | |||
:css('text-align', 'right') | |||
row:tag('td'):attr('rowspan', maxRows) | |||
:wikitext(table.concat(skillIconArray, '<br/>')) | |||
:css('text-wrap', 'nowrap') | |||
end | end | ||
edits