Module:Crafting: Difference between revisions

m
Adding ? into Stack's count param
(Merge Dynamic into Grid)
m (Adding ? into Stack's count param)
Line 95: Line 95:




local count = tonumber(args['count']) or tonumber(args['Count']) or 1
local count = tonumber(args['count']) or tonumber(args['Count']) or 1 or "?"
if count ~= 1 then
if count ~= 1 or count ~= "?" then
local countSpan = spriteDiv:tag("span"):wikitext(count)
local countSpan = spriteDiv:tag("span"):wikitext(count)
countSpan:addClass("invslot-stacksize")
countSpan:addClass("invslot-stacksize")
Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,659

edits