Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Item: Difference between revisions

From The Petit Planet Wiki
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..."
 
No edit summary
 
Line 24: Line 24:
local white = tostring(args.white) == '1'
local white = tostring(args.white) == '1'


local prefix = args.prefix and (args.prefix .. ' ') or (type .. ' ')
local prefix = ''
local suffix = args.suffix and (' ' .. args.suffix) or ''
local suffix = ' Icon'
if (type ~= 'Neighbor' and item == 'Unknown') then
if (type ~= 'Neighbor' and item == 'Unknown') then