Module:Item: Difference between revisions

Added "invert" parameter that can apply an invert filter on the icon for either light or dark mode
Added automatic invert for icons listed in Module:Item/Invert
 
Line 1: Line 1:
-- Adapted from: https://genshin-impact.fandom.com/wiki/Module:Item
-- Adapted from: https://genshin-impact.fandom.com/wiki/Module:Item
local p = {}
local p = {}
local lib = require('Module:Feature')
local lib = require('Module:Feature')
Line 33: Line 34:
end
end
local invertIcon = require('Module:Item/Invert')
if not invert then
invert = invertIcon[item]
end
local invertClass = nil
local invertClass = nil
if invert then
if invert then