Anonymous

Module:Infobox: Difference between revisions

From Zelda Wiki, the Zelda encyclopedia
Remove dependency on variable IsAfterInfobox - using CSS selectors instead due to likely deprecation of Extension:Variables
(Remove <br> tag detection - Now that we're purged br lists from the wiki the detection will generate too many false positives to be useful. Better to enforce with editor guidelines and patrolling)
(Remove dependency on variable IsAfterInfobox - using CSS selectors instead due to likely deprecation of Extension:Variables)
 
Line 9: Line 9:
local utilsString = require("Module:UtilsString")
local utilsString = require("Module:UtilsString")
local utilsTable = require("Module:UtilsTable")
local utilsTable = require("Module:UtilsTable")
local utilsVar = require("Module:UtilsVar")


local CATEGORY_INVALID_ARGS = "[[Category:"..require("Module:Constants/category/invalidArgs").."]]"
local CATEGORY_INVALID_ARGS = "[[Category:"..require("Module:Constants/category/invalidArgs").."]]"
Line 16: Line 15:
local CLASS_TOOLTIP = require("Module:Constants/class/tooltip")
local CLASS_TOOLTIP = require("Module:Constants/class/tooltip")
local DEFAULT_IMG_SIZE = "320x320px"
local DEFAULT_IMG_SIZE = "320x320px"
local VAR_IS_AFTER_INFOBOX = require("Module:Constants/var/isAfterInfobox")


function p.Main(frame)
function p.Main(frame)
Line 41: Line 39:
args = { src = "Module:Infobox/Styles.css" }
args = { src = "Module:Infobox/Styles.css" }
})
})
utilsVar.set(VAR_IS_AFTER_INFOBOX, true)
return styles, categories
return styles, categories