Module:SkillNav: Difference between revisions

Undo revision 914017 by Ritsu (talk)
No edit summary
(Undo revision 914017 by Ritsu (talk))
Tag: Undo
 
(10 intermediate revisions by 2 users not shown)
Line 129: Line 129:
     end
     end


    colors = colors:gsub('#', '#')
   
     header:css('background-color', colors);
     header:css('background-color', colors);
     header:css({
 
        ['justify-content'] = 'center',
     if (args.is_guild ~= nil) then
        ['background-color'] = colors
        header:css({
    });
            ['justify-content'] = 'center',
            ['background-color'] = colors
        });
    end
   
     if (not isForceNav and not args.is_guild) then
     if (not isForceNav and not args.is_guild) then
         header:wikitext(frame:expandTemplate{
         header:wikitext(frame:expandTemplate{
Line 140: Line 146:
                 args.char,
                 args.char,
                 args.pic,
                 args.pic,
                 link = args.name .. lang_suffix,
                 link = args.name,
                 scale = '0.75'
                lang = lang_suffix,
                 scale = '0.85'
             }
             }
         })
         })
Line 149: Line 156:
         args.l_name = args.name;
         args.l_name = args.name;
     end
     end
    local headerText = header:tag('span'):addClass('skill-nav-title');
     if (not isForceNav) then
     if (not isForceNav) then
         header:tag('span'):wikitext('[[' .. args.name .. lang_suffix .. '|' .. args.l_name .. ']] - ' .. args.l_skills);
         headerText:wikitext('[[' .. args.name .. lang_suffix .. '|' .. args.l_name .. ']] - ' .. args.l_skills);
     else
     else
         header:tag('span'):wikitext(args.name);
         headerText:wikitext(args.name);
     end
     end


Line 181: Line 189:
             local skills = split(args[abbr], ';');
             local skills = split(args[abbr], ';');
             if (abbr == 'Wed') then
             if (abbr == 'Wed') then
                 skills = {'CSZE.png', 'Extreme Heavenly Love' .. lang_suffix .. '|' .. args.l_couple_skill_name}
                 skills = {
                    'RelationSkill1.png', 'Extreme Heavenly Love' .. lang_suffix .. '|' .. args.l_couple_skill_name,
                    'RelationSkill2.png', 'Extreme Heavenly Bond' .. lang_suffix .. '|' .. args.l_soulmate_skill_name
                }
             end
             end
             -- Separate syntax for Master Skills: [Stage 1 image]; [Stage 2 image]; [Stage 3 image]; [Stage 4 image]; [skill name];
             -- Separate syntax for Master Skills: [Stage 1 image]; [Stage 2 image]; [Stage 3 image]; [Stage 4 image]; [skill name];