Module:GathererList: Difference between revisions
m
spacing around images
(Created page with "require('strict') require('Module:Mw.html extension') local param = require( 'Module:Paramtest' ) local currency = require('Module:Currency') local lang = mw.getContentLanguage() local p = {} -- non dynamic module, no inputs function p.main() -- returns only directly needed parameter needed for the row, -- other parameters are determined by subqueries of chained pages local query = { '[[Variant of::Globeplant (skill node)||Dandelion (skill node)||Goat Horn (skil...") |
m (spacing around images) |
||
(One intermediate revision by the same user not shown) | |||
Line 13:
-- other parameters are determined by subqueries of chained pages
local query = {
'[[Category:Gatherer]] AND [[~*(skill node)]]',
'?Variant of #- = variant',
'?Profession Level A = lvl',
Line 59:
item.material = item.material or ''
item.product = item.product or ''
item.Image = item.Image or ''
-- price of resource
Line 143 ⟶ 144:
:tag('td')
:css{ ['border-right'] = '0', ['text-align'] = 'right', ['max-width'] = '100px' }
:attr{ ['data-sort-value'] = item.name }
:wikitext(' [[' .. item.Image .. '|link=' .. item.name .. '|30x30px]]')
Line 155:
:tag('td')
:css{ ['border-right'] = '0', ['text-align'] = 'right', ['max-width'] = '100px' }
:attr{ ['data-sort-value'] = item.product }
:wikitext('[[File:' .. item.product .. '.png|link=' .. item.product .. '|30x30px]]')
|