User:Chaotic Enby/Unblock wizard.js: Difference between revisions
From Test Wiki
Content deleted Content added
Chaotic Enby (talk | contribs) concise |
Chaotic Enby (talk | contribs) radio |
||
| Line 46: | Line 46: | ||
"document-title": "Wikipedia Unblock Wizard", |
"document-title": "Wikipedia Unblock Wizard", |
||
"page-title": "Wikipedia Unblock Wizard", |
"page-title": "Wikipedia Unblock Wizard", |
||
"fieldset-label": "I was blocked for promotional activity", |
|||
"explain-label": "Can you explain, in your own words, what you were blocked for?", |
"explain-label": "Can you explain, in your own words, what you were blocked for?", |
||
"future-label": "If unblocked, what edits would you make, and what (if applicable) would you do differently?", |
"future-label": "If unblocked, what edits would you make, and what (if applicable) would you do differently?", |
||
"other-label": "Is there anything else that may be helpful to your unblock request?", |
"other-label": "Is there anything else that may be helpful to your unblock request?", |
||
"accounts-label": "Which accounts have you used besides this one, if any?", |
|||
"so-label": "Have you taken the [[Wikipedia:Standard offer|standard offer]]?", |
|||
"explain-promo-label": "Can you explain, in your own words, why your edits were or were not promotional?", |
"explain-promo-label": "Can you explain, in your own words, why your edits were or were not promotional?", |
||
"coi-label": "What is your relationship with the subjects you have been editing about?", |
"coi-label": "What is your relationship with the subjects you have been editing about?", |
||
| Line 79: | Line 80: | ||
var questionLabels = []; |
var questionLabels = []; |
||
var questionFields = {'explain': 0, 'future': 0, 'other': 0, 'explain-promo': 0, 'coi': 0, 'future-promo': 0, 'username': 1, 'clarification': 0}; |
var questionFields = {'explain': 0, 'future': 0, 'other': 0, 'accounts': 0, 'so': 2, 'explain-promo': 0, 'coi': 0, 'future-promo': 0, 'username': 1, 'clarification': 0}; |
||
var blockType = ''; |
var blockType = ''; |
||
| Line 114: | Line 115: | ||
switch (blockType) { |
switch (blockType) { |
||
case "Sockpuppet": |
|||
questionLabels = ['accounts', 'so', 'other']; |
|||
break; |
|||
case "Promo": |
case "Promo": |
||
if(true) { // to replace by an api call to check if the block is username-related |
if(true) { // to replace by an api call to check if the block is username-related |
||
| Line 190: | Line 194: | ||
maxLength: 85, |
maxLength: 85, |
||
})); |
})); |
||
break; |
|||
case 2: |
|||
ui.itemsInput.push(new OO.ui.RadioSelectInputWidget({ |
|||
align: 'inline', |
|||
})); |
|||
ui.itemsInput[ui.itemsInput.length - 1].setOptions([{label:"Yes", data:"Yes"}, {label:"No", data:"No"}]); |
|||
break; |
break; |
||
default: |
default: |
||