Module:InfoboxSE: Difference between revisions

no edit summary
m (Ritsu moved page Module:SEbox to Module:InfoboxSE without leaving a redirect)
No edit summary
 
Line 22: Line 22:
     infobox:addClass('infobox-status');
     infobox:addClass('infobox-status');


     addField('Name', 'Debuff Name');
     local fields = {
    addField('Buff', 'Status Type', nil, status_type);
        {
    addField('Icon');
            id = 'Name',
    addField('MaxStack', 'Max Stacks', nil, max_stacks);
            localize = 'Debuff Name'
        },
        {
            id = 'Buff',
            localize = 'Status Type',
            value = status_type
        },
        {
            id = 'Icon'
        },
        {
            id = 'MaxStack',
            localize = 'Max Stacks',
            value = max_stacks
        }
    }
 
    addFields(fields);


     return tostring(infobox) .. '[[Category: Status Effects]][[Category: ' .. status_type .. 's]]';
     return tostring(infobox) .. '[[Category: Status Effects]][[Category: ' .. status_type .. 's]]';