Module:ItemData/nav: Difference between revisionsGive feedback
m write_item_slot_subgroup now returns the whole Navbox subgroup template output |
m write_item_slot_subgroup color is now dynamic to the slot utilizing Module:Utilities |
||
| Line 3: | Line 3: | ||
local lang_module = require('Module:Lang') | local lang_module = require('Module:Lang') | ||
local generic_module = require('Module:GenericData') | local generic_module = require('Module:GenericData') | ||
local util_module = require('Module:Utilities') | |||
--With debug_mode on, it outputs unprocessed wikitext | --With debug_mode on, it outputs unprocessed wikitext | ||
| Line 117: | 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", | ||