Module:ItemData/nav: Difference between revisions

Jannepg (talk | contribs)
m Added a background texture to the price tiers
Jannepg (talk | contribs)
No edit summary
Tag: Undo
Line 164: Line 164:
local template_title = "Navbox subgroup"
local template_title = "Navbox subgroup"
local template_args = {
local template_args = {
["groupstyle"] = "background: url(/images/3/3e/Infobox_Item_BG.png) repeat top left " .. util_module.get_slot_color(slot) .. ";width:10%;min-width:70px;border-radius: 8px 0 0 8px",
["groupstyle"] = "background-color:" .. util_module.get_slot_color(slot) .. ";background-image:none;width:10%;min-width:70px;border-radius: 8px 0 0 8px",
["grouppadding"] = "5px",
["grouppadding"] = "5px",
["listpadding"] = "0 0.25rem",
["listpadding"] = "0 0.25rem",
Line 217: Line 217:
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_style = "color:#98ffde; 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);padding:5px;"
local sb_style = "color:#98ffde; 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>]]"
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)