Module:Crafting: Difference between revisions

m
Corrected if, should work now.
m (Adding ? into Stack's count param)
m (Corrected if, should work now.)
Line 96: Line 96:


local count = tonumber(args['count']) or tonumber(args['Count']) or 1 or "?"
local count = tonumber(args['count']) or tonumber(args['Count']) or 1 or "?"
if count ~= 1 or count ~= "?" then
if count ~= 1 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