Anonymous

Module:Sandbox/AuronTest/ComparisonTables: Difference between revisions

From Melvor Idle
testing what happens if I remove the icons
(temporarily breaking things to test something)
(testing what happens if I remove the icons)
Line 3: Line 3:
local ItemData = mw.loadData('Module:AuronTest/data')
local ItemData = mw.loadData('Module:AuronTest/data')


--local Constants = require('Module:Constants')
local Constants = require('Module:Constants')
--local Shared = require('Module:Shared')
local Shared = require('Module:Shared')
--local Icons = require('Module:Icons')
local Icons = require('Module:Icons')
--local Items = require('Module:AuronTest')
local Items = require('Module:AuronTest')
--local ItemSourceTables = require('Module:AuronTest/SourceTables')
local ItemSourceTables = require('Module:AuronTest/SourceTables')
--local ItemUseTables = require('Module:AuronTest/UseTables')
local ItemUseTables = require('Module:AuronTest/UseTables')


local weaponTypes = {'Magic Staff', 'Magic Wand', 'Ranged Weapon', 'Weapon'}
local weaponTypes = {'Magic Staff', 'Magic Wand', 'Ranged Weapon', 'Weapon'}
Line 215: Line 215:
       --Building rows for armour
       --Building rows for armour
       table.insert(resultPart, '\r\n|-')
       table.insert(resultPart, '\r\n|-')
       table.insert(resultPart, '\r\n|style ="text-align: left;padding: 0 0 0 0;"|'..Icons.Icon({item.name, type='item', size=50, notext=true}))
       table.insert(resultPart, '\r\n|style ="text-align: left;padding: 0 0 0 0;"|')--..Icons.Icon({item.name, type='item', size=50, notext=true}))
       table.insert(resultPart, '\r\n|style ="text-align: left;padding: 0 0.5em 0 0.5em;"|[['..item.name..']]')
       table.insert(resultPart, '\r\n|style ="text-align: left;padding: 0 0.5em 0 0.5em;"|[['..item.name..']]')
       for j, statName in pairs(statColumns) do
       for j, statName in pairs(statColumns) do