MediaWiki:Gadget-formWizard/Co-op/Learner

/* WP:Co-op - create and expand learner profile form wizard configuration file */

var formsGadgetConfig = {

"create": {

"config":{

"post-edit": "Thank you for creating your profile! Our robot will match you with a mentor in just a few minutes.",

"new-page": true,

"namespace": "Wikipedia",

"portal-page": "Co-op",

"page-template": "",

"infobox": "Wikipedia:Co-op/Learner_profile",

"talkpage-template": "",

"page-home": "Wikipedia:Co-op",

"dialog-title": "Let's create your profile!",

"error-not-logged-in": "You are not logged in. Please log in before creating a profile.",

"edit-comment-prefix": "Creating a new Co-op learner profile ",

"edit-comment-suffix": " (edited with FormWizard)",

},

"step-1":{

"introText": {

"type": "text",

"string": "Fill in some information to create a profile. Once you've completed your profile, wait a few minutes, and you'll get matched to a mentor automatically. Don't worry about getting everything perfect. You can always change it later.",

},

"memberUserNameTextbox": {

"type": "smallTextBox",

"placeholder": "example: Soni",

"title": "What is your username?",

"text-1": "Please type your Wikipedia username",

"characterLength":100,

"mandatory":true,

"add-to": "infobox",

"infobox-param":"username",

"validate": "doesNotExists",

"page-title":true,

},

"memberAboutTextbox": {

"type": "largeTextBox",

"placeholder": "I want to learn how to find reliable sources for Wikipedia articles.",

"title": "What are you interested in learning about?",

"text-1": "Briefly share what you're interested in having a mentor help you with (140 character limit)",

"characterLength":140,

"mandatory": true,

"add-to": "infobox",

"infobox-param":"about",

},

"interestDropdown": {

"type": "dropdownList",

"title": "What specific editing-related topic do you want to learn about first?",

"text-1": "Choose a topic to learn about with a Co-op mentor.",

"characterLength":100,

"mandatory": true,

"add-to": "infobox",

"infobox-param":"interest",

"values": ["writing", "communication","best practices", "technical editing", "images and media", "other",],

},

"interestInformationLink": {

"type": "link",

"href": "https://en.wikipedia.org/wiki/Wikipedia:Co-op/Descriptions#Co-op_category_descriptions",

"link": "What do these choices mean?",

},

"nextButton":{

"type":"nextButton",

"title":"Next",

},

"cancelButton":{

"type": "cancelButton",

"title":"Cancel",

},

},

"step-2":{

"aboutMeTextbox": {

"type": "largeTextBox",

"placeholder": "Example: I have always enjoyed reading about world history on Wikipedia, and I am excited to start contributing to articles about local history where I live.",

"title": "Share some more about yourself (optional)",

"text-1": "Why did you join Wikipedia? What are you most excited about doing while you're here?",

"characterLength":500,

"section": "About",

"mandatory": false,

"add-to": "section",

"section-header": "About",

},

"newMentorshipTextbox": {

"type": "largeTextBox",

"placeholder": "",

"title": "Update your profile",

"characterLength":500,

"section": "Update your profile",

"mandatory": false,

"add-to": "section",

"visibility":"hidden",

"value":'Use this button to change what kind of mentorship you are requesting

Update
',

"section-header": "Update your profile",

},

"profileImage":{

"type": "image",

"title": "Choose a profile picture",

"imageTitleBox": "To use a different image from Wikimedia Commons, enter 'File:' followed by the filename below",

"text-1": "If you don't choose a custom image, this is the default image that will appear",

"text-2": "You can always change the image later. Ask your mentor how!",

"placeholder": "File:Profile_placeholder.png",

"url":"https://upload.wikimedia.org/wikipedia/commons/1/15/Profile_placeholder.png",

"add-to": "infobox",

"infobox-param": "image",

"validate": true,

"link":"Search Wikimedia Commons for an image",

},

"noMentor": {

"type": "smallTextBox",

"visibility": "hidden",

"add-to": "infobox",

"infobox-param": "mentor",

"value": "1",

"comment": "",

},

"doneButton":{

"type":"doneButton",

"title":"Create profile",

},

"backButton":{

"type": "backButton",

"title":"Back",

},

},

},

"expand": {

"config":{

"post-edit": "Profile updated! If you requested new mentorship, HostBot will match you with a new mentor within the next few minutes.",

"new-page": false,

"namespace": "Wikipedia",

"portal-page": "Co-op",

"page-template": "",

"infobox": "Wikipedia:Co-op/Learner_profile",

"talkpage-template": "",

"page-home": "Wikipedia:Co-op",

"dialog-title": "Update your profile",

"error-not-logged-in": "You are not logged in. Please log in before creating a profile.",

"edit-comment-prefix": "Updating Co-op learner profile ",

"edit-comment-suffix": " (edited with FormWizard)",

},

"step-1":{

"memberAboutTextbox": {

"type": "largeTextBox",

"placeholder": "",

"title": "Update your tagline (140 character limit)",

"characterLength":140,

"mandatory": false,

"add-to": "infobox",

"infobox-param":"about",

},

"interestDropdown": {

"type": "dropdownList",

"title": "Request new mentorship",

"placeholder": "select...",

"text-1": "Select a new topic for mentorship",

"characterLength":100,

"mandatory": false,

"add-to": "infobox",

"infobox-param":"interest",

"values": ["writing", "communication","best practices", "technical editing", "images and media", "other",],

},

"profileImage":{

"type": "image",

"title": "Choose a profile picture",

"imageTitleBox": "To use a different image from Wikimedia Commons, enter 'File:' followed by the filename below",

"text-1": "If you don't choose a custom image, this is the default image that will appear",

"text-2": "You can always change the image later. Ask your mentor how!",

"placeholder": "File:Profile_placeholder.png",

"url":"https://upload.wikimedia.org/wikipedia/commons/1/15/Profile_placeholder.png",

"add-to": "infobox",

"infobox-param": "image",

"validate": true,

"link":"Search Wikimedia Commons for an image",

},

"doneButton": {

"type":"doneButton",

"title":"Update your profile",

},

"cancelButton":{

"type": "cancelButton",

"title":"Cancel",

},

},

},

};