Module:ItemsByStat: Difference between revisionsGive feedback
SerpentofSet (talk | contribs) No edit summary |
SerpentofSet (talk | contribs) No edit summary |
||
| Line 32: | Line 32: | ||
local outString = '{| class="wikitable sortable"\n|-\n!Item!!Cost!!Value\n' | local outString = '{| class="wikitable sortable"\n|-\n!Item!!Cost!!Value\n' | ||
for i=1,#tableData[1] do | for i=1,#tableData[1] do | ||
outString = outString..'|-style="background:'..colorBySlot[tableData[4][i]]..'"\n|'..frame:expandTemplate{title="Item", args={tableData[1][i]}}.."||"..frame:expandTemplate{title="Souls", args={tableData[3][i]}}.."||"..tableData[5][i].."\n" | outString = outString.. | ||
'|-style="background:'..colorBySlot[tableData[4][i]]..'"\n|'.. | |||
frame:expandTemplate{title="Item", args={tableData[1][i]}}.."||".. | |||
frame:expandTemplate{title="Souls", args={tableData[3][i]}}.."||".. | |||
tableData[5][i].."\n" | |||
end | end | ||
return outString.."|}" | return outString.."|}" | ||