Module:Crafting: Difference between revisions

Jump to navigation Jump to search
m (Does this make ? count work)
m (how about now)
Line 115: Line 115:
local count = tonumber(args['count']) or tonumber(args['Count']) or 1
local count = tonumber(args['count']) or tonumber(args['Count']) or 1
end
end
if count ~= 1 then
if count == "?" or count ~= 1 then
local countSpan = parentDiv:tag("span"):wikitext(count)
local countSpan = parentDiv:tag("span"):wikitext(count)
countSpan:addClass("invslot-stacksize")
countSpan:addClass("invslot-stacksize")