ElEditors, Interface administrators, Administrators
70,975
edits
No edit summary |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
if args['Icon'] == nil then | if args['Icon'] == nil then | ||
args['Icon'] = '[[File:Dunno.png|48px]]'; | args['Icon'] = frame:preprocess('[[File:Dunno.png|48px]]'); | ||
end | end | ||
local title = args['Icon'] .. ' ' .. args['Name']; | local title = args['Icon'] .. ' ' .. args['Name']; | ||
local infobox = require('Module:InfoboxProto').main(frame, title); | local infobox = require('Module:InfoboxProto').main(frame, title); | ||
infobox:addClass('infobox- | infobox:addClass('infobox-pet'); | ||
local fields = { | |||
{ | |||
id = 'name' | |||
}, | |||
{ | |||
id = 'Starting Form' | |||
}, | |||
{ | |||
id = 'Inventory', | |||
localize = 'Pet Inventory Size' | |||
}, | |||
{ | |||
id = 'Trait' | |||
}, | |||
{ | |||
id = 'Commands', | |||
localize = 'Special Commands' | |||
} | |||
} | |||
addFields(fields); | |||
return tostring(infobox) .. '[[Category: Pets]]'; | return tostring(infobox) .. '[[Category: Pets]]'; |