Module:Item: Difference between revisions
From The Petit Planet Wiki
More actions
ReisuDesign (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..." |
ReisuDesign (talk | contribs) No edit summary |
||
| Line 24: | Line 24: | ||
local white = tostring(args.white) == '1' | local white = tostring(args.white) == '1' | ||
local prefix = | local prefix = '' | ||
local suffix = | local suffix = ' Icon' | ||
if (type ~= 'Neighbor' and item == 'Unknown') then | if (type ~= 'Neighbor' and item == 'Unknown') then | ||