Jump to content

MediaWiki:Gadget-formWizard/Co-op/Test

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.
/*  WiR event at UNESCO Form-- create a profile that gets posted to a single page  */
var formsGadgetConfig = {
    "expand": {
        "config":{
            "post-edit": "Profile created!",
            "new-page": false,
            "namespace": "Wikipedia",
            "portal-page": "Co-op",
            "page-template": "",
            "infobox": "Template:Infobox date field metadata",
            "talkpage-template": "",
            "page-home": "Wikipedia:Co-op",
            "dialog-title": "Create your profile",
            "error-not-logged-in": "You are not logged in. Please log in before creating a profile.",
            "edit-comment-prefix": "Creating event profile ",
            "edit-comment-suffix": " (edited with FormWizard)",
        },
        "step-1":{
            "memberAboutTextbox": {
                "type": "smallTextBox",
                "placeholder": "e.g. Navino Evans",
                "title": "What is your name?",
                "text-1": "Please type your first and last name.",
                "error-notFilled": "Mandatory field",
                "characterLength":150,
                "mandatory": true,
                "add-to": "section",
                "section-header": "Name",
                "parent" : "userInfoSection",
            },
            "descriptionTextbox": {
                "type": "largeTextBox",
                "title": "Description Title",
                "placeholder": "Description Placeholder",
                "text-1": "Description text-1",
                "characterLength":400,
                "mandatory": false,
                "add-to": "section",
                "section-header": "Description",
                "parent" : "userInfoSection",
            },
            "linkTextbox":{
                "type": "smallTextBox",
                "title": "Link Title",
                "text-1": "Link text-1",
                "characterLength":400,
                "mandatory": false,
                "placeholder": "http://meta.wikimedia.org/",
                "add-to": "section",
                "section-header": "Link",
                "parent" : "userInfoSection",
            },
            "userInfoSection": {
                "type": "largeTextBox",
                "placeholder": "leave this blank!",
                "title": "leave this blank!",
                "characterLength":1000,
                "section": "User info",
                "mandatory": false,
                "add-to": "section",
                "visibility": "hidden",
                "section-header": "User info",
            },
            "doneButton": {
                "type":"doneButton",
                "title":"Create your profile",
            },
            "cancelButton":{
                "type": "cancelButton",
                "title":"Cancel",
            },
        },
    },
};