1,131
edits
No edit summary |
No edit summary |
||
| Line 33: | Line 33: | ||
-- Properties -- | -- Properties -- | ||
{ name = ' | { name = 'tradeable', func = 'yes_no' }, | ||
{ name = 'quest', func = 'has_content' }, | { name = 'quest', func = 'has_content' }, | ||
| Line 157: | Line 157: | ||
:pad(20) | :pad(20) | ||
:addRow{ | :addRow{ | ||
{ tag = 'th', content = ' | { tag = 'th', content = 'Tradeable', colspan = '7' }, | ||
{ tag = 'argd', content = ' | { tag = 'argd', content = 'tradeable', colspan = '13' }, | ||
} | } | ||
| Line 331: | Line 331: | ||
rune_tp = { yes = 'Runes'}, | rune_tp = { yes = 'Runes'}, | ||
tradeable = { yes = 'Tradeable items', no = 'Untradeable items' }, | tradeable = { yes = 'Tradeable items', no = 'Untradeable items' }, | ||
type = { | |||
['book'] = 'Books', | |||
['boots'] = {'Armor', 'Boots'}, | |||
['chest'] = {'Armor', 'Chestplates'}, | |||
['chestplate'] = {'Armor', 'Chestplates'}, | |||
['dummy'] = 'Dummy Items', | |||
['fish'] = 'Fishes', | |||
['gem'] = 'Gems', | |||
['gemstone'] = 'Gems', | |||
['helm'] = {'Armor', 'Helmets'}, | |||
['helmet'] = {'Armor', 'Helmets'}, | |||
['log'] = 'Logs', | |||
['necklace'] = 'Necklaces', | |||
['ore'] = 'Ores', | |||
['potion'] = 'Potions', | |||
['ring'] = 'Rings', | |||
['rune'] = 'Runes', | |||
['sapling'] = 'Saplings', | |||
['seed'] = 'Saplings', | |||
['tool'] = 'Tools', | |||
['trap'] = 'Traps', | |||
['weapon'] = 'Weapons', | |||
}, | |||
} | } | ||
} | } | ||
| Line 386: | Line 418: | ||
-- combine table and format category wikicode | -- combine table and format category wikicode | ||
for i, v in ipairs(ret) do | for i, v in ipairs(ret) do | ||
ret[i] = string.format('[[Category:%s]]', v) | if type(v) == 'string' then | ||
ret[i] = string.format('[[Category:%s]]', v) | |||
else | |||
local catString = '' | |||
for i2, v2 in ipairs(v) do | |||
catString = catString .. string.format('[[Category:%s]]', v2) | |||
end | |||
ret[i] = catString | |||
end | |||
end | end | ||