Module:Probox/IEG
Appearance
local m = {}
m.styles = {}
m.sections = {}
m.fields = {}
m.categories = {}
m.templates = {}
m.roles = {}
-- m.roles.creator = true
m.roles.volunteer = true
m.roles.advisor = true
m.roles.grantee = true
m.roles.contact = true
m.roles.designer = true
m.roles.developer = true
m.roles.project_manager = true
m.roles.community_organizer = true
m.roles.researcher = true
m.roles.default = "volunteer"
m.sections.above = true
m.sections.nav = true
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.wrapper = ""
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: #58595B; 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
m.fields.status = {}
m.fields.status.isRequired = true
m.fields.status.toLowerCase = 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_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:#ADC2E4"
m.fields.nav_text.style3 = ""
m.fields.nav_text.section = "nav"
m.fields.nav_text.arg = "nav_text"
m.fields.nav_text.default = "Grants:IEG"
m.fields.nav_text.key = "portal"
m.fields.nav_text.rank = 1
-- head section
m.fields.project = {}
m.fields.project.isRequired = true
m.fields.project.vtype = "text"
m.fields.project.vtype2 = "title"
m.fields.project.style = m.styles.field.h1
m.fields.project.style2 = ""
m.fields.project.style3 = "font-size: 1.3em;"
m.fields.project.section = "head"
m.fields.project.arg = "project"
m.fields.project.key = "title"
m.fields.project.default = "title-default"
m.fields.project.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 = "summary"
m.fields.summary.default = "summary-default"
m.fields.summary.rank = 2
m.fields.target = {}
m.fields.target.isRequired = true
m.fields.target.vtype = "text"
m.fields.target.vtype2 = "body"
m.fields.target.style = m.styles.field.h2
m.fields.target.style2 = "color: #888888; font-style: italic;"
m.fields.target.style3 = "display:block;"
m.fields.target.section = "main"
m.fields.target.arg = "target"
m.fields.target.key = "target"
m.fields.target.default = "target-default"
m.fields.target.rank = 4
m.fields.goal = {}
m.fields.goal.isRequired = true
m.fields.goal.toLowerCase = true
m.fields.goal.vtype = "text"
m.fields.goal.vtype2 = "body"
m.fields.goal.style = m.styles.field.h2
m.fields.goal.style2 = "color: #888888; font-style: italic;"
m.fields.goal.style3 = "display:block;"
m.fields.goal.section = "main"
m.fields.goal.arg = "goal"
m.fields.goal.key = "goal"
m.fields.goal.default = "goal-default"
m.fields.goal.rank = 5
m.fields.theme = {}
m.fields.theme.isRequired = false
m.fields.theme.toLowerCase = true
m.fields.theme.vtype = "text"
m.fields.theme.vtype2 = "body"
m.fields.theme.style = m.styles.field.h2
m.fields.theme.style2 = "color: #888888; font-style: italic;"
m.fields.theme.style3 = "display:block;"
m.fields.theme.section = "main"
m.fields.theme.arg = "theme"
m.fields.theme.key = "theme"
m.fields.theme.rank = 6
m.fields.amount = {}
m.fields.amount.isRequired = true
m.fields.amount.vtype = "text"
m.fields.amount.vtype2 = "body"
m.fields.amount.style = m.styles.field.h2
m.fields.amount.style2 = "color: #888888; font-style: italic;"
m.fields.amount.style3 = "display:block;"
m.fields.amount.section = "main"
m.fields.amount.arg = "amount"
m.fields.amount.key = "amount"
m.fields.amount.default = "amount-default"
m.fields.amount.rank = 7
-- m.fields.year = {}
-- m.fields.year.isRequired = true
-- m.fields.year.vtype = "text"
-- m.fields.year.vtype2 = "body"
-- m.fields.year.style = m.styles.field.h2
-- m.fields.year.style2 = "color: #888888; font-style: italic;"
-- m.fields.year.style3 = "display:block;"
-- m.fields.year.section = "main"
-- m.fields.year.arg = "year"
-- m.fields.year.key = "year"
-- m.fields.year.default = "year-default"
-- m.fields.year.rank = 6
-- m.fields.round = {}
-- m.fields.round.isRequired = true
-- m.fields.round.vtype = "text"
-- m.fields.round.vtype2 = "body"
-- m.fields.round.style = m.styles.field.h2
-- m.fields.round.style2 = "color: #888888; font-style: italic;"
-- m.fields.round.style3 = "display:block;"
-- m.fields.round.section = "main"
-- m.fields.round.arg = "round"
-- m.fields.round.key = "round"
-- m.fields.round.default = "round-default"
-- m.fields.round.rank = 7
--sub-section
m.fields.more_participants = {}
m.fields.more_participants.key = "more-participants"
-- 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
m.fields.grantee = {}
m.fields.grantee.isRequired = false
m.fields.grantee.vtype = "participant"
m.fields.grantee.vtype2 = "username"
m.fields.grantee.style = m.styles.field.h2
m.fields.grantee.style2 = ""
m.fields.grantee.style3 = "display:block;"
m.fields.grantee.section = "participants"
m.fields.grantee.arg = "grantee"
m.fields.grantee.key = "grantee"
m.fields.grantee.rank = 1
m.fields.advisor = {}
m.fields.advisor.isRequired = false
m.fields.advisor.vtype = "participant"
m.fields.advisor.vtype2 = "username"
m.fields.advisor.style = m.styles.field.h2
m.fields.advisor.style2 = ""
m.fields.advisor.style3 = "display:block;"
m.fields.advisor.section = "participants"
m.fields.advisor.arg = "advisor"
m.fields.advisor.key = "advisor"
m.fields.advisor.rank = 2
m.fields.contact = {}
m.fields.contact.isRequired = false
m.fields.contact.vtype = "participant"
m.fields.contact.vtype2 = "email"
m.fields.contact.style = m.styles.field.h2
m.fields.contact.style2 = ""
m.fields.contact.style3 = "display:block;"
m.fields.contact.section = "participants"
m.fields.contact.arg = "contact"
m.fields.contact.key = "contact"
m.fields.contact.rank = 3
m.fields.volunteer = {}
m.fields.volunteer.isRequired = false
m.fields.volunteer.vtype = "participant"
m.fields.volunteer.vtype2 = "username"
m.fields.volunteer.style = m.styles.field.h2
m.fields.volunteer.style2 = ""
m.fields.volunteer.style3 = "display:block;"
m.fields.volunteer.section = "participants"
m.fields.volunteer.arg = "volunteer"
m.fields.volunteer.key = "volunteer"
m.fields.volunteer.rank = 4
m.fields.project_manager = {}
m.fields.project_manager.isRequired = false
m.fields.project_manager.vtype = "participant"
m.fields.project_manager.vtype2 = "username"
m.fields.project_manager.style = m.styles.field.h2
m.fields.project_manager.style2 = ""
m.fields.project_manager.style3 = "display:block;"
m.fields.project_manager.section = "participants"
m.fields.project_manager.arg = "project_manager"
m.fields.project_manager.key = "project-manager"
m.fields.project_manager.rank = 5
m.fields.community_organizer = {}
m.fields.community_organizer.isRequired = false
m.fields.community_organizer.vtype = "participant"
m.fields.community_organizer.vtype2 = "username"
m.fields.community_organizer.style = m.styles.field.h2
m.fields.community_organizer.style2 = ""
m.fields.community_organizer.style3 = "display:block;"
m.fields.community_organizer.section = "participants"
m.fields.community_organizer.arg = "community_organizer"
m.fields.community_organizer.key = "community-organizer"
m.fields.community_organizer.rank = 6
m.fields.researcher = {}
m.fields.researcher.isRequired = false
m.fields.researcher.vtype = "participant"
m.fields.researcher.vtype2 = "username"
m.fields.researcher.style = m.styles.field.h2
m.fields.researcher.style2 = ""
m.fields.researcher.style3 = "display:block;"
m.fields.researcher.section = "participants"
m.fields.researcher.arg = "researcher"
m.fields.researcher.key = "researcher"
m.fields.researcher.rank = 7
m.fields.designer = {}
m.fields.designer.isRequired = false
m.fields.designer.vtype = "participant"
m.fields.designer.vtype2 = "username"
m.fields.designer.style = m.styles.field.h2
m.fields.designer.style2 = ""
m.fields.designer.style3 = "display:block;"
m.fields.designer.section = "participants"
m.fields.designer.arg = "designer"
m.fields.designer.key = "designer"
m.fields.designer.rank = 8
m.fields.developer = {}
m.fields.developer.isRequired = false
m.fields.developer.vtype = "participant"
m.fields.developer.vtype2 = "username"
m.fields.developer.style = m.styles.field.h2
m.fields.developer.style2 = ""
m.fields.developer.style3 = "display:block;"
m.fields.developer.section = "participants"
m.fields.developer.arg = "developer"
m.fields.developer.key = "developer"
m.fields.developer.rank = 9
-- 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 = "timestamp"
m.fields.timestamp.rank = 1
m.fields.round = {}
m.fields.round.isRequired = false
m.fields.round.vtype = "text"
m.fields.round.vtype2 = "title"
m.fields.round.style = m.styles.field.h2
m.fields.round.style2 = "color: #888888; font-weight: bold;"
m.fields.round.style3 = "display:block;"
m.fields.round.section = "below"
m.fields.round.arg = "round"
m.fields.round.key = "round"
m.fields.round.rank = 2
m.fields.friendlyspace = {}
m.fields.friendlyspace.isRequired = true
m.fields.friendlyspace.vtype = "text"
m.fields.friendlyspace.vtype2 = "link"
m.fields.friendlyspace.width = "25px"
m.fields.friendlyspace.alignment = "top"
m.fields.friendlyspace.style = ""
m.fields.friendlyspace.style2 = ""
m.fields.friendlyspace.style3 = ""
m.fields.friendlyspace.section = "below"
m.fields.friendlyspace.arg = "friendlyspace"
m.fields.friendlyspace.default = "Grants:Friendly_space_expectations"
m.fields.friendlyspace.key = "friendlyspace"
m.fields.friendlyspace.rank = 3
--
-- categories
--
m.categories.base = "Category:"
m.categories.status = {}
m.categories.status.withdrawn = "IEG/Proposals/Withdrawn"
m.categories.status.completed = "IEG/Proposals/Completed"
m.categories.status.proposed = "IEG/Proposals/Proposed"
m.categories.status.selected = "IEG/Proposals/Selected"
m.categories.status.not_selected = "IEG/Proposals/Not selected"
m.categories.status.provisionally_approved = "IEG/Proposals/Provisionally approved"
m.categories.status.ineligible = "IEG/Proposals/Ineligible"
m.categories.status.draft = "IEG/Proposals/Draft"
m.categories.status.under_review = "IEG/Proposals/Review"
m.categories.round = {}
m.categories.round.round_1_2015 = "IEG_2015_round_1"
m.categories.round.round_2_2015 = "IEG_2015_round_2"
m.categories.round.round_1_2016 = "IEG_2016_round_1"
-- should be moved to IEG/Theme/etc...
m.categories.theme = {}
m.categories.theme.offline = "Grants/Theme/Offline"
m.categories.theme.online = "Grants/Theme/Online"
m.categories.theme.tools = "Grants/Theme/Tools"
m.categories.theme.research = "Grants/Theme/Research"
m.categories.theme.offline_outreach_and_partnerships = "Grants/Theme/Offline"
m.categories.theme.online_community_organizing = "Grants/Theme/Online"
m.categories.goal = {}
m.categories.goal.increase_reach = "IEG/Strategic priority/Reach"
m.categories.goal.improve_quality = "IEG/Strategic priority/Quality"
m.categories.goal.increase_participation = "IEG/Strategic priority/Participation"
m.categories.goal.increasing_reach = "IEG/Strategic priority/Reach"
m.categories.goal.improving_quality = "IEG/Strategic priority/Quality"
m.categories.goal.increasing_participation = "IEG/Strategic priority/Participation"
m.categories.goal.reach = "IEG/Strategic priority/Reach"
m.categories.goal.quality = "IEG/Strategic priority/Quality"
m.categories.goal.participation = "IEG/Strategic priority/Participation"
-- these won't work until base is changed
-- m.categories.base = "Category:IdeaLab/Ideas/"
-- m.categories.roles = "/Wanted"
m.categories.idealab = {}
m.categories.idealab.yes = "IEG/Proposals/IdeaLab"
--
-- navigation templates
--
m.templates.passArg = false
m.templates.status = {} -- add nav template to top, based on proposal status
m.templates.status.selected = "IEG/Proposals/Selected/Tabs"
m.templates.status.completed = "IEG/Proposals/Completed/Tabs"
return m