Module:GathererList: Difference between revisions

456 bytes removed ,  18 December 2024
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::Globeplant (skill node)||Dandelion (skill node)||Goat Horn (skill node)||Apple (skill node)||Leek (skill node)||Haleberries (skill node)||Rams Horn (skill node)||Bitterfruit (skill node)||Chestnut (skill node)||Bone Spike (skill node)||Tangfruit (skill node)||Catkin (skill node)||Femur Shard (skill node)||Clover (skill node)||Snake Scale (skill node)||Orchid (skill node)||Dock Leaf (skill node)||Sage (skill node)||Thistle (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' }
:addClass('plinkt-link no-border')
: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' }
:addClass('plinkt-link no-border')
:attr{ ['data-sort-value'] = item.product }
:wikitext('[[File:' .. item.product .. '.png|link=' .. item.product .. '|30x30px]]')
19,555

edits