Module:Inventory slot: Difference between revisions
No edit summary |
No edit summary |
||
| Line 42: | Line 42: | ||
local style = args.style or '' | local style = args.style or '' | ||
local align = args.align or '' | local align = args.align or '' | ||
local numStyle = args.numstyle or '' | |||
local cell = {} | local cell = {} | ||
| Line 124: | Line 125: | ||
num = '[[' .. link .. '|' .. num .. ']]' | num = '[[' .. link .. '|' .. num .. ']]' | ||
end | end | ||
table.insert( image, 3, '<span class="number">' .. num .. '</span>' ) | if numStyle ~= '' then | ||
numStyle = ' style="' .. numStyle .. '"' | |||
end | |||
table.insert( image, 3, '<span class="number"' .. numStyle .. '>' .. num .. '</span>' ) | |||
end | end | ||
| Line 174: | Line 178: | ||
local vanilla = { v = 1, vanilla = 1, mc = 1, minecraft = 1 } | local vanilla = { v = 1, vanilla = 1, mc = 1, minecraft = 1 } | ||
if parts.mod == '' or vanilla[parts.mod | if parts.mod == '' or vanilla[mw.ustring.lower( parts.mod )] then | ||
parts.mod = nil | parts.mod = nil | ||
end | end | ||