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
PhantomCaleb (talk | contribs) (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) |
PhantomCaleb (talk | contribs) (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 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" | ||
function p.Main(frame) | function p.Main(frame) | ||
Line 41: | Line 39: | ||
args = { src = "Module:Infobox/Styles.css" } | args = { src = "Module:Infobox/Styles.css" } | ||
}) | }) | ||
return styles, categories | return styles, categories |