Module:InfoboxPet: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 15: Line 15:
     infobox:addClass('infobox-pet');
     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]]';