Bureaucrats, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, translator, Widget editors
154
edits
(typo) |
No edit summary |
||
Line 32: | Line 32: | ||
end | end | ||
function p. | function p.Catalyst( f ) | ||
local args = f.args | local args = f.args | ||
if #args == 0 then | if #args == 0 then | ||
args = f:getParent().args | args = f:getParent().args or {""} | ||
end | end | ||
return require([[Module:Sprite]]) | return require([[Module:Sprite]]) | ||
:new(" | :new("inventory") | ||
:setItem(mw.text.trim(args[1])) | :setItem(mw.text.trim(args[1])) | ||
:GenerateHTML() | :GenerateHTML() |
edits