Module:Skills/Gathering: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 395: Line 395:


local row = html:tag('tr')
local row = html:tag('tr')
row:tag('td')
row:tag('td'):wikitext(Icons.Icon({fish.name, type='item', notext=true}))
:addClass('table-img')
:addClass('table-img')
:wikitext(Icons.Icon({fish.name, type='item', notext=true}))
row:tag('td'):wikitext('[[' .. fish.name .. ']]')
row:tag('td')
:attr('data-sort-value', fish.name)
:attr('data-sort-value', fish.name)
row:tag('td'):wikitext(level)
:wikitext('[[' .. fish.name .. ']]')
:css('text-align', 'center')
row:tag('td')
:attr('data-sort-value', level)
:css('text-align', 'center')
row:tag('td'):wikitext(Icons.getDLCColumnIcon(fish.id))
:attr('data-sort-value', level)
:css('text-align', 'center')
:wikitext(level)
:attr('data-sort-value', Icons.getExpansionID(fish.id))
row:tag('td')
row:tag('td'):wikitext(string.format("%.1fs", timeMin))
:css('text-align', 'center')
:css('text-align', 'right')
:attr('data-sort-value', Icons.getExpansionID(fish.id))
:attr('data-sort-value', timeMin)
:wikitext(Icons.getDLCColumnIcon(fish.id))
row:tag('td'):wikitext(string.format("%.1fs", timeMax))
row:tag('td')
:css('text-align', 'right')
:css('text-align', 'right')
:attr('data-sort-value', timeMax)
:attr('data-sort-value', timeMin)
row:tag('td'):wikitext(string.format("%.1fs", timeAvg))
:wikitext(string.format("%.1fs", timeMin))
:css('text-align', 'right')
row:tag('td')
:attr('data-sort-value', timeAvg)
:css('text-align', 'right')
row:tag('td'):wikitext(Num.formatnum(baseXP))
:attr('data-sort-value', timeMax)
:css('text-align', 'right')
:wikitext(string.format("%.1fs", timeMax))
:attr('data-sort-value', baseXP)
row:tag('td')
row:tag('td'):wikitext(Num.round(XPSec, 2, 2))
:css('text-align', 'right')
:css('text-align', 'right')
:attr('data-sort-value', timeAvg)
row:tag('td'):wikitext(Items.getValueText(fish))
:wikitext(string.format("%.1fs", timeAvg))
:attr('data-sort-value', fish.sellsFor)
row:tag('td')
:css('text-align', 'right')
:css('text-align', 'right')
row:tag('td'):wikitext(Icons._Currency(sellCurrency, Num.round(GPSec, 2, 2)))
:attr('data-sort-value', baseXP)
:attr('data-sort-value', GPSec)
:wikitext(Num.formatnum(baseXP))
:css('text-align', 'right')
row:tag('td')
:css('text-align', 'right')
:wikitext(Num.round(XPSec, 2, 2))
row:tag('td')
:attr('data-sort-value', fish.sellsFor)
:wikitext(Items.getValueText(fish))
row:tag('td')
:css('text-align', 'right')
:wikitext(Icons._Currency(sellCurrency, Num.round(GPSec, 2, 2)))
end
end
end
end
2,875

edits