MediaWiki talk:Gadget-formWizard/WikiProject Parenting/Join

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Protected edit request on 8 March 2018[edit]

I would like to create this page with the following content for a new WikiProject:

Extended content
/*  New member form for WikiProject Parenting  */
//<nowiki>
var formsGadgetConfig = {
    "create": {
        "config":{
            "post-edit": "Welcome to WikiProject Parenting!",
            "new-page": true,
            "namespace": "Wikipedia",
            "portal-page": "WikiProject_Parenting",
            "page-template": "",
            "infobox": "Template:WikiProjectCard",
            "talkpage-template": "",
            "page-home": "User:" + mw.user.getName().replace(' ', '_') + "/WikiProjectCards",
            "dialog-title": "Join WikiProject Parenting!",
            "error-not-logged-in": "You are not logged in. Please log in before creating a profile.",
            "edit-comment-prefix": "New member 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_Women's_Health",
                "add-to": "infobox",
                "infobox-param":"wikiproject",
                "page-title": true,
            },
            "memberAboutTextbox": {
                "type": "largeTextBox",
                "placeholder": "",
                "title": "What are you interested in working on? (140 character limit)",
                "characterLength":140,
                "mandatory": false,
                "add-to": "infobox",
                "infobox-param":"about",
            },
            "needsHelpTextbox": {
                "type": "largeTextBox",
                "placeholder": "",
                "title": "What would you like help with? (140 character limit)",
                "characterLength":140,
                "mandatory": false,
                "add-to": "infobox",
                "infobox-param":"needshelp",
            },
          "notificationSignup":{
              "title": "Optional: Which notifications would you like to sign up for?",
              "text-1": "You will get no more than one notification per day for each report you sign up for.",
              "type": "checkboxList",
              "choiceList": [
                       {
                           "key": "notification_when_a_new_member_joins",
                           "value": 1
                       },
                       {
                           "key": "notification_when_a_new_discussion_topic_is_posted",
                           "value": 1
                       },
                   ],
            "add-to": "infobox",
            },
            "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",
           },
        },
    },
};

Mvolz (talk) 16:02, 8 March 2018 (UTC)[reply]

Please can you explain where this code will be used exactly? — Martin (MSGJ · talk) 19:55, 10 March 2018 (UTC)[reply]
 Note: request disabled. Please reactivate when responding — Martin (MSGJ · talk) 21:44, 12 March 2018 (UTC)[reply]
@MSGJ: Hi, it will be used for the "join wikiproject" button on this page: Wikipedia:WikiProject Parenting. I have basically just copy pasted the code from a different wikiproject and changed some minor things like the text and image: MediaWiki:Gadget-formWizard/WikiProject Women's Health/Join Mvolz (talk) 10:09, 14 March 2018 (UTC)[reply]
 Done @Mvolz: let me know if you need the content model adjusted. — xaosflux Talk 12:53, 16 March 2018 (UTC)[reply]
@Xaosflux: Thanks, I just realised in pagename: "value": "WikiProject_Women's_Health" needs to be "WikiProject_Parenting" as well... whoops! Mvolz (talk) 13:01, 16 March 2018 (UTC)[reply]
@Mvolz:  Donexaosflux Talk 13:03, 16 March 2018 (UTC)[reply]