Module:ItemData/nav: Difference between revisions

Jump to navigation Jump to search
LVL (talk | contribs)
Updated to have a filter for street brawl items.
LVL (talk | contribs)
Moved Street Brawl styles to variable for better readability
Line 200: Line 200:
if sb_list and sb_list ~= "" then
if sb_list and sb_list ~= "" then
-- Style the link to match other tier headers with white text inside the link to prevent visited link color
-- Style the link to match other tier headers with white text inside the link to prevent visited link color
local sb_link_text = "[[Street Brawl{{if_lang}}|<span style=\"color:#FFFFFF; font-family:'Retail Demo', sans-serif; text-wrap: nowrap; text-shadow: 0px 0px 2px #2c312e, 1.3px 1.3px rgba(0, 0, 0, 0.2);\"><b>" .. street_brawl_label .. "</b></span>]]"
local sb_style = "color:#FFFFFF; font-family:'Retail Demo', sans-serif; text-wrap: nowrap; text-shadow: 0px 0px 2px #2c312e, 1.3px 1.3px rgba(0, 0, 0, 0.2);"
local sb_link_text = "[[Street Brawl{{if_lang}}|<span style=\"" .. sb_style .. "\"><b>" .. street_brawl_label .. "</b></span>]]"
template_args["group" .. group_index] = frame:preprocess(sb_link_text)
template_args["group" .. group_index] = frame:preprocess(sb_link_text)
template_args["list" .. group_index] = sb_list
template_args["list" .. group_index] = sb_list