Module:ImageUnifier/constants

-- -- Module:ImageUnifier/constants -- local Self = {}

Self.VALID_EXTS = { ["png"]=1, ["jpg"]=1, ["jpeg"]=1, ["gif"]=1, ["ico"]=1, ["svg"]=1, ["tiff"]=1, ["pdf"]=1, ["djvu"]=1, ["ogg"]=1, ["oga"]=1, ["ogv"]=1, ["odt"]=1, ["ods"]=1, ["odp"]=1, ["odg"]=1, ["odc"]=1, ["odf"]=1, ["odi"]=1, ["odm"]=1, }

Self.SHORTSTYLES = { -- Table for shorten syle names and conforming to lua variable naming whitespace = "white-space", padleft = "padding-left", padright = "padding-right", }

Self.SIZE_GROUPS = {          -- Default sizes text = 26,                 -- normal text sized image for inline with text header = 40,               -- large text sized image for h2 and h3    small = 30,                 -- small sized icon medium = 50,               -- medium sized icon large = 75,                -- large sized icon }

Self.DEFAULTS = { text = {whitespace="nowrap", position="relative", top="-0.22ex", padleft="2px", padright="2px"}, } for k,v in pairs(Self.SIZE_GROUPS) do   if not Self.DEFAULTS[k] then Self.DEFAULTS[k] = {} end Self.DEFAULTS[k].size = "x"..v.."px" end

Self.OVERRIDES = { -- Image Names need to be as seen on their file page without the .png -- Notes: All underscores should be spaces; Full case sensitivitity -- ["Example"]                         = {size="x26px", top="-0.22ex", padleft="2px", padright="2px"}, text = { ["Gols"]                           = {size="x26px", top="-0.17ex", padleft="1px", padright="2px"}, ["Data Disc"]                      = {size="x24px", top="-0.22ex", padleft="3px", padright="3px"}, ["Exp"]                            = {size="x27px", top="-0.17ex", padleft="2px", padright="2px"}, ["Prompt guild"]                   = {size="x29px", top="-0.3ex",  padleft="0px", padright="0px", left="-1px"}, ["Autumn Festival Badge"]          = {size="x30px", top="-0.3ex",  padleft="2px", padright="2px"}, ["Fisherman's Badge"]              = {size="x30px", top="-0.3ex",  padleft="2px", padright="2px"}, ["Ghost Badge"]                    = {size="x30px", top="-0.3ex",  padleft="2px", padright="2px"}, ["Martial Artist's Badge"]         = {size="x32px", top="-0.1ex",  padleft="2px", padright="2px", left="-1px"}, ["Rider's Badge"]                  = {size="x30px", top="-0.2ex",  padleft="1px", padright="1px"}, ["Snowball Battle Badge"]          = {size="x30px", top="-0.22ex", padleft="3px", padright="3px"}, ["Knight Badge"]                   = {size="x26px", top="-0.22ex", padleft="2px", padright="2px"}, ["Icon HP"]                        = {size="x18px", top="-0.2ex",  padleft="3px", padright="3px"}, ["Icon SP"]                        = {size="x18px", top="-0.2ex",  padleft="3px", padright="3px"}, ["Arrow right"]                    = {size="x14px", top="-0.18ex", padleft="2px", padright="2px"}, ["Social talk"]                    = {size="x24px", top="-0.1ex",  padleft="2px", padright="2px"}, ["Prompt happy"]                   = {size="x26px", top="-0.18ex", padleft="2px", padright="2px"}, ["Prompt sad"]                     = {size="x26px", top="-0.18ex", padleft="2px", padright="2px"}, ["Prompt ordinary"]                = {size="x26px", top="-0.18ex", padleft="2px", padright="2px"}, ["Map Icon Mission New"]           = {size="x27px", top="-0.1ex",  padleft="2px", padright="2px"}, ["Map Icon Mission Follow Up"]     = {size="x27px", top="-0.1ex",  padleft="2px", padright="2px"}, ["Map Icon Mission Place Item"]    = {size="x27px", top="-0.1ex",  padleft="2px", padright="2px"}, ["Map Icon Side Quest New"]        = {size="x27px", top="-0.1ex",  padleft="2px", padright="2px"}, ["Map Icon Side Quest Follow Up"]  = {size="x27px", top="-0.1ex",  padleft="2px", padright="2px"}, ["Map Icon Side Quest Place Item"] = {size="x27px", top="-0.1ex",  padleft="2px", padright="2px"}, ["Heart"]                          = {size="x24px", top="-0.1ex",  padleft="2px", padright="2px"}, ["Heart 3-4"]                      = {size="x24px", top="-0.1ex",  padleft="2px", padright="2px"}, ["Heart 2-3"]                      = {size="x24px", top="-0.1ex",  padleft="2px", padright="2px"}, ["Heart 1-2"]                      = {size="x24px", top="-0.1ex",  padleft="2px", padright="2px"}, ["Heart 1-3"]                      = {size="x24px", top="-0.1ex",  padleft="2px", padright="2px"}, ["Heart 1-4"]                      = {size="x24px", top="-0.1ex",  padleft="2px", padright="2px"}, ["Heart 2"]                        = {size="x24px", top="-0.1ex",  padleft="2px", padright="2px"}, ["Star"]                           = {size="x24px", top="-0.1ex",  padleft="2px", padright="2px"}, ["Star 2"]                         = {size="x24px", top="-0.1ex",  padleft="2px", padright="2px"}, }, }

-- -- Required for Modules to function -- return Self