ElEditors, Interface administrators, Administrators
70,980
edits
No edit summary |
Tag: Undo |
||
(12 intermediate revisions by 2 users not shown) | |||
Line 19: | Line 19: | ||
local skill_types; | local skill_types; | ||
if (not isForceNav) then | if (not isForceNav) then | ||
skill_types = { | skill_types = {{ | ||
['name'] = args.l_hyper, -- 'Hyper Active', | |||
['abbr'] = 'HA' | |||
}, { | |||
['name'] = args.l_secret, -- 'Secret Art', | |||
['abbr'] = 'SeA' | |||
}, { | |||
['name'] = args.l_special, -- 'Special Active', | |||
['abbr'] = 'SA' | |||
}, { | |||
['name'] = args.l_active, -- 'Active', | |||
['abbr'] = 'A' | |||
}, { | |||
['name'] = args.l_mod, -- 'Force Mod', | |||
['abbr'] = 'FC' | |||
}, { | |||
['name'] = args.l_buff, -- 'Buff', | |||
['abbr'] = 'B' | |||
}, { | |||
['name'] = args.l_passive, -- 'Passive', | |||
['abbr'] = 'P' | |||
}, { | |||
['name'] = args.l_demon, -- 'Manic Demon', | |||
['abbr'] = 'MD' | |||
}, { | |||
['name'] = '[[File:ForceIcon.png|16px]] ' .. args.l_demon, -- 'Manic Demon', | |||
['abbr'] = 'MDF' | |||
}, { | |||
['name'] = args.l_master, -- 'Master Skill', | |||
['abbr'] = 'MS' | |||
}, { | |||
['name'] = args.l_couple, -- 'Couple Skill', | |||
['abbr'] = 'Wed' | |||
}, { | |||
['name'] = args.l_row1, -- 'Row 1', | |||
['abbr'] = 'row1' | |||
}, { | |||
['name'] = args.l_row2, -- 'Row 2', | |||
['abbr'] = 'row2' | |||
}, { | |||
['name'] = args.l_row3, -- 'Row 3', | |||
['abbr'] = 'row3' | |||
}, { | |||
['name'] = args.l_row4, -- 'Row 4', | |||
['abbr'] = 'row4' | |||
}} | |||
else | else | ||
-- Force Nav called, change skill types | -- Force Nav called, change skill types | ||
skill_types = { | skill_types = {{ | ||
['name'] = args.l_force_active, -- 'Force Active', | |||
['abbr'] = 'FA3', | |||
['type'] = 'third' | |||
}, { | |||
['name'] = args.l_force_passive, -- 'Force Passive', | |||
['abbr'] = 'FP3', | |||
['type'] = 'third' | |||
}, { | |||
['name'] = args.l_force_active, -- 'Force Active', | |||
['abbr'] = 'FAM', | |||
['type'] = 'master' | |||
}, { | |||
['name'] = args.l_force_passive, -- 'Force Passive', | |||
['abbr'] = 'FPM', | |||
['type'] = 'master' | |||
}} | |||
end | end | ||
Line 150: | Line 129: | ||
end | end | ||
colors = colors:gsub('#', '#') | |||
header: | |||
header:css('background-color', colors); | |||
if (args.is_guild ~= nil) then | |||
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 158: | Line 146: | ||
args.char, | args.char, | ||
args.pic, | args.pic, | ||
link = args.name | link = args.name, | ||
scale = '0. | lang = lang_suffix, | ||
scale = '0.85' | |||
} | } | ||
}) | }) | ||
Line 167: | 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 | ||
headerText:wikitext('[[' .. args.name .. lang_suffix .. '|' .. args.l_name .. ']] - ' .. args.l_skills); | |||
else | else | ||
headerText:wikitext(args.name); | |||
end | end | ||
Line 199: | Line 189: | ||
local skills = split(args[abbr], ';'); | local skills = split(args[abbr], ';'); | ||
if (abbr == 'Wed') then | if (abbr == 'Wed') then | ||
skills = {' | 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]; | ||
Line 234: | Line 227: | ||
-- Append header fields on the left. | -- Append header fields on the left. | ||
skill_nav_wrap:tag('div'):addClass('skill-nav-sub-head border-color tone-4'):wikitext(name .. mc_skill_name_head); | skill_nav_wrap:tag('div'):addClass('skill-nav-sub-head border-color tone-4'):wikitext(name .. | ||
mc_skill_name_head); | |||
-- Get localized names | -- Get localized names |