Module:Item: Difference between revisions

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..."
 
Valaerys (talk | contribs)
mNo edit summary
 
Line 77: Line 77:
:attr('data-size', size)
:attr('data-size', size)
:wikitext(file)
:wikitext(file)
:done()
:tag('span')
:addClass('mobile-only')
:wikitext(mobile_file)
:done()


if (icon ~= nil) then
if (icon ~= nil) then