17,101
edits
(getCrateContents: Initial implementation) |
(getRaidModifierList: Initial implementation) |
||
Line 77: | Line 77: | ||
resultTable:node(tr) | resultTable:node(tr) | ||
end | end | ||
end | |||
return tostring(resultTable) | |||
end | |||
function p.getRaidModifierList() | |||
local resultTable = mw.html.create('table') | |||
resultTable:addClass('wikitable'):addClass('stickyHeader'):addClass('sortable') | |||
resultTable:tag('tr'):addClass('headerRow-0') | |||
:tag('th'):wikitext('Modifier'):done() | |||
for i, modDet in ipairs(RaidData.PossibleModifiers) do | |||
local modVal = {1, 5} | |||
local mult = modDet.multiplier | |||
if mult ~= nil then | |||
modVal = {modVal[1] * mult, modVal[2] * mult} | |||
end | |||
resultTable:tag('tr') | |||
:tag('td'):wikitext(Constants._getModifierText(modDet.key, modVal, true)):done() | |||
end | end | ||
return tostring(resultTable) | return tostring(resultTable) |