Module:Probox/General Support/Renewal
Appearance
Module documentation
[create]
local m = {}
m.styles = {}
m.sections = {}
m.fields = {}
m.categories = {}
m.templates = {}
m.roles = {}
m.roles.grantee = true
m.roles.contact = true
m.roles.organization = true
m.roles.website = true
m.roles.default = "grantee"
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 = 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: #fff; color: #000000; border-left: 1px solid #a2a9b1; border-top: none; border-right: 1px solid #ddd; border-bottom: 3px solid #D0D0D0; border-radius: 2px; padding: 12px"
m.styles.section = {}
m.styles.section.above = ""
m.styles.section.nav = "background-color: #EE8019; padding: 12px; font-weight: 700;"
m.styles.section.head = "margin-bottom:1em;"
m.styles.section.main = "margin-bottom:1em;"
m.styles.section.participants = "background-color: #fff; border: 1px solid #a2a9b1; border-radius: 2px; margin-bottom:.5em; padding: 12px;"
m.styles.section.cta = "clear:both;"
m.styles.section.below = ""
m.styles.field = {}
m.styles.field.h1 = ""
m.styles.field.h2 = "margin-bottom: 12px;"
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 = "padding-right: .5em; color: #54595d"
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 = "display:inline"
m.fields.nav_text.style2 = "color: #202122; text-decoration: none"
m.fields.nav_text.style3 = ""
m.fields.nav_text.section = "nav"
m.fields.nav_text.arg = "nav_text"
m.fields.nav_text.default = "Grants:Programs/Wikimedia Community Fund/Renewal"
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 = "display:inline;"
m.fields.project.style2 = ""
m.fields.project.style3 = "font-weight: 700; color: #202122"
m.fields.project.section = "head"
m.fields.project.arg = "project"
m.fields.project.key = ""
m.fields.project.default = "title-default"
m.fields.project.rank = 2
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 = "head"
m.fields.image.arg = "image"
m.fields.image.key = ""
m.fields.image.width = "25px"
m.fields.image.rank = 1
-- main section
m.fields.summary = {}
m.fields.summary.isRequired = false
m.fields.summary.vtype = "text"
m.fields.summary.vtype2 = "body"
m.fields.summary.style = m.styles.field.h2
m.fields.summary.style2 = "color: #54595d;"
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 = 1
m.fields.id = {}
m.fields.id.isRequired = false
m.fields.id.vtype = "text"
m.fields.id.vtype2 = "body"
m.fields.id.style = m.styles.field.h2
m.fields.id.style2 = "color: #888888; font-style: italic;"
m.fields.id.style3 = "display:block;"
m.fields.id.section = "main"
m.fields.id.arg = "id"
m.fields.id.key = "id"
m.fields.id.rank = 2
-- Removing goal from probox field for now (is currently part of application outside of probox)
-- m.fields.goal = {}
-- m.fields.goal.isRequired = true
-- m.fields.goal.vtype = "text"
-- m.fields.goal.vtype2 = "body"
-- m.fields.goal.style = m.styles.field.h2
-- m.fields.goal.style2 = "color: #54595d;"
-- 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 = 3
m.fields.start_date = {}
m.fields.start_date.isRequired = false
m.fields.start_date.vtype = "text"
m.fields.start_date.vtype2 = "body"
m.fields.start_date.style = m.styles.field.h2
m.fields.start_date.style2 = "color: #54595d;"
m.fields.start_date.style3 = "display:block;"
m.fields.start_date.section = "main"
m.fields.start_date.arg = "start_date"
m.fields.start_date.key = "start-date"
m.fields.start_date.rank = 4
m.fields.start_year = {}
m.fields.start_year.isRequired = false
m.fields.start_year.vtype = "text"
m.fields.start_year.vtype2 = "body"
m.fields.start_year.style = m.styles.field.h2
m.fields.start_year.style2 = "color: #54595d;"
m.fields.start_year.style3 = "display:block;"
m.fields.start_year.section = "main"
m.fields.start_year.arg = "start_year"
m.fields.start_year.key = "start-year"
m.fields.start_year.default = "start-year-default"
m.fields.start_year.rank = 5
m.fields.end_date = {}
m.fields.end_date.isRequired = false
m.fields.end_date.vtype = "text"
m.fields.end_date.vtype2 = "body"
m.fields.end_date.style = m.styles.field.h2
m.fields.end_date.style2 = "color: #54595d;"
m.fields.end_date.style3 = "display:block;"
m.fields.end_date.section = "main"
m.fields.end_date.arg = "end_date"
m.fields.end_date.key = "end-date"
m.fields.end_date.rank = 6
m.fields.end_year = {}
m.fields.end_year.isRequired = false
m.fields.end_year.vtype = "text"
m.fields.end_year.vtype2 = "body"
m.fields.end_year.style = m.styles.field.h2
m.fields.end_year.style2 = "color: #54595d;"
m.fields.end_year.style3 = "display:block;"
m.fields.end_year.section = "main"
m.fields.end_year.arg = "end_year"
m.fields.end_year.key = "end-year"
m.fields.end_year.default = "end-year-default"
m.fields.end_year.rank = 7
m.fields.amount_local = {}
m.fields.amount_local.isRequired = false
m.fields.amount_local.vtype = "text"
m.fields.amount_local.vtype2 = "body"
m.fields.amount_local.style = m.styles.field.h2
m.fields.amount_local.style2 = "color: #54595d;"
m.fields.amount_local.style3 = "display:block;"
m.fields.amount_local.section = "main"
m.fields.amount_local.arg = "amount_local"
m.fields.amount_local.key = "amount-local"
m.fields.amount_local.rank = 8
m.fields.amount = {}
m.fields.amount.isRequired = false
m.fields.amount.vtype = "text"
m.fields.amount.vtype2 = "body"
m.fields.amount.style = m.styles.field.h2
m.fields.amount.style2 = "color: #54595d;"
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 = 9
m.fields.amount_recommended = {}
m.fields.amount_recommended.isRequired = false
m.fields.amount_recommended.vtype = "text"
m.fields.amount_recommended.vtype2 = "body"
m.fields.amount_recommended.style = m.styles.field.h2
m.fields.amount_recommended.style2 = "color: #54595d;"
m.fields.amount_recommended.style3 = "display:block;"
m.fields.amount_recommended.section = "main"
m.fields.amount_recommended.arg = "amount-recommended"
m.fields.amount_recommended.key = "amount-recommended"
m.fields.amount_recommended.rank = 10
m.fields.amount_recommended_local = {}
m.fields.amount_recommended_local.isRequired = false
m.fields.amount_recommended_local.vtype = "text"
m.fields.amount_recommended_local.vtype2 = "body"
m.fields.amount_recommended_local.style = m.styles.field.h2
m.fields.amount_recommended_local.style2 = "color: #54595d;"
m.fields.amount_recommended_local.style3 = "display:block;"
m.fields.amount_recommended_local.section = "main"
m.fields.amount_recommended_local.arg = "amount-recommended-local"
m.fields.amount_recommended_local.key = "amount-recommended-local"
m.fields.amount_recommended_local.rank = 11
m.fields.grant_type = {}
m.fields.grant_type.isRequired = true
m.fields.grant_type.vtype = "text"
m.fields.grant_type.vtype2 = "body"
m.fields.grant_type.style = m.styles.field.h2
m.fields.grant_type.style2 = "color: #54595d;"
m.fields.grant_type.style3 = "display:block;"
m.fields.grant_type.section = "main"
m.fields.grant_type.arg = "grant_type"
m.fields.grant_type.key = "type"
m.fields.grant_type.default = "type-default"
m.fields.grant_type.rank = 12
m.fields.nonprofit = {}
m.fields.nonprofit.isRequired = false
m.fields.nonprofit.vtype = "text"
m.fields.nonprofit.vtype2 = "body"
m.fields.nonprofit.style = m.styles.field.h2
m.fields.nonprofit.style2 = "color: #54595d;"
m.fields.nonprofit.style3 = "display:block;"
m.fields.nonprofit.section = "main"
m.fields.nonprofit.arg = "nonprofit"
m.fields.nonprofit.key = "nonprofit"
m.fields.nonprofit.rank = 13
m.fields.region = {}
m.fields.region.isRequired = false
m.fields.region.vtype = "text"
m.fields.region.vtype2 = "body"
m.fields.region.style = m.styles.field.h2
m.fields.region.style2 = "color: #54595d;"
m.fields.region.style3 = "display:block;"
m.fields.region.section = "main"
m.fields.region.arg = "region"
m.fields.region.key = "region"
m.fields.region.rank = 14
m.fields.fiscalyear = {}
m.fields.fiscalyear.isRequired = false
m.fields.fiscalyear.vtype = "text"
m.fields.fiscalyear.vtype2 = "body"
m.fields.fiscalyear.style = m.styles.field.h2
m.fields.fiscalyear.style2 = "color: #54595d;"
m.fields.fiscalyear.style3 = "display:block;"
m.fields.fiscalyear.section = "main"
m.fields.fiscalyear.arg = "fiscalyear"
m.fields.fiscalyear.key = "fiscalyear"
m.fields.fiscalyear.rank = 15
m.fields.round = {}
m.fields.round.isRequired = false
m.fields.round.vtype = "text"
m.fields.round.vtype2 = "body"
m.fields.round.style = m.styles.field.h2
m.fields.round.style2 = "color: #54595d;"
m.fields.round.style3 = "display:block;"
m.fields.round.section = "main"
m.fields.round.arg = "round"
m.fields.round.key = "round"
m.fields.round.rank = 16
--sub-section
m.fields.grantee = {}
m.fields.grantee.isRequired = false
m.fields.grantee.vtype = "text"
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 = 2
m.fields.contact = {}
m.fields.contact.isRequired = false
m.fields.contact.vtype = "text"
m.fields.contact.vtype2 = "body"
m.fields.contact.style = m.styles.field.h2
m.fields.contact.style2 = "color: #54595d;"
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.organization = {}
m.fields.organization.isRequired = false
m.fields.organization.vtype = "text"
m.fields.organization.vtype2 = "body"
m.fields.organization.style = m.styles.field.h2
m.fields.organization.style2 = "color: #54595d;"
m.fields.organization.style3 = "display:block;"
m.fields.organization.section = "participants"
m.fields.organization.arg = "organization"
m.fields.organization.key = "organization"
m.fields.organization.rank = 1
-- 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.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 = 2
-- 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.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 = ":foundation:Friendly_space_policy"
m.fields.friendlyspace.key = "friendlyspace"
m.fields.friendlyspace.rank = 2
m.fields.ucc = {}
m.fields.ucc.isRequired = true
m.fields.ucc.vtype = "text"
m.fields.ucc.vtype2 = "link"
m.fields.ucc.width = "25px"
m.fields.ucc.alignment = "top"
m.fields.ucc.style = ""
m.fields.ucc.style2 = ""
m.fields.ucc.style3 = ""
m.fields.ucc.section = "below"
m.fields.ucc.arg = "ucc"
m.fields.ucc.default = "Universal_Code_of_Conduct"
m.fields.ucc.key = "ucc"
m.fields.ucc.rank = 3
m.fields.privacystatement = {}
m.fields.privacystatement.isRequired = true
m.fields.privacystatement.vtype = "text"
m.fields.privacystatement.vtype2 = "link"
m.fields.privacystatement.width = "25px"
m.fields.privacystatement.alignment = "top"
m.fields.privacystatement.style = ""
m.fields.privacystatement.style2 = ""
m.fields.privacystatement.style3 = ""
m.fields.privacystatement.section = "below"
m.fields.privacystatement.arg = "privacystatement"
m.fields.privacystatement.default = ":foundation:Legal:Grant Application Form Privacy Statement"
m.fields.privacystatement.key = "privacystatement"
m.fields.privacystatement.rank = 4
--m.fields.index = {}
--m.fields.index.isRequired = true
--m.fields.index.vtype = "text"
--m.fields.index.vtype2 = "link"
--m.fields.index.width = "25px"
--m.fields.index.alignment = "top"
--m.fields.index.style = ""
--m.fields.index.style2 = ""
--m.fields.index.style3 = ""
--m.fields.index.section = "below"
--m.fields.index.arg = "index"
--m.fields.index.default = "Grants:Project/General Support/Browse_applications"
--m.fields.index.key = "index"
--m.fields.index.rank = 5
--
-- categories
--
m.categories.default = "Category:Wikimedia Community Fund/Proposals"
m.categories.base = "Category:Wikimedia Community Fund/Proposals"
m.categories.status = {}
m.categories.status.draft = "/Draft"
m.categories.status.under_review = "/Under review"
m.categories.status.awaiting_grantee_reply = "/Under review"
m.categories.status.proposed = "/Proposed"
m.categories.status.ineligible = "/Ineligible"
m.categories.status.funded = "/Funded"
m.categories.status.approved = "/Funded"
m.categories.status.not_funded = "/Not_funded"
m.categories.status.withdrawn = "/Withdrawn"
m.categories.status.completed = "/Completed"
m.categories.status.incomplete = "/Incomplete"
m.categories.idealab = {}
m.categories.idealab.yes = "/IdeaLab"
m.templates.passArg = true
m.templates.status = {}
return m