MediaWiki:Gadget-formWizard/Co-op/Mentor

Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/*  WP:Co-op - create and expand mentor profile form wizard configuration file  */
var formsGadgetConfig = {
    "create": {
        "config":{
            "post-edit": "Thank you for creating your profile! You will receive a notification when you are matched with a learner.",
            "new-page": true,
            "namespace": "Wikipedia",
            "portal-page": "Co-op",
            "page-template": "",
            "infobox": "Wikipedia:Co-op/Mentor_profile",
            "talkpage-template": "",
            "page-home": "Wikipedia:Co-op",
            "dialog-title": "Create your mentor 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 mentor profile ",
            "edit-comment-suffix": " (edited with FormWizard)",
        },
        "step-1":{
            "introText": {
                "type": "text",
                "string": "Fill in some information about your experience and what you're interested in teaching. Don't worry about getting everything perfect. You can always change it later, and add more information.",
            },
            "mentorUserNameTextbox": {
                "type": "smallTextBox",
                "placeholder": "example: I_JethroBT",
                "title": "Please type your Wikipedia username",
                "characterLength":100,
                "mandatory":true,
                "add-to": "infobox",
                "infobox-param":"username",
                "validate": "doesNotExists",
                "page-title":true,
            },
            "mentorAboutTextbox": {
                "type": "largeTextBox",
                "placeholder": "",
                "title": "Say something about yourself (140 character limit)",
                "characterLength":140,
                "mandatory": true,
                "add-to": "infobox",
                "infobox-param":"about",
            },
            "skillSelectionList":{
                "title": "Teaching skills",
                "text-1": "Please indicate what you want to teach.",
                "text-2": "If you are willing to teach things outside of your specific expertise (if needed), select 'general editing' also.",
                   "type": "checkboxList",
                    "choiceList": [
                            {
                                "key": "writing",
                                "value": 1
                            },
                            {
                                "key": "communication",
                                "value": 1
                            },
                            {
                                "key": "best_practices",
                                "value": 1
                            },
                            {
                                "key": "technical_editing",
                                "value": 1
                            },
                            {
                                "key": "images_and_media",
                                "value": 1
                            },
                            {
                                "key": "general_editing",
                                "value": 1
                            },
                        ],
                    "add-to":"infobox",
                },
            "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":{
            "aboutMeSection": {
                "type": "largeTextBox",
                "placeholder": "What you're interested in doing on Wikipedia, etc",
                "title": "Tell us more about yourself",
                "characterLength":500,
                "section": "About",
                "mandatory": false,
                "add-to": "section",
                "section-header": "About me",
            },
            "changeAvailabilityTextbox": {
                "type": "largeTextBox",
                "placeholder": "",
                "title": "",
                "characterLength":500,
                "section": "Change your availability",
                "mandatory": false,
                "add-to": "section",
                "visibility":"hidden",
                "value":'<div style="" class="wp-formsGadget mw-ui-button" data-mode="expand" data-type="Mentor">Update profile</div>',
                "section-header": "Update your profile",
            },
            "profileImage":{
                "type": "image",
                "title": "Want a custom image to represent yourself?",
                "imageTitleBox": "To use a different image from Wikimedia Commons, enter 'File:' followed by the filename below",
                "text-1": "This is the default image that will appear",
                "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",
            },
            "setAvailability": {
                "type": "smallTextBox",
                "visibility": "hidden",
                "add-to": "infobox",
                "infobox-param": "unavailable",
                "value": "0",
                "comment": "change this value to '1' if you don't want to receive more mentees right now",
            },
            "doneButton":{
                "type":"doneButton",
                "title":"Create profile",
            },
            "cancelButton":{
                "type": "backButton",
                "title":"Back",
                },
            },
        },
    "expand": {
        "config":{
            "post-edit": "Your profile has been updated.",
            "new-page": false,
            "namespace": "Wikipedia",
            "portal-page": "Co-op",
            "page-template": "",
            "infobox": "Wikipedia:Co-op/Mentor_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 updating your profile.",
            "edit-comment-prefix": "Updating Co-op mentor profile ",
            "edit-comment-suffix": " (edited with FormWizard)",
        },
        "step-1":{
            "introText": {
                "type": "text",
                "string": "Update your mentor profile.",
            },
            "memberAboutTextbox": {
                "type": "largeTextBox",
                "placeholder": "",
                "title": "Update your tagline (140 character limit)",
                "characterLength":140,
                "mandatory": false,
                "add-to": "infobox",
                "infobox-param":"about",
            },
            "skillSelectionList":{
                "title": "Update your teaching skills",
                "text-1": "Update the skills you are interested in teaching. Please note that skills that are unchecked will be removed from your profile if you selected them previously.",
                "text-2": "If you are willing to teach skills outside of your specific expertise (if needed), select 'general editing'.",
                "type": "checkboxList",
                "choiceList": [
                        {
                            "key": "writing",
                            "value": 1
                        },
                        {
                            "key": "communication",
                            "value": 1
                        },
                        {
                            "key": "best_practices",
                            "value": 1
                        },
                        {
                            "key": "images_and_media",
                            "value": 1
                        },
                        {
                            "key": "technical_editing",
                            "value": 1
                        },
                        {
                            "key": "general_editing",
                            "value": 1
                        },
                    ],
                    "add-to":"infobox",
                },
                "updateAvailabilityList":{
                    "title": "Update your availability",
                    "text-1": "If you are not currently accepting new mentees, check the box below.",
                    "text-2": "If you would like to continue accepting new mentees right now, leave the box unchecked and click 'update profile'.",
                    "type": "checkboxList",
                    "choiceList": [
                        {
                            "key": "unavailable",
                            "value": 1
                        },
                    ],
                    "add-to":"infobox",
                },
            "doneButton": {
                "type":"doneButton",
                "title":"Update profile",
            },
            "cancelButton":{
                "type": "cancelButton",
                "title":"Cancel",
            },
        },
    },
};