1,300
edits
(Created page with "-------------------------- -- Module for Template:Infobox Item ------------------------ local p = {} local infobox = require('Module:Infobox') local onmain = require('Module:Mainonly').on_main local commas = require('Module:Addcommas')._add local exchange = require('Module:Exchange') local chart = require('Module:ExchangeData')._chart VariablesLua = mw.ext.VariablesLua function p.main(frame) local args = frame:getParent().args local ret = infobox.new(args) ret:...") |
No edit summary |
||
Line 24: | Line 24: | ||
{ name = 'release', func = 'release' }, | { name = 'release', func = 'release' }, | ||
{ name = 'removal', func = 'removal' }, | { name = 'removal', func = 'removal' }, | ||
{ name = 'tradeable', func = tradeablearg }, | { name = 'tradeable', func = tradeablearg }, | ||
Line 85: | Line 83: | ||
ret:useSMWOne({ | ret:useSMWOne({ | ||
id_smw = 'All Item ID', | id_smw = 'All Item ID', | ||
image_smw = 'All Image', | image_smw = 'All Image', | ||
Line 96: | Line 93: | ||
examine = 'Examine', | examine = 'Examine', | ||
high_smw = 'High Alchemy value', | high_smw = 'High Alchemy value', | ||
raw_value = 'Value', | raw_value = 'Value', | ||
raw_weight = 'Weight', | raw_weight = 'Weight', | ||
Line 136: | Line 132: | ||
end | end | ||
addRow{ | |||
{ tag = 'th', content = 'Properties', class = 'infobox-subheader', colspan = '20' } | { tag = 'th', content = 'Properties', class = 'infobox-subheader', colspan = '20' } | ||
} | } | ||
Line 597: | Line 584: | ||
notdefined = { | notdefined = { | ||
image = 'Needs image', | image = 'Needs image', | ||
release = 'Needs release date', | release = 'Needs release date', | ||
examine = 'Needs examine added', | examine = 'Needs examine added', | ||
Line 603: | Line 589: | ||
weight = 'Needs weight added', | weight = 'Needs weight added', | ||
value = 'Items missing value', | value = 'Items missing value', | ||
options = 'Needs options', | options = 'Needs options', | ||
destroy = 'Needs destroy text', | destroy = 'Needs destroy text', | ||
Line 611: | Line 596: | ||
-- map a category to a value | -- map a category to a value | ||
matches = { | matches = { | ||
stackable = { yes = 'Stackable items' }, | stackable = { yes = 'Stackable items' }, | ||
equipable = { yes = 'Equipable items' }, | equipable = { yes = 'Equipable items' }, |