Module:InfoboxPet: Difference between revisions

no edit summary
m (Protected "Module:Petbox": Easily broken pages ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 13: Line 13:


     local infobox = require('Module:InfoboxProto').main(frame, title);
     local infobox = require('Module:InfoboxProto').main(frame, title);
     infobox:addClass('infobox-npc');
     infobox:addClass('infobox-pet');


     addField('name');
     local fields = {
    addField('Starting Form');
        {
    addField('Inventory', 'Pet Inventory Size');
            id = 'name'
    addField('Trait');
        },
    addField('Commands', 'Special Commands');
        {
            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]]';