Module:Crafting: Difference between revisions

Jump to navigation Jump to search
m
Count in SingleStack?
m (Template Stack inline by default)
m (Count in SingleStack?)
Line 106: Line 106:




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 then
if count ~= 1 then
local countSpan = spriteDiv:tag("span"):wikitext(count)
local countSpan = spriteDiv:tag("span"):wikitext(count)
Line 164: Line 164:
spriteDiv:css("background-color","#67AFD0")
spriteDiv:css("background-color","#67AFD0")
spriteDiv:css("border-color","#1A536E #C0DEEB #C0DEEB #1A536E")
spriteDiv:css("border-color","#1A536E #C0DEEB #C0DEEB #1A536E")
end
local count = tonumber(args['count']) or tonumber(args['Count']) or 1 or "?"
if count ~= 1 then
local countSpan = spriteDiv: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

Navigation menu