Module:Crafting: Difference between revisions

Add inline support by `{{Stack|...|inline = True}}`
(Add the ability to get an inlineable item with count)
(Add inline support by `{{Stack|...|inline = True}}`)
Line 50: Line 50:
args = f:getParent().args or {""}
args = f:getParent().args or {""}
end
end
local tagtype
local inline = args['inline'] or args['Inline']
if inline then
tagtype = "span"
end
local spriteDiv = require([[Module:Sprite]])
local spriteDiv = require([[Module:Sprite]])
:new("inventory")
:new("inventory")
:setItem(mw.text.trim(args[1]))
:setItem(mw.text.trim(args[1] or ""))
:GenerateHTML()
:GenerateHTML(nil, tagtype)




Bureaucrats, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, translator, Widget editors
154

edits