Module:Items/UseTables: Difference between revisions

right-aligning some stuff
(Swapping over to Auron's v0.21 test version)
(right-aligning some stuff)
Line 509: Line 509:
     end
     end
     if type(row.req) == 'number' then
     if type(row.req) == 'number' then
       table.insert(resultPart, '|| data-sort-value="'..row.req..'"|'..Icons._SkillReq(row.skill, row.req))
       table.insert(resultPart, '|| style="text-align:right" data-sort-value="'..row.req..'"|'..Icons._SkillReq(row.skill, row.req))
     elseif row.reqVal ~= nil then
     elseif row.reqVal ~= nil then
       table.insert(resultPart, '|| data-sort-value="'..row.reqVal..'"|'..row.req)
       table.insert(resultPart, '|| style="text-align:right" data-sort-value="'..row.reqVal..'"|'..row.req)
     else
     else
       table.insert(resultPart, '||'..row.req)
       table.insert(resultPart, '||'..row.req)
     end
     end
     if type(row.xp) == 'string' then
     if type(row.xp) == 'string' then
       table.insert(resultPart, '||data-sort-value="0"|'..row.xp)
       table.insert(resultPart, '||style="text-align:right" data-sort-value="0"|'..row.xp)
     else
     else
       table.insert(resultPart, '||data-sort-value="'..row.xp..'"|'..row.xp..' '..Icons.Icon({row.skill, type='skill', notext=true})..' XP')
       table.insert(resultPart, '||style="text-align:right" data-sort-value="'..row.xp..'"|'..row.xp..' '..Icons.Icon({row.skill, type='skill', notext=true})..' XP')
     end
     end
     table.insert(resultPart, '||')
     table.insert(resultPart, '||')