Module:ItemData/nav: Difference between revisions

Sur (talk | contribs)
m write_item_slot_subgroup color is now dynamic to the slot utilizing Module:Utilities
Sur (talk | contribs)
m get_slot_color now automatically prefixes the hex with #
Line 118: Line 118:
local template_title = "Navbox subgroup"
local template_title = "Navbox subgroup"
local template_args = {
local template_args = {
["groupstyle"] = "background-color:#" .. 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) .. ";width:10%;min-width:70px;border-radius: 8px 0 0 8px",
["grouppadding"] = "5px",
["grouppadding"] = "5px",
["listpadding"] = "0 0.25rem",
["listpadding"] = "0 0.25rem",