Module:InfoboxSE: Difference between revisions

no edit summary
m (Protected "Module:SEbox": Easily broken pages ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
No edit summary
 
(One intermediate revision by the same user not shown)
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]]';