Jump to content

MediaWiki:Gadget-formWizard/WikiProject Latin and Hispanic heritage/Join

From Wikipedia, the free encyclopedia
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.
/*  New member form for WikiProject Latin and Hispanic heritage  */
//<nowiki>
var formsGadgetConfig = {
    "create": {
        "config":{
            "post-edit": "Welcome to the Latin and Hispanic heritage WikiProject!",
            "new-page": true,
            "namespace": "Wikipedia",
            "portal-page": "WikiProject Latin and Hispanic heritage",
            "page-template": "",
            "infobox": "Template:WikiProjectCard",
            "talkpage-template": "",
            "page-home": "User:" + mw.user.getName().replace(' ', '_') + "/WikiProjectCards",
            "dialog-title": "Join the WikiProject!",
            "error-not-logged-in": "You are not logged in. Please log in before creating a profile.",
            "edit-comment-prefix": "New participant profile ",
            "edit-comment-suffix": " (edited with FormWizard)",
        },
        "step-1":{
           "introText": {
               "type": "text",
               "string": "We're happy to have you join! Just fill out this brief profile and you will be on your way!",
           },
            "displayMode": {
                "type": "largeTextBox",
                "placeholder": "",
                "title": "Mode",
                "visibility": "hidden",
                "value": "{{{mode|}}}",
                "add-to": "infobox",
                "infobox-param":"mode",
            },
            "pageName": {
                "type": "largeTextBox",
                "placeholder": "",
                "title": "WikiProject Name",
                "visibility": "hidden",
                "value": "WikiProject Latin and Hispanic heritage",
                "add-to": "infobox",
                "infobox-param":"wikiproject",
                "page-title": true,
            },
            "memberAboutTextbox": {
                "type": "largeTextBox",
                "placeholder": "",
                "title": "What are you interested in working on? (400 character limit)",
                "characterLength":400,
                "mandatory": false,
                "add-to": "infobox",
                "infobox-param":"about",
            },
            "needsHelpTextbox": {
                "type": "largeTextBox",
                "placeholder": "",
                "title": "What would you like help with? (400 character limit)",
                "characterLength":400,
                "mandatory": false,
                "add-to": "infobox",
                "infobox-param":"needshelp",
            },
            "nextButton": {
                "type":"nextButton",
                "title":"Next",
            },
            "cancelButton":{
                "type": "cancelButton",
                "title":"Cancel",
            },
        },
        "step-2":{
            "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.",
                "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",
            },
            "nextButton": {
                "type":"nextButton",
                "title":"Next",
            },
           "backButton":{
               "type":"backButton",
               "title":"Back",
            },
        },
        "step-3":{
           "introText": {
               "type": "text",
               "string": "Thank you! Once you click the Join WikiProject button below, you will be taken to your WikiProjectCard, which serves as your member profile. Within an hour, it will be placed on the list of members.",
           },
           "doneButton": {
               "type":"doneButton",
               "title":"Join WikiProject",
           },
        },
    },
};