Module:Crafting: Difference between revisions

m
How about this
m (How about a regular match)
m (How about this)
Line 110: Line 110:
end
end


if string.match(args['count'],'%?') or string.match(args['Count'],'%?') then
if tonumber(args['count']) or tonumber(args['Count']) or string.match(args['count'],'%?') or string.match(args['Count'],'%?') then
local count = "?"
if tonumber(args['count']) ~= 1 then
else
local countSpan = parentDiv:tag("span"):wikitext(args['count'])
local count = tonumber(args['count']) or tonumber(args['Count']) or 1
countSpan:addClass("invslot-stacksize")
end
end
if count == "?" or count ~= 1 then
local countSpan = parentDiv:tag("span"):wikitext(count)
countSpan:addClass("invslot-stacksize")
end
end


Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,659

edits