local m = {}
m.styles = {}
m.sections = {}
m.fields = {}
m.categories = {}
m.roles = {}
-- m.roles.creator = true
m.roles.primary_investigator = true
m.roles.collaborator = true
m.roles.contact = true
m.roles.organization = true
m.roles.wmf_coordinator = 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 = false
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 = "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
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:Wikimedia-research.png"
m.fields.nav_icon.key = ""
m.fields.nav_icon.link = "Research:Projects"
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:Projects"
m.fields.nav_text.key = "portal"
m.fields.nav_text.rank = 2
-- 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 = ""
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 = ""
m.fields.summary.default = "summary-default"
m.fields.summary.rank = 2
m.fields.start_month = {}
m.fields.start_month.isRequired = false
m.fields.start_month.vtype = "text"
m.fields.start_month.vtype2 = "body"
m.fields.start_month.style = m.styles.field.h2
m.fields.start_month.style2 = "color: #888888; font-style: italic;"
m.fields.start_month.style3 = "display:block;"
m.fields.start_month.section = "main"
m.fields.start_month.arg = "start_month"
m.fields.start_month.key = "start-month"
m.fields.start_month.default = "start-month-default"
m.fields.start_month.rank = 3
m.fields.start_year = {}
m.fields.start_year.isRequired = true
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: #888888; font-style: italic;"
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 = 4
m.fields.end_month = {}
m.fields.end_month.isRequired = false
m.fields.end_month.vtype = "text"
m.fields.end_month.vtype2 = "body"
m.fields.end_month.style = m.styles.field.h2
m.fields.end_month.style2 = "color: #888888; font-style: italic;"
m.fields.end_month.style3 = "display:block;"
m.fields.end_month.section = "main"
m.fields.end_month.arg = "end_month"
m.fields.end_month.key = "end-month"
m.fields.end_month.default = "end-month-default"
m.fields.end_month.rank = 5
m.fields.end_year = {}
m.fields.end_year.isRequired = true
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: #888888; font-style: italic;"
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 = 6
--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
m.fields.primary_investigator = {}
m.fields.primary_investigator.isRequired = false
m.fields.primary_investigator.vtype = "participant"
m.fields.primary_investigator.vtype2 = "username"
m.fields.primary_investigator.style = m.styles.field.h2
m.fields.primary_investigator.style2 = ""
m.fields.primary_investigator.style3 = "display:block;"
m.fields.primary_investigator.section = "participants"
m.fields.primary_investigator.arg = "primary_investigator"
m.fields.primary_investigator.key = "primary-investigator"
m.fields.primary_investigator.rank = 1
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 = 2
m.fields.organization = {}
m.fields.organization.isRequired = false
m.fields.organization.vtype = "participant"
m.fields.organization.vtype2 = "email"
m.fields.organization.style = m.styles.field.h2
m.fields.organization.style2 = ""
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 = 3
m.fields.collaborator = {}
m.fields.collaborator.isRequired = false
m.fields.collaborator.vtype = "participant"
m.fields.collaborator.vtype2 = "username"
m.fields.collaborator.style = m.styles.field.h2
m.fields.collaborator.style2 = ""
m.fields.collaborator.style3 = "display:block;"
m.fields.collaborator.section = "participants"
m.fields.collaborator.arg = "collaborator"
m.fields.collaborator.key = "collaborator"
m.fields.collaborator.rank = 4
m.fields.wmf_coordinator = {}
m.fields.wmf_coordinator.isRequired = false
m.fields.wmf_coordinator.vtype = "participant"
m.fields.wmf_coordinator.vtype2 = "username"
m.fields.wmf_coordinator.style = m.styles.field.h2
m.fields.wmf_coordinator.style2 = ""
m.fields.wmf_coordinator.style3 = "display:block;"
m.fields.wmf_coordinator.section = "participants"
m.fields.wmf_coordinator.arg = "wmf_coordinator"
m.fields.wmf_coordinator.key = "wmf-coordinator"
m.fields.wmf_coordinator.rank = 5
-- 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 = "font-style: italic; font-size: .75em" --"display:inline; float:left; 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.open_access = {}
m.fields.open_access.isRequired = false
m.fields.open_access.toLowerCase = true
m.fields.open_access.vtype = "image"
m.fields.open_access.vtype2 = "badge"
m.fields.open_access.style = "display:inline; padding-right:.25em; font-size:.75em;"
m.fields.open_access.style2 = ""
m.fields.open_access.style3 = ""
m.fields.open_access.section = "below"
m.fields.open_access.width = "20x20px"
m.fields.open_access.alignment = "top"
m.fields.open_access.arg = "open_access"
m.fields.open_access.icon = "File:Open_Access_logo_PLoS.svg"
m.fields.open_access.key = "open-access"
m.fields.open_access.link = ":Category:Open_access_projects"
m.fields.open_access.rank = 2
m.fields.open_data = {}
m.fields.open_data.isRequired = false
m.fields.open_data.toLowerCase = true
m.fields.open_data.vtype = "image"
m.fields.open_data.vtype2 = "badge"
m.fields.open_data.style = "display:inline; padding-right:.25em; font-size: .75em;"
m.fields.open_data.style2 = ""
m.fields.open_data.style3 = ""
m.fields.open_data.section = "below"
m.fields.open_data.width = "20x20px"
m.fields.open_data.alignment = "top"
m.fields.open_data.arg = "open_data"
m.fields.open_data.icon = "File:Download_font_awesome.svg"
m.fields.open_data.key = "open-data"
m.fields.open_data.link = ":Category:Open_data_projects"
m.fields.open_data.rank = 3
m.fields.open_source = {}
m.fields.open_source.isRequired = false
m.fields.open_source.toLowerCase = true
m.fields.open_source.vtype = "image"
m.fields.open_source.vtype2 = "badge"
m.fields.open_source.style = "display:inline; padding-right:.25em; font-size: .75em;"
m.fields.open_source.style2 = ""
m.fields.open_source.style3 = ""
m.fields.open_source.section = "below"
m.fields.open_source.width = "20x20px"
m.fields.open_source.alignment = "top"
m.fields.open_source.arg = "open_source"
m.fields.open_source.icon = "File:Open_Source_Initiative_keyhole.svg"
m.fields.open_source.key = "open-source"
m.fields.open_source.link = ":Category:Open_source_projects"
m.fields.open_source.rank = 4
--
-- categories
--
m.categories.base = "Category:"
m.categories.default = "Category:Research projects"
m.categories.status = {}
m.categories.status.planned = "Planned research projects"
m.categories.status.proposed = "Proposed research projects"
m.categories.status.active = "Active research projects"
m.categories.status.completed = "Completed research projects"
m.categories.open_access = "Open access projects"
m.categories.open_data = "Open data projects"
m.categories.open_source = "Open source projects"
return m