2,873
edits
No edit summary |
(Remove size override) |
||
Line 471: | Line 471: | ||
local token = rowData.token | local token = rowData.token | ||
table.insert(resultPart, '\n|-') | table.insert(resultPart, '\n|-') | ||
local tokenImg = (token == nil and '?') or Icons.Icon({token.name, type='item' | local tokenImg = (token == nil and '?') or Icons.Icon({token.name, type='item', notext=true}) | ||
table.insert(resultPart, '\n|style="text-align:center"|' .. tokenImg) | table.insert(resultPart, '\n|style="text-align:center"|' .. tokenImg) | ||
table.insert(resultPart, '\n|' .. Icons.Icon({rowData.skill.name, type='skill'})) | table.insert(resultPart, '\n|' .. Icons.Icon({rowData.skill.name, type='skill'})) | ||
Line 659: | Line 659: | ||
local function appendSkillRows(resultTable, rowTable, relicCount, skillID) | local function appendSkillRows(resultTable, rowTable, relicCount, skillID) | ||
local skillName = Constants.getSkillName(skillID) | local skillName = Constants.getSkillName(skillID) | ||
table.insert(resultTable, '\n|-\n|rowspan="' .. relicCount .. '"| ' .. Icons.Icon({skillName, type='skill', notext=true | table.insert(resultTable, '\n|-\n|rowspan="' .. relicCount .. '"| ' .. Icons.Icon({skillName, type='skill', notext=true})) | ||
table.insert(resultTable, '\n|rowspan="' .. relicCount .. '"| ' .. Icons.Icon({skillName, type='skill', noicon=true})) | table.insert(resultTable, '\n|rowspan="' .. relicCount .. '"| ' .. Icons.Icon({skillName, type='skill', noicon=true})) | ||
table.insert(resultTable, table.concat(rowTable)) | table.insert(resultTable, table.concat(rowTable)) | ||
Line 712: | Line 712: | ||
for _, relic in ipairs(lesserRelics) do | for _, relic in ipairs(lesserRelics) do | ||
local tr = mw.html.create('tr') | local tr = mw.html.create('tr') | ||
tr:tag('td'):wikitext(Icons.Icon({relic.name, type='item | tr:tag('td'):wikitext(Icons.Icon({relic.name, type='item', notext=true})) | ||
tr:tag('td'):wikitext(Icons.Icon({relic.name, type='item', noicon=true})) | tr:tag('td'):wikitext(Icons.Icon({relic.name, type='item', noicon=true})) | ||
tr:tag('td'):wikitext(Modifiers.getModifiersText(relic.modifiers)) | tr:tag('td'):wikitext(Modifiers.getModifiersText(relic.modifiers)) |
edits