Module:Items/UseTables: Difference between revisions

m
Add missing class for sticky headers
(Fix Currencies not being displayed; Add 'table-na' class to cells without any data; Hide Requires and Exp columns if no data is present; Rename some headers to be slightly shorter and consistent with Creation Table; Reduce icon size on Use and Magic tables;)
m (Add missing class for sticky headers)
Line 718: Line 718:
local resultTable = mw.html.create('table')
local resultTable = mw.html.create('table')
resultTable:addClass('wikitable stickyHeader sortable col-1-img')
resultTable:addClass('wikitable stickyHeader sortable col-1-img')
local tableHeader = resultTable:tag('tr')
local tableHeader = resultTable:tag('tr'):addClass('headerRow-0')
:tag('th'):wikitext('Product'):attr('colspan', 2)
:tag('th'):wikitext('Product'):attr('colspan', 2)
:tag('th'):wikitext('Used In')
:tag('th'):wikitext('Used In')