Jump to content

Module:Co-op profile/mentor

From Wikipedia, the free encyclopedia

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

m.styles.box = {}
m.styles.box.outer = "width: 730px; margin: 20px auto 30px auto;"
m.styles.box.inner = "margin-bottom:40px;text-align:center;"

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
--
m.fields.logo1 = {}
m.fields.logo1.isRequired = true
m.fields.logo1.default = "File:logo-coop.png"
m.fields.logo1.ftype = "image"
m.fields.logo1.style1 = "float: left;width:55px;text-align:center;"
m.fields.logo1.style2 = "35px"
m.fields.logo1.style3 = ""
m.fields.logo1.rank = 1

m.fields.logo2 = {}
m.fields.logo2.isRequired = true
m.fields.logo2.default = "File:Ic-user.png"
m.fields.logo2.ftype = "image"
m.fields.logo2.style1 = "float:right;display:block;width:35px;height: 35px;border-radius:17.5px;overflow:hidden;margin-top:20px;"
m.fields.logo2.style2 = "35px"
m.fields.logo2.style3 = ""
m.fields.logo2.rank = 2

m.fields.image = {}
m.fields.image.isRequired = true
m.fields.image.default = "File:Ambidextrie.svg"
m.fields.image.ftype = "image"
m.fields.image.style1 = "width:110px;display:block;border-radius:20px;margin:0 auto;overflow:hidden;"
m.fields.image.style2 = "110px"
m.fields.image.style3 = ""
m.fields.image.rank = 3

m.fields.username = {}
m.fields.username.isRequired = true
m.fields.username.default = "please enter your username"
m.fields.username.prefix = ""
m.fields.username.ftype = "wikilink"
m.fields.username.style1 = "font-family: 'Glober', 'Open sans', sans-serif;font-size: 16px;color:#947D78; margin: 5px auto; text-align:center;"
m.fields.username.style2 = ""
m.fields.username.style3 = ""
m.fields.username.rank = 4

-- m.fields.name = {}
-- m.fields.name.isRequired = true
-- m.fields.name.default = "what would you like to be called?"
-- m.fields.name.prefix = "'''Nickname:''' "
-- m.fields.name.ftype = "text"
-- m.fields.name.style1 = m.styles.field.h1
-- m.fields.name.style2 = ""
-- m.fields.name.style3 = ""
-- m.fields.name.rank = 3

m.fields.about = {}
m.fields.about.isRequired = true
m.fields.about.default = "tell us a little about yourself"
m.fields.about.prefix = ""
m.fields.about.ftype = "text"
m.fields.about.style1 = "font-family: 'Glober', 'Open sans', sans-serif;font-size: 16px;color:#947D78; margin: 5px auto; text-align:center;"
m.fields.about.style2 = ""
m.fields.about.style3 = ""
m.fields.about.rank = 5

m.fields.skills = {}
m.fields.skills.isRequired = true
m.fields.skills.default = "'''My skills'''"
m.fields.skills.prefix = ""
m.fields.skills.ftype = "text"
m.fields.skills.style1 = "font-family: 'Glober', 'Open sans', sans-serif;font-size: 16px;color:#947D78; margin: 5px auto; text-align:center;"
m.fields.skills.style2 = ""
m.fields.skills.style3 = ""
m.fields.skills.rank = 6

m.fields.writing = {}
m.fields.writing.isRequired = false
m.fields.writing.hasCategories = true
m.fields.writing.prefix = "Writing"
m.fields.writing.ftype = "choice"
m.fields.writing.style1 = "font-family: 'Glober', 'Open sans', sans-serif;font-size: 16px;color:#947D78; margin: 5px auto; text-align:center;"
m.fields.writing.style2 = ""
m.fields.writing.style3 = ""
m.fields.writing.rank = 7

m.fields.communication = {}
m.fields.communication.isRequired = false
m.fields.communication.hasCategories = true
m.fields.communication.prefix = "Communication"
m.fields.communication.ftype = "choice"
m.fields.communication.style1 = "font-family: 'Glober', 'Open sans', sans-serif;font-size: 16px;color:#947D78; margin: 5px auto; text-align:center;"
m.fields.communication.style2 = ""
m.fields.communication.style3 = ""
m.fields.communication.rank = 8

m.fields.best_practices = {}
m.fields.best_practices.isRequired = false
m.fields.best_practices.hasCategories = true
m.fields.best_practices.prefix = "Best practices"
m.fields.best_practices.ftype = "choice"
m.fields.best_practices.style1 = "font-family: 'Glober', 'Open sans', sans-serif;font-size: 16px;color:#947D78; margin: 5px auto; text-align:center;"
m.fields.best_practices.style2 = ""
m.fields.best_practices.style3 = ""
m.fields.best_practices.rank = 9

m.fields.technical_editing = {}
m.fields.technical_editing.isRequired = false
m.fields.technical_editing.hasCategories = true
m.fields.technical_editing.prefix = "Technical editing"
m.fields.technical_editing.ftype = "choice"
m.fields.technical_editing.style1 = "font-family: 'Glober', 'Open sans', sans-serif;font-size: 16px;color:#947D78; margin: 5px auto; text-align:center;"
m.fields.technical_editing.style2 = ""
m.fields.technical_editing.style3 = ""
m.fields.technical_editing.rank = 10

m.fields.images_and_media = {}
m.fields.images_and_media.isRequired = false
m.fields.images_and_media.hasCategories = true
m.fields.images_and_media.prefix = "Images and media"
m.fields.images_and_media.ftype = "choice"
m.fields.images_and_media.style1 = "font-family: 'Glober', 'Open sans', sans-serif;font-size: 16px;color:#947D78; margin: 5px auto; text-align:center;"
m.fields.images_and_media.style2 = ""
m.fields.images_and_media.style3 = ""
m.fields.images_and_media.rank = 11

m.fields.general_editing = {}
m.fields.general_editing.isRequired = false
m.fields.general_editing.hasCategories = true
m.fields.general_editing.prefix = "General editing"
m.fields.general_editing.ftype = "choice"
m.fields.general_editing.style1 = "font-family: 'Glober', 'Open sans', sans-serif;font-size: 16px;color:#947D78; margin: 5px auto; text-align:center;"
m.fields.general_editing.style2 = ""
m.fields.general_editing.style3 = ""
m.fields.general_editing.rank = 12

m.fields.unavailable = {}
m.fields.unavailable.isRequired = false
m.fields.unavailable.hasCategories = true
m.fields.unavailable.prefix = ""
m.fields.unavailable.ftype = ""
m.fields.unavailable.style1 = ""
m.fields.unavailable.style2 = ""
m.fields.unavailable.style3 = ""
m.fields.unavailable.rank = 13

m.fields.timestamp = {}
m.fields.timestamp.isRequired = true
m.fields.timestamp.default = "join date unknown"
m.fields.timestamp.prefix = "'''Joined on:<br/>''' "
m.fields.timestamp.ftype = "text"
m.fields.timestamp.style1 = "font-family: 'Glober', 'Open sans', sans-serif;font-size: 16px;color:#947D78; margin: 5px auto; text-align:center;"
m.fields.timestamp.style2 = ""
m.fields.timestamp.style3 = ""
m.fields.timestamp.rank = 14

--
-- categories
--
m.categories.default = "Category:Co-op_mentor"
m.categories.unavailable = "Category:Co-op_mentors_not_taking_new_requests"

m.categories.writing = "Category:Co-op mentors with writing skills"
m.categories.communication = "Category:Co-op mentors with communication skills"
m.categories.best_practices = "Category:Co-op mentors with best practice skills"
m.categories.technical_editing = "Category:Co-op mentors with technical editing skills"
m.categories.images_and_media = "Category:Co-op_mentors_with_multimedia_skills"
m.categories.general_editing = "Category:Co-op mentors with general editing skills"

return m