MediaWiki:DRN-wizard.js: Difference between revisions

Content deleted Content added
m Oops, updating from correct source.
per tper
 
(9 intermediate revisions by 3 users not shown)
Line 1:
// <nowiki>
// 2020-03-09 - deconverted from Gadget, is only used on 1 page and is now being called direct from [[Wikipedia:Dispute resolution noticeboard/request]]
 
/**
* This is the main object that holds the state for everything
Line 104:
 
$( '#drwContent1' ).append( '<h3>Resolving the dispute</h3>' );
$( '#drwContent1' ).append( '<p>What other steps have you tried to resolve the dispute so far. Please provide a link to where these discussions have occurred, separated by a comma or new line. For example:<br>' );
$( '#drwContent1' ).append('<ul>' +
'<bli><nowiki>[[Talk:Australia#Removal_of_Chief_Justice_from_Infobox]]</nowikili></b> or' +
'<bli><nowiki>[https://en.wikipedia.org/wiki/Talk:Australia#Removal_of_Chief_Justice_from_Infobox Talk:Australia]</nowikili>' +
'</bul>' would);+
$( be acceptable'#drwContent1' links).append( '<bru>At a minimum, recent extensive discussion needs to have taken place on the talk page of the page in question.</u><br><font color="red"><b>Note: If a suitable discussion link is not provided, your request may be automatically closed.</b></font></p>' );
 
var desc = $( document.createElement( 'textarea' ) );
Line 184 ⟶ 189:
this.getWikitextReport = function() {
//Returns string of wikitext for submission to DR page
var report = "{{DR case status}}\n<!-- [[User:DoNotArchiveUntil]] 17:10, 6 October 2019 (UTC) -->{{Usersubst:ClueBot III/DoNotArchiveUntilDNAU|157038182628}}<!-- REMEMBER TO REMOVE THE PREVIOUS COMMENT WHEN CLOSING THIS THREAD! -->\n{{drn filing editor|Steven Crossin{{subst:REVISIONUSER}}|16:24, 22 September 2019 (UTC)~~~~~}}\n\n";
 
//On Talk Page
Line 340 ⟶ 345:
'<h2>Types of dispute</h2>' +
 
'<p>This forum is designed to only assist with issues regarding the content of articles and isn\'t able to assist with concerns about other editors\' behaviour. Is this an issue only about another editorseditor\'s behaviour?.</p>'
);
 
Line 510 ⟶ 515:
 
//Add new section to designated page
var edittoken = mw.user.tokens.get( 'editTokencsrfToken' );
 
var date = new Date();
Line 590 ⟶ 595:
if ( $( '#myDRW' ).length ){
 
//importStylesheet( 'UserMediaWiki:Steven Crossin/DRWGadget-DRN-wizard.css' ); //CSS Styles for the DRW
 
//Setup the App's workspace