Anonymous

Module:Skills/Gathering/Sandbox: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 366: Line 366:
local headerRow0 = html:tag('tr'):addClass('headerRow-0')
local headerRow0 = html:tag('tr'):addClass('headerRow-0')
headerRow0:tag('th'):attr('colspan', '2'):attr('rowspan', '2'):wikitext('Fish')
headerRow0:tag('th'):attr('colspan', '2'):attr('rowspan', '2'):wikitext('Fish')
headerRow0:tag('th'):attr('rowspan', '2'):wikitext('Requirements')
headerRow0:tag('th'):attr('rowspan', '2'):wikitext(Icons.Icon({'Fishing', type='skill', notext=true}) .. '<br>Level')
headerRow0:tag('th'):attr('rowspan', '2'):wikitext('[[DLC]]')
headerRow0:tag('th'):attr('colspan', '3'):wikitext('Catch Time')
headerRow0:tag('th'):attr('colspan', '3'):wikitext('Catch Time')
headerRow0:tag('th'):attr('rowspan', '2'):wikitext('XP')
headerRow0:tag('th'):attr('rowspan', '2'):wikitext('XP')
Line 391: Line 392:


local row = html:tag('tr')
local row = html:tag('tr')
row:tag('td'):addClass('table-img'):wikitext(Icons.Icon({fish.name, type='item', notext=true}))
row:tag('td')
:addClass('table-img')
:wikitext(Icons.Icon({fish.name, type='item', notext=true}))
row:tag('td')
row:tag('td')
:attr('data-sort-value', fish.name)
:attr('data-sort-value', fish.name)
:wikitext(Icons.getDLCColumnIcon(fish.id) .. Icons.Icon({fish.name, type='item', noicon=true}))
:wikitext('[[' .. fish.name .. ']]')
row:tag('td')
row:tag('td')
:css('text-align', 'right')
:css('text-align', 'center')
:attr('data-sort-value', level)
:attr('data-sort-value', level)
:wikitext(reqText)
:wikitext(level)
row:tag('td')
:css('text-align', 'center')
:attr('data-sort-value', Icons.getExpansionID(fish.id))
:wikitext(Icons.getDLCColumnIcon(fish.id))
row:tag('td')
row:tag('td')
:css('text-align', 'right')
:css('text-align', 'right')
2,875

edits