Module:ItemData/nav: Difference between revisionsGive feedback
m write_item_slot_subgroup color is now dynamic to the slot utilizing Module:Utilities |
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: | ["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", | ||