Module:InfoboxCharacter: Difference between revisions

no edit summary
No edit summary
No edit summary
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
     local infobox = require('Module:InfoboxProto').main(frame, args.class);
     local infobox = require('Module:InfoboxProto').main(frame, args.class);
     infobox:addClass('infobox-character');
     infobox:addClass('infobox-character');
    if (args.name1 == nil and args.name2 == nil) then
        addField('name', args.l_name);
    end


     local fields = {
     local fields = {
        {
            id = 'name',
            localize = args.l_name,
            dual = true
        },
         {
         {
             id = 'class',
             id = 'class',
Line 71: Line 72:
             id = 'groups',
             id = 'groups',
             localize = args.l_groups,
             localize = args.l_groups,
             collapsed = true
             collapsed = true,
            dual = true
         },
         },
         {
         {