MediaWiki:Gadget-formWizard/forum

Iz Medžuviki, svobodnoj encyklopedije
Jump to navigation Jump to search

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* Forum FormWizard configuration */
// <nowiki>
var formsGadgetConfig = {
    "create": {
        "config":{
            "post-edit": "Thank you for visiting our forum!",
            "infobox": "Zaglavje fora",
            "new-page": true,
            "namespace": "Forum:",
            "portal-page": "",
            "page-template": "",
            "talkpage-template": "",
            "page-home": "Forum:",
            "dialog-title": "Create new topic",
            "error-not-logged-in": "You are not logged in. Your IP would be displayed in edit history.",
            "edit-comment-prefix": "New topic: ",
            "edit-comment-suffix": " (FormWizard)"
        },
        "step-1":{
            "introText": {
                "type": "text",
                "string": "Please use this form only for quick discussions − it is better to use standard form if you have a lot to write about."
            },
            "titleTextbox": {
                "type": "smallTextBox",
                "text-1": "Provide a short meaningful description of your topic (up to 100 characters). Please do not use any wiki syntax.",
                "title": "Title",
                "characterLength": 100,
                "mandatory": true,
                "validate": "doesNotExists",
                "page-title": true
            },
            "textTextbox": {
                "type": "largeTextBox",
                "text-1": "Better to write in Interslavic, but you can also use your native language or English – we won't judge.",
                "placeholder": "",
                "title": "Text",
                "characterLength":2000,
                "mandatory": true,
                "add-to": "section",
                "heading": "",
                "comment": "<!-- Please do not delete or edit the line above -->",
                "signature": true
            },
            "signatureText": {
            	"type": "text",
            	"string": "Please remember to sign your post using four tildes (~~~~)."
            },
            "doneButton":{
                "type":"doneButton",
                "title":"Create topic",
            },
			"cancelButton":{
				"type": "cancelButton",
				"title":"Cancel"
			},
        },
    }
};
// </nowiki>