User:Chaotic Enby/Unblock wizard.js: Difference between revisions
From Test Wiki
Content deleted Content added
Chaotic Enby (talk | contribs) No edit summary |
Chaotic Enby (talk | contribs) link fixes |
||
| Line 1: | Line 1: | ||
/** |
/** |
||
* |
* MediaWiki:Unblock-wizard.js |
||
* |
* |
||
* JavaScript used for submitting unblock requests. |
* JavaScript used for submitting unblock requests. |
||
* Used on [[ |
* Used on [[Wikipedia:Unblock wizard]]. |
||
* Loaded via [[mw:Snippets/Load JS and CSS by URL]]. |
* Loaded via [[mw:Snippets/Load JS and CSS by URL]]. |
||
* |
* |
||
| Line 25: | Line 25: | ||
]) |
]) |
||
).then(function () { |
).then(function () { |
||
if (!(mw.config.get('wgPageName').includes('User:Chaotic_Enby/Unblock_wizard/')) || |
if (!(mw.config.get('wgPageName').includes('Wikipedia:Unblock_wizard/') || mw.config.get('wgPageName').includes('User:Chaotic_Enby/Unblock_wizard/')) || |
||
mw.config.get('wgAction') !== 'view') { |
mw.config.get('wgAction') !== 'view') { |
||
return; |
return; |
||
| Line 57: | Line 57: | ||
"clarification-label": "Is there anything specific you want to ask about your block?", |
"clarification-label": "Is there anything specific you want to ask about your block?", |
||
"submit-label": "Publish", |
"submit-label": "Publish", |
||
"footer-text": "<small>If you are not sure about what to enter in a field, you can skip it. If you need help, you can ask on <b>[[Special:MyTalk|your talkpage]]</b> with <b>{{[[Template:Help me|Help me]]}}</b> or get live help via <b>[[WP:IRCHELP|IRC]]</b> or <b>[[WP:DISCORD|Discord]]</b>.<br>Facing some issues in using this form? <b>[/w/index.php?title= |
"footer-text": "<small>If you are not sure about what to enter in a field, you can skip it. If you need help, you can ask on <b>[[Special:MyTalk|your talkpage]]</b> with <b>{{[[Template:Help me|Help me]]}}</b> or get live help via <b>[[WP:IRCHELP|IRC]]</b> or <b>[[WP:DISCORD|Discord]]</b>.<br>Facing some issues in using this form? <b>[/w/index.php?title=Wikipedia_talk:Unblock_wizard&action=edit§ion=new&preloadtitle=Issue%20with%20submission%20form&editintro=Wikipedia_talk:Unblock_wizard/editintro Report it]</b>.</small>", |
||
"submitting-as": "Submitting as User:$1", |
"submitting-as": "Submitting as User:$1", |
||
"validation-notitle": "User not found", |
"validation-notitle": "User not found", |
||
| Line 65: | Line 65: | ||
"status-saving": "Saving talk page ...", |
"status-saving": "Saving talk page ...", |
||
"status-blank": "One or several required forms are missing.", |
"status-blank": "One or several required forms are missing.", |
||
"editsummary-main": "Submitting using [[ |
"editsummary-main": "Submitting using [[Wikipedia:Unblock wizard]]", |
||
"status-redirecting": "Submission succeeded. Redirecting you to your talk page ...", |
"status-redirecting": "Submission succeeded. Redirecting you to your talk page ...", |
||
"status-redirecting-utrs": "Submission succeeded. Redirecting you to UTRS ...", |
"status-redirecting-utrs": "Submission succeeded. Redirecting you to UTRS ...", |
||
| Line 107: | Line 107: | ||
ajax: { |
ajax: { |
||
headers: { |
headers: { |
||
'Api-User-Agent': 'w:en: |
'Api-User-Agent': 'w:en:MediaWiki:Unblock-wizard.js' |
||
} |
} |
||
} |
} |
||