Module:Item: Difference between revisions
ReinDevildom (talk | contribs) Created page with "local p = {} local lib = require('Module:Feature') function p.main(frame) local args = require('Module:Arguments').getArgs(frame, { parentFirst = true, removeBlanks = false }) return p._main(args) end function p._main(args) local item = lib.nilIfEmpty(args[1]) or lib.nilIfEmpty(args.name) or 'Unknown' local size = lib.nilIfEmpty(args[2]) or lib.nilIfEmpty(args.size) or 30 local count = lib.nilIfEmpty(args.count) or lib.nilIfEmpty(args.x) or nil local n..." |
mNo edit summary |
||
| Line 77: | Line 77: | ||
:attr('data-size', size) | :attr('data-size', size) | ||
:wikitext(file) | :wikitext(file) | ||
if (icon ~= nil) then | if (icon ~= nil) then | ||