Module:GrantmakingNavbar/pages

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
Module documentation[create]
local m = {}

local default_bgcolor = "#a1a3a4"

m.pagePath = {}
m.titleKey = {}
m.marginLeft = {}
m.bgInactive = {}
m.bgActive = {}

m.pagePath[1] = "Start"
m.pagePath[2] = "Conference"
m.pagePath[3] = "Project/Rapid"
m.pagePath[4] = "Project"
m.pagePath[5] = "APG"

--titles are stored at Template:GrantmakingNavbar/Content and its langcode sub-pages
m.titleKey[1] = "gm-title"
m.titleKey[2] = "conference-title"
m.titleKey[3] = "rapid-title"
m.titleKey[4] = "project-title"
m.titleKey[5] = "apg-title"

m.bgInactive[1] = "#656565"
m.bgInactive[2] = default_bgcolor
m.bgInactive[3] = default_bgcolor
m.bgInactive[4] = default_bgcolor
m.bgInactive[5] = default_bgcolor

m.bgActive[1] = "#656565"
m.bgActive[2] = "#4ABDAC"
m.bgActive[3] = "#f2a31b"
m.bgActive[4] = "#f21b6a"
m.bgActive[5] = "#4355a5"

return m