Page MenuHomePhabricator

Create Gadget-form wizard for WikiProject Organized Labour
Open, Needs TriagePublic

Description

Rebooting the Organized Labour project using Wikiproject X formatting, I wish to utilise the new membership card system. If you can please create: MediaWiki:Gadget-formWizard/WikiProject Organized Labour/Join

with the following code, please:

/* New member form for WikiProject Organized Labour */
//<nowiki>
var formsGadgetConfig = {

"create": {
    "config":{
        "post-edit": "Welcome to WikiProject Organized Labour!",
        "new-page": true,
        "namespace": "Wikipedia",
        "portal-page": "WikiProject_Organized_Labour",
        "page-template": "",
        "infobox": "Template:WikiProjectCard",
        "talkpage-template": "",
        "page-home": "User:" + mw.user.getName().replace(' ', '_') + "/WikiProjectCards",
        "dialog-title": "Join WikiProject Organized Labour!",
        "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'll 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_Organized_Labour",
            "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",
       },
    },
},

};

Event Timeline

Restricted Application added subscribers: Liuxinyu970226, jeblad, Aklapper. · View Herald TranscriptTue, Nov 5, 11:23 AM

If you can please create: MediaWiki:Gadget-formWizard/WikiProject Organized Labour/Join

Hi, is this about some specific website? Also see https://meta.wikimedia.org/wiki/Meta:FormWizard#Deployments

Goldsztajn added a comment.EditedWed, Nov 6, 2:35 PM

This relates to the WikiProject Organized Labour:
https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Organized_Labour

I cannot do this myself as I do not have privileges.

I'm requesting creation similar to:
https://en.wikipedia.org/wiki/MediaWiki:Gadget-formWizard/WikiProject_Women_in_Technology/Join