Module:MinerPassiveList: Difference between revisions

m
condense table by omitting " (skill node)" from the displayed links to the skill nodes (link still goes to node)
(add column for the profit from selling the items)
m (condense table by omitting " (skill node)" from the displayed links to the skill nodes (link still goes to node))
 
(2 intermediate revisions by the same user not shown)
Line 58:
-- profit from selling the items
if not item.givesCoins then
-- protection against missing parameters
item.product = item.product or ''
-- query is: there is a shop object page that has this item AND has buy price cannot be "N/A"
Line 95 ⟶ 98:
:done()
:tag('th')
:attr{ colspan = '23' }
:wikitext('Product')
:done()
Line 136 ⟶ 139:
:addClass('plinkt-link no-border')
:attr{ ['data-sort-value'] = item.name }
:wikitext(' [[' .. item.Image .. '|link=' .. item.name .. '|30x30px]]')
:done()
:tag('td')
:addClass('plinkt-link no-border')
:wikitext('[[' .. item.name .. '|' .. item.product .. ']]')
:done()
-- products (coins or items)
:tag('td')
:css{ ['border-right'] = '0', ['text-align'] = 'right' }
:attr{ ['data-sort-value'] = item.name }
:wikitext('0.005 × ')
:done()
:tag('td')
:css{ ['border-right'] = '0', ['text-align'] = 'center' }
9,742

edits