Jump to content

Module:Probox/Research resource

From Meta, a Wikimedia project coordination wiki
Module documentation

local m = {}
m.styles = {}
m.sections = {}
m.fields = {}
m.categories = {} 
m.roles = {}

m.roles.creator = true

m.sections.above = false
m.sections.nav = true
m.sections.head = true
m.sections.main = true
m.sections.participants = false
m.sections.cta = false
m.sections.below = false

m.styles.box = {}
m.styles.box.outer = "float:right; margin: 0 0 1em 4%; min-width: 22em; width: 28%;"
m.styles.box.inner = "background-color: #eeeeee; color: #000000; border-left: 1px solid #ddd; border-top: 1px solid #ddd; border-right: 1px solid #ddd; border-bottom: 3px solid #D0D0D0; border-radius: 1px; padding: 12px 20px 20px 20px;"

m.styles.section = {}
m.styles.section.above = "border-bottom: 1px solid black;"
m.styles.section.nav = "background-color: #FFFFFF; padding: .25em 0 0 1em; font-size: 1.3em;"
m.styles.section.head = "margin-bottom:1em;"
m.styles.section.main = "margin-bottom:1em;"
m.styles.section.participants = "background-color:white; border: 1px solid #DDD; border-radius: 1px; margin-bottom:.5em; padding:.75em;"
m.styles.section.cta = "clear:both;"
m.styles.section.below = ""

m.styles.field = {}
m.styles.field.h1 = "display:inline; word-wrap:break-word;"
m.styles.field.h2 = "margin-bottom:0.5em; word-wrap:break-word;"
m.styles.field.p = ""
m.styles.field.img = ""

--
-- fields
--

-- above box

-- nav section
m.fields.nav_icon = {}
m.fields.nav_icon.isRequired = true
m.fields.nav_icon.vtype = "image"
m.fields.nav_icon.vtype2 = "link"
m.fields.nav_icon.style = "display:inline; padding-right:.25em;"
m.fields.nav_icon.style2 = ""
m.fields.nav_icon.style3 = ""
m.fields.nav_icon.section = "nav"
m.fields.nav_icon.width = "25px"
m.fields.nav_icon.alignment = "top"
m.fields.nav_icon.arg = "nav_icon"
m.fields.nav_icon.default = "File:Wikimedia-research.png"
m.fields.nav_icon.key = ""
m.fields.nav_icon.link = "Research:Codex"
m.fields.nav_icon.rank = 1

m.fields.nav_text = {}
m.fields.nav_text.isRequired = true
m.fields.nav_text.vtype = "text"
m.fields.nav_text.vtype2 = "link"
m.fields.nav_text.style = m.styles.field.h1
m.fields.nav_text.style2 = "color:#990000"
m.fields.nav_text.style3 = ""
m.fields.nav_text.section = "nav"
m.fields.nav_text.arg = "nav_text"
m.fields.nav_text.default = "Research:Codex"
m.fields.nav_text.key = "portal"
m.fields.nav_text.rank = 2

-- head section
m.fields.title = {}
m.fields.title.isRequired = true
m.fields.title.vtype = "text"
m.fields.title.vtype2 = "title"
m.fields.title.style = m.styles.field.h1
m.fields.title.style2 = ""
m.fields.title.style3 = "font-size: 1.3em;"
m.fields.title.section = "head"
m.fields.title.arg = "project"
m.fields.title.key = ""
m.fields.title.default = "title-default"
m.fields.title.rank = 1

-- main section
m.fields.image = {}
m.fields.image.isRequired = false
m.fields.image.vtype = "image"
m.fields.image.vtype2 = "thumb"
m.fields.image.style = ""
m.fields.image.style2 = ""
m.fields.image.style3 = "float:right;"
m.fields.image.section = "main"
m.fields.image.arg = "image"
m.fields.image.key = ""
m.fields.image.width = "50px"
m.fields.image.rank = 1

m.fields.summary = {}
m.fields.summary.isRequired = true
m.fields.summary.vtype = "text"
m.fields.summary.vtype2 = "body"
m.fields.summary.style = m.styles.field.h2
m.fields.summary.style2 = "color: #888888; font-style: italic;"
m.fields.summary.style3 = "display:block;"
m.fields.summary.section = "main"
m.fields.summary.arg = "summary"
m.fields.summary.key = ""
m.fields.summary.default = "summary-default"
m.fields.summary.rank = 2


--sub-section
-- m.fields.creator = {}
-- m.fields.creator.isRequired = false
-- m.fields.creator.vtype = "participant"
-- m.fields.creator.vtype2 = "username"
-- m.fields.creator.style = m.styles.field.h2
-- m.fields.creator.style2 = ""
-- m.fields.creator.style3 = "display:block;"
-- m.fields.creator.section = "participants"
-- m.fields.creator.arg = "creator"
-- m.fields.creator.key = "creator"
-- m.fields.creator.rank = 1


-- call to action section (buttons, etc)


-- below box

--
-- categories
--
m.categories.base = "Category:"
m.categories.default = "Category:Research Codex"

return m