Module:Sandbox/LVL: Difference between revisionsGive feedback
No edit summary Tag: Manual revert |
No edit summary |
||
| Line 2: | Line 2: | ||
-- Single pre-indexed lookup, built by the bot at deploy time. | -- Single pre-indexed lookup, built by the bot at deploy time. | ||
local iconData = mw.loadJsonData("Data:Sandbox.json") | local iconData = mw.loadJsonData("Data:Sandbox.json") | ||
local lang_codes = mw.loadJsonData("Data:LangCodes.json") | local lang_codes = mw.loadJsonData("Data:LangCodes.json") | ||
| Line 9: | Line 7: | ||
local cachedLangCode, cachedLangData | local cachedLangCode, cachedLangData | ||
-- Items that link to disambiguation pages | |||
local linkOverrides = { | local linkOverrides = { | ||
["Bullet Lifesteal"] = "Bullet Lifesteal (item)", | ["Bullet Lifesteal"] = "Bullet Lifesteal (item)", | ||
| Line 106: | Line 105: | ||
-- Style logic | -- Style logic | ||
-- 'ability' class triggers .module-icon-ability CSS which normalizes | |||
-- ability icons to black/white silhouette for light/dark theme support | |||
local style | local style | ||
if iconInfo.class | if iconInfo.class == "ability" then | ||
style = 'class="module-icon-ability" style="position:relative; bottom:2px;"' | style = 'class="module-icon-ability" style="position:relative; bottom:2px;"' | ||
else | else | ||