Module:Probox/Patterns
Appearance
local m = {}
m.styles = {}
m.sections = {}
m.fields = {}
m.categories = {}
m.roles = {}
m.roles.gender_gap = true
m.roles.event = true
m.roles.survey = true
m.roles.outreach = true
m.roles.teamwork = true
m.roles.evaluation = true
m.roles.reporting = true
m.roles.organizational_design = true
m.roles.wiki_design = true
m.roles.online_engagement = true
m.roles.default = "event"
m.sections.above = true
m.sections.nav = false
m.sections.head = true
m.sections.main = true
m.sections.participants = true
m.sections.cta = true
m.sections.below = true
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 = ""
m.styles.section.nav = "background-color: #f9a01b; 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 = ""
m.styles.field.h2 = "margin-bottom:0.5em;"
m.styles.field.p = ""
m.styles.field.img = ""
--
-- fields
--
-- above box
m.fields.status = {}
m.fields.status.isRequired = true
m.fields.status.vtype = "text"
m.fields.status.vtype2 = "body"
m.fields.status.style = ""
m.fields.status.style2 = "font-style:italic; padding-right:.5em; color: #888888"
m.fields.status.style3 = "font-weight:bold"
m.fields.status.section = "above"
m.fields.status.arg = "status"
m.fields.status.key = "status"
m.fields.status.default = "status-default"
m.fields.status.rank = 1
-- 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:IEG_labcat_white.svg"
m.fields.nav_icon.key = ""
m.fields.nav_icon.link = "Grants:Learning patterns"
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 = "display:inline;"
m.fields.nav_text.style2 = "color:#FFFFFF"
m.fields.nav_text.style3 = ""
m.fields.nav_text.section = "nav"
m.fields.nav_text.arg = "nav_text"
m.fields.nav_text.default = "Grants:Learning patterns"
m.fields.nav_text.key = "portal"
m.fields.nav_text.rank = 2
-- head section
m.fields.pattern = {}
m.fields.pattern.isRequired = true
m.fields.pattern.vtype = "text"
m.fields.pattern.vtype2 = "title"
m.fields.pattern.style = "display:inline;"
m.fields.pattern.style2 = ""
m.fields.pattern.style3 = "font-size: 1.3em;"
m.fields.pattern.section = "head"
m.fields.pattern.key = ""
m.fields.pattern.arg = "pattern"
m.fields.pattern.default = "title-default"
m.fields.pattern.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.problem = {}
m.fields.problem.isRequired = true
m.fields.problem.vtype = "text"
m.fields.problem.vtype2 = "body"
m.fields.problem.style = m.styles.field.h2
m.fields.problem.style2 = "color: #888888; font-style: italic;"
m.fields.problem.style3 = "display:block;"
m.fields.problem.section = "main"
m.fields.problem.key = "problem"
m.fields.problem.arg = "problem"
m.fields.problem.default = "problem-default"
m.fields.problem.rank = 2
m.fields.solution = {}
m.fields.solution.isRequired = true
m.fields.solution.vtype = "text"
m.fields.solution.vtype2 = "body"
m.fields.solution.style = m.styles.field.h2
m.fields.solution.style2 = "color: #888888; font-style: italic;"
m.fields.solution.style3 = "display:block;"
m.fields.solution.section = "main"
m.fields.solution.arg = "solution"
m.fields.solution.key = "solution"
m.fields.solution.default = "solution-default"
m.fields.solution.rank = 3
--sub-section
m.fields.event = {}
m.fields.event.isRequired = false
m.fields.event.vtype = "participant"
m.fields.event.icon = "File:Hex_icon_with_lightning_white.svg"
m.fields.event.icon_inactive = "File:Hex_icon_with_lightning_black.svg"
m.fields.event.style = m.styles.field.h2
m.fields.event.style2 = ""
m.fields.event.style3 = "display:block;"
m.fields.event.section = "participants"
m.fields.event.arg = "event"
m.fields.event.key = "event"
m.fields.event.rank = 1
m.fields.gender_gap = {}
m.fields.gender_gap.isRequired = false
m.fields.gender_gap.vtype = "participant"
m.fields.gender_gap.icon = "File:Hex_icon_with_hand_white.svg"
m.fields.gender_gap.icon_inactive = "File:Hex_icon_with_hand_black.svg"
m.fields.gender_gap.style = m.styles.field.h2
m.fields.gender_gap.style2 = ""
m.fields.gender_gap.style3 = "display:block;"
m.fields.gender_gap.section = "participants"
m.fields.gender_gap.arg = "gender_gap"
m.fields.gender_gap.key = "gender-gap"
m.fields.gender_gap.rank = 2
m.fields.online_engagement = {}
m.fields.online_engagement.isRequired = false
m.fields.online_engagement.vtype = "participant"
m.fields.online_engagement.icon = "File:Hex_icon_with_hand_white.svg"
m.fields.online_engagement.icon_inactive = "File:Hex_icon_with_hand_black.svg"
m.fields.online_engagement.style = m.styles.field.h2
m.fields.online_engagement.style2 = ""
m.fields.online_engagement.style3 = "display:block;"
m.fields.online_engagement.section = "participants"
m.fields.online_engagement.arg = "online_engagement"
m.fields.online_engagement.key = "online-engage"
m.fields.online_engagement.rank = 3
m.fields.survey = {}
m.fields.survey.isRequired = false
m.fields.survey.vtype = "participant"
m.fields.survey.icon = "File:Hex_icon_with_hand_white.svg"
m.fields.survey.icon_inactive = "File:Hex_icon_with_hand_black.svg"
m.fields.survey.style = m.styles.field.h2
m.fields.survey.style2 = ""
m.fields.survey.style3 = "display:block;"
m.fields.survey.section = "participants"
m.fields.survey.arg = "survey"
m.fields.survey.key = "survey"
m.fields.survey.rank = 4
m.fields.outreach = {}
m.fields.outreach.isRequired = false
m.fields.outreach.vtype = "participant"
m.fields.outreach.icon = "File:Hex_icon_with_hand_white.svg"
m.fields.outreach.icon_inactive = "File:Hex_icon_with_hand_black.svg"
m.fields.outreach.style = m.styles.field.h2
m.fields.outreach.style2 = ""
m.fields.outreach.style3 = "display:block;"
m.fields.outreach.section = "participants"
m.fields.outreach.arg = "outreach"
m.fields.outreach.key = "outreach"
m.fields.outreach.rank = 5
m.fields.teamwork = {}
m.fields.teamwork.isRequired = false
m.fields.teamwork.vtype = "participant"
m.fields.teamwork.icon = "File:Hex_icon_with_hand_white.svg"
m.fields.teamwork.icon_inactive = "File:Hex_icon_with_hand_black.svg"
m.fields.teamwork.style = m.styles.field.h2
m.fields.teamwork.style2 = ""
m.fields.teamwork.style3 = "display:block;"
m.fields.teamwork.section = "participants"
m.fields.teamwork.arg = "teamwork"
m.fields.teamwork.key = "team"
m.fields.teamwork.rank = 6
m.fields.evaluation = {}
m.fields.evaluation.isRequired = false
m.fields.evaluation.vtype = "participant"
m.fields.evaluation.icon = "File:Hex_icon_with_hand_white.svg"
m.fields.evaluation.icon_inactive = "File:Hex_icon_with_hand_black.svg"
m.fields.evaluation.style = m.styles.field.h2
m.fields.evaluation.style2 = ""
m.fields.evaluation.style3 = "display:block;"
m.fields.evaluation.section = "participants"
m.fields.evaluation.arg = "evaluation"
m.fields.evaluation.key = "eval"
m.fields.evaluation.rank = 7
m.fields.reporting = {}
m.fields.reporting.isRequired = false
m.fields.reporting.vtype = "participant"
m.fields.reporting.icon = "File:Hex_icon_with_hand_white.svg"
m.fields.reporting.icon_inactive = "File:Hex_icon_with_hand_black.svg"
m.fields.reporting.style = m.styles.field.h2
m.fields.reporting.style2 = ""
m.fields.reporting.style3 = "display:block;"
m.fields.reporting.section = "participants"
m.fields.reporting.arg = "reporting"
m.fields.reporting.key = "report"
m.fields.reporting.rank = 8
m.fields.organizational_design = {}
m.fields.organizational_design.isRequired = false
m.fields.organizational_design.vtype = "participant"
m.fields.organizational_design.icon = "File:Hex_icon_with_hand_white.svg"
m.fields.organizational_design.icon_inactive = "File:Hex_icon_with_hand_black.svg"
m.fields.organizational_design.style = m.styles.field.h2
m.fields.organizational_design.style2 = ""
m.fields.organizational_design.style3 = "display:block;"
m.fields.organizational_design.section = "participants"
m.fields.organizational_design.arg = "organizational_design "
m.fields.organizational_design.key = "org-design"
m.fields.organizational_design.rank = 9
m.fields.wiki_design = {}
m.fields.wiki_design.isRequired = false
m.fields.wiki_design.vtype = "participant"
m.fields.wiki_design.icon = "File:Hex_icon_with_hand_white.svg"
m.fields.wiki_design.icon_inactive = "File:Hex_icon_with_hand_black.svg"
m.fields.wiki_design.style = m.styles.field.h2
m.fields.wiki_design.style2 = ""
m.fields.wiki_design.style3 = "display:block;"
m.fields.wiki_design.section = "participants"
m.fields.wiki_design.arg = "wiki_design"
m.fields.wiki_design.key = "wiki-design"
m.fields.wiki_design.rank = 10
-- call to action section (buttons, etc)
m.fields.talk = {}
m.fields.talk.isRequired = true
m.fields.talk.vtype = "text"
m.fields.talk.vtype2 = "link"
m.fields.talk.style = "display: inline; float:left; margin-right: 1em; margin-top: .5em"
m.fields.talk.style2 = ""
m.fields.talk.style3 = ""
m.fields.talk.section = "cta"
m.fields.talk.arg = "talk"
m.fields.talk.key = "talk"
m.fields.talk.rank = 1
m.fields.join = {}
m.fields.join.isRequired = true
m.fields.join.vtype = "image"
m.fields.join.vtype2 = "ui_button"
m.fields.join.style = "display:inline; float:right;"
m.fields.join.style2 = ""
m.fields.join.style3 = ""
m.fields.join.class = "wp-join-button mw-ui-button mw-ui-progressive"
m.fields.join.section = "cta"
m.fields.join.arg = "join"
m.fields.join.key = "join"
m.fields.join.rank = 2
m.fields.endorse = {}
m.fields.endorse.isRequired = true
m.fields.endorse.vtype = "image"
m.fields.endorse.vtype2 = "ui_button"
m.fields.endorse.style = "display:inline; float:right; margin-right: 1em;"
m.fields.endorse.style2 = ""
m.fields.endorse.style3 = ""
m.fields.endorse.class = "wp-endorse-button mw-ui-button mw-ui-progressive"
m.fields.endorse.section = "cta"
m.fields.endorse.arg = "endorse"
m.fields.endorse.key = "endorse"
m.fields.endorse.rank = 3
-- below box
m.fields.timestamp = {}
m.fields.timestamp.isRequired = false
m.fields.timestamp.vtype = "text"
m.fields.timestamp.vtype2 = "body"
m.fields.timestamp.style = "display:inline; font-style: italic; font-size: .75em"
m.fields.timestamp.style2 = "margin-right: .25em"
m.fields.timestamp.style3 = ""
m.fields.timestamp.section = "below"
m.fields.timestamp.arg = "timestamp"
m.fields.timestamp.key = "time"
m.fields.timestamp.rank = 1
m.fields.creator = {}
m.fields.creator.isRequired = false
m.fields.creator.vtype = "text"
m.fields.creator.vtype2 = "body"
m.fields.creator.style = "display:inline; font-style: italic; font-size: .75em"
m.fields.creator.style2 = "margin-right: .25em"
m.fields.creator.style3 = ""
m.fields.creator.section = "below"
m.fields.creator.arg = "creator"
m.fields.creator.key = "creator"
m.fields.creator.rank = 2
--
-- categories
--
m.categories.default = "Category:Learning patterns"
m.categories.base = "Category:"
m.categories.roles = "_patterns" --should reorg LPL cat structure so that I can do this with subpages, like IdeaLab
-- m.categories.status = {}
-- m.categories.status.withdrawn = "Withdrawn"
-- m.categories.status.completed = "Completed"
-- m.categories.status.active = "Active"
return m