This edit request has been answered. Set the |answered= parameter to no to reactivate your request.
Hi. Can someone please replace
// Generate a WikiText string, representing the report.
// Returns a string of wikitext
this.getWikitextReport = function() {
//Returns string of wikitext for submission to DR page
var report = "{{DR case status}}\n{{drn filing editor|{{subst:" + "REVISIONUSER}}|~~" + "~~" + "~}}\n\n";
with
// Generate a WikiText string, representing the report.
// Returns a string of wikitext
this.getWikitextReport = function() {
//Returns string of wikitext for submission to DR page
var report = "{{DR case status}}\n{{drn filing editor|{{subst:" + "REVISIONUSER}}|~~" + "~~" + "~}}\n{{subst:DNAU|14}}<!-- PLEASE REMOVE THE PREVIOUS COMMENT WHEN CLOSING THIS THREAD. (Otherwise the thread won't be archived until the date shown.) --><noinclude>\n\n";
Not done It looks like the {{DNAU}} template would be substituted directly onto the interface page with that code. Would the following work?
// Generate a WikiText string, representing the report.
// Returns a string of wikitext
this.getWikitextReport = function() {
//Returns string of wikitext for submission to DR page
var report = "{{DR case status}}\n{{drn filing editor|{{subst:" + "REVISIONUSER}}|~~" + "~~" + "~}}\n{{subst:" + "DNAU|14}}<!-- PLEASE REMOVE THE PREVIOUS COMMENT WHEN CLOSING THIS THREAD. (Otherwise the thread won't be archived until the date shown.) --><noinclude>\n\n";
This edit request has been answered. Set the |answered= parameter to no to reactivate your request.
The line 165 of the script contains the <noinclude> tag, which is outputted to every WP:DRN case. Still, no corresponding <noinclude> tag is outputted, so WP:DRN ends up being polluted with unclosed <noinclude>. As both transclusion count and lack of previous requests to put closing tag reveal, WP:DRN doesn't get transcluded. In the lack of opposition I request removing this tag from the script. — Dmitrij D. Czarkoff (talk) 00:06, 28 August 2012 (UTC)[reply]
The script doesn't manage the article title input, and consequently creates DRN threads with full URL titles. I propose to manage article title input. As I'm no JS wizard, my proposal is as simple as replacing line 442:
Which (in my experiments) should do the job in most cases (more precisely, if the article's title contains only [0-9A-z] character range). Probably someone with more JS experience could propose a better solution. — Dmitrij D. Czarkoff (talk) 15:53, 31 August 2012 (UTC)[reply]
update code
This edit request has been answered. Set the |answered= parameter to no to reactivate your request.
Hi, I've needed to make a change to the code to add user statement fields. Can someone please update all the code to the following, with the actual change for reference being the addition of:
Source code
//User statementsvarcurrentUser=mw.config.get('wgUserName');for(varuserIndex=0;userIndex<userArray.length;userIndex++){if(userArray[userIndex]!=currentUser){report+="==== Summary of dispute by "+userArray[userIndex]+" ====\n<div style=\"font-size:smaller\">Please keep it brief - less than 2000 characters if possible, it helps us help you quicker.</div>\n\n";}}</nowiki></code>Theentirecodeis:<code><nowiki>/** * This is the main object that holds the state for everything */functiondrw(){//Keep track of what step we are onthis.wizard_step=0;//Has the admin attempted to resolve this on the talk pagethis.talkpage=false;//Title of Articlethis.article_title='';//Description of disputethis.dispute_description='';//Involved usersthis.involved_users=mw.config.get('wgUserName')+', ';//Previous forumsthis.previous_forums='';//Desired Outcomethis.desired_outcome='';//Page where the report will be postedthis.post_link='';// Draw text boxthis.drawTitleInput=function(){//Appends to $("#drwContent1")$("#drwContent1").append("<h3>Location of dispute</h3>");$("#drwContent1").append("<p>What is the location of this dispute? If there are multiple forums, list the main one and describe the others in the dispute description.</p>");varinputbox=$(document.createElement('input'));inputbox.attr({type:"text",name:"article_title",value:this.article_title});inputbox.change(function(){gDRW.article_title=this.value.replace("https://","http://").replace("http://en.wikipedia.org/wiki/","").replace("_"," ").replace("[[",'').replace("]]",'');})$("#drwContent1").append(inputbox);}// Draw description textareathis.drawDescriptionInput=function(){//Appends to $("#drwContent1")$("#drwContent1").append("<h3>Dispute overview</h3>");$("#drwContent1").append("<p>Can you give us a quick explanation of what is going on? What is the issue you are bringing to dispute resolution?</p>");vardesc=$(document.createElement('textarea'));desc.attr({rows:6,cols:60,maxlength:2000});desc.text(this.dispute_description);desc.change(function(){gDRW.dispute_description=this.value;});desc.bind('keyup',function(){$("#taCount").text(""+this.value.length+" / 2000");});$("#drwContent1").append(desc);$("#drwContent1").append($("<p id='taCount'>"+this.dispute_description.length+"/2000</p>"));}// Involved usersthis.drawUserInput=function(){//Appends to $("#drwContent1")$("#drwContent1").append("<h3>Users involved</h3>");$("#drwContent1").append("<p>Who else is involved in the dispute? Enter them into the below box, without the User:, separated by commas: e.g. Example, Example2. (Please remember to notify them of this discussion)</p>");varinputbox=$(document.createElement('input'));inputbox.attr({type:"text",name:"involved_users",value:this.involved_users});inputbox.change(function(){gDRW.involved_users=this.value;});$("#drwContent1").append(inputbox);}// Draw previous forumsthis.drawPreviousInput=function(){//Appends to $("#drwContent1")$("#drwContent1").append("<h3>Resolving the dispute </h3>");$("#drwContent1").append("<p>What other steps, if any, have you tried to resolve this dispute?</p>");vardesc=$(document.createElement('textarea'));desc.attr({rows:3,cols:60,maxlength:500});desc.text(this.previous_forums);desc.change(function(){gDRW.previous_forums=this.value;});desc.bind('keyup',function(){$("#pcCount").text(""+this.value.length+" / 500");});$("#drwContent1").append(desc);$("#drwContent1").append($("<p id='pcCount'>"+this.previous_forums.length+"/500</p>"));}// Draw outcome textareathis.drawOutcomeInput=function(){//Appends to $("#drwContent1")$("#drwContent1").append("<p>How do you think we can help resolve the dispute?</p>");vardesc=$(document.createElement('textarea'));desc.attr({rows:5,cols:60,maxlength:500});desc.text(this.desired_outcome);desc.change(function(){gDRW.desired_outcome=this.value;});desc.bind('keyup',function(){$("#ocCount").text(""+this.value.length+" / 500");});$("#drwContent1").append(desc);$("#drwContent1").append($("<p id='ocCount'>"+this.desired_outcome.length+"/500</p>"));}// Draw the summary contentthis.drawDRWSummary=function(){//Appends to $("#drwContent1")//$("#drwContent1").append(list);//Article Title$("#drwContent1").append("<h3>Location of dispute</h3>");$("#drwContent1").append($("<p></p>").text(this.article_title));//Dispute Description$("#drwContent1").append("<h3>Dispute overview</h3>");$("#drwContent1").append($("<p></p>").text(this.dispute_description));//Users involved$("#drwContent1").append("<h3>Users involved</h3>");$("#drwContent1").append($("<p></p>").text(this.involved_users));//Previous forums$("#drwContent1").append("<h3>Resolving the dispute</h3>");$("#drwContent1").append("<h4>Other steps if any, you have tried to resolve this dispute</h4>");$("#drwContent1").append($("<p></p>").text(this.previous_forums));//Desired Outcome$("#drwContent1").append("<h4>How you think we can help resolve the dispute?</h4>");$("#drwContent1").append($("<p></p>").text(this.desired_outcome));}// Generate a WikiText string, representing the report.// Returns a string of wikitextthis.getWikitextReport=function(){//Returns string of wikitext for submission to DR pagevarreport="{{DR case status}}\n{{drn filing editor|{{subst:"+"REVISIONUSER}}|~~"+"~~"+"~}}\n{{subst:"+"DNAU|14}}<!-- PLEASE REMOVE THE PREVIOUS COMMENT WHEN CLOSING THIS THREAD. (Otherwise the thread won't be archived until the date shown.) -->\n\n";//On Talk Pagereport+="<span style=\"font-size:110%\">'''Have you discussed this on a talk page?'''</span>\n";report+="\n"+((this.talkpage)?'Yes, I have discussed this issue on a talk page already.':'no')+"\n\n";//Article Titlereport+="<span style=\"font-size:110%\">'''Location of dispute'''</span>\n";vararticleArray=this.article_title.split(',');for(vararticleIndex=0;articleIndex<articleArray.length;articleIndex++){report+="* {{pagelinks|"+articleArray[articleIndex]+"}}\n";}//Involved usersreport+="<span style=\"font-size:110%\">'''Users involved'''</span>\n";varuserArray=this.involved_users.split(',');for(varuserIndex=0;userIndex<userArray.length;userIndex++){report+="* {{User|"+userArray[userIndex]+"}}\n";}//Dispute Descriptionreport+="<span style=\"font-size:110%\">'''Dispute overview'''</span>\n";report+="\n"+this.dispute_description+"\n\n";//Previous forumsreport+="<span style=\"font-size:110%\">'''Have you tried to resolve this previously?'''</span>\n";report+="\n"+this.previous_forums+"\n\n";//Desired Outcomereport+="<span style=\"font-size:110%\">'''How do you think we can help?'''</span>\n";report+="\n"+this.desired_outcome+"\n\n";//User statementsvarcurrentUser=mw.config.get('wgUserName');for(varuserIndex=0;userIndex<userArray.length;userIndex++){if(userArray[userIndex]!=currentUser){report+="==== Summary of dispute by "+userArray[userIndex]+" ====\n<div style=\"font-size:smaller\">Please keep it brief - less than 2000 characters if possible, it helps us help you quicker.</div>\n\n";}}//Discussionreport+="=== "+this.article_title+" discussion ===\n<div style=\"font-size:smaller\">Please keep discussion to a minimum before being opened by a volunteer. Continue on article talk page if necessary.</div>";returnreport;}// Returns an html string, representing the progress bar, based on the// objects state.this.getProgressBar=function(){vars1_active=(this.wizard_step==1)?' pr-active':'';vars2_active=(this.wizard_step==2)?' pr-active':'';vars3_active=(this.wizard_step==3)?' pr-active':'';varsignupbox='<ul id="signuptopbox">';signupbox+='<li class="s1'+s1_active+'"><span class="pr-number">1</span><span>Preliminary</span></li>';signupbox+='<li class="pr-spacer'+s1_active+'"><div></div></li>';signupbox+='<li class="s2'+s2_active+'"><span class="pr-number">2</span><span>Description</span></li>';signupbox+='<li class="pr-spacer'+s2_active+'"><div></div></li>';signupbox+='<li class="s3'+s3_active+'"><span class="pr-number">3</span><span>Summary</span></li>';signupbox+='<li class="pr-spacer'+s3_active+'"><div></div></li>';signupbox+='</ul>';returnsignupbox;}this.getArticleTitle=function(){returnthis.article_title;}this.getDisputeDescription=function(){returnthis.dispute_description;}}/** * The various "show...()" functions display each of the 'screens' in the wizard */functionshowStep1(){gDRW.wizard_step=1;$("#drwProgressBar").html(gDRW.getProgressBar());$("#drwContent1").html('<h2>Request dispute resolution</h2> <p> Hi there. This form can be used to file a request at the Dispute Resolution Noticeboard. - a process for resolving a dispute over article content between two or more editors. It is unable to address disputes primarily concerning user conduct - they should be discussed with the users involved first, and failing that directed <a href="http://en.wikipedia.org/wiki/WP:ANI">here.</a> If you have any questions please ask one of our <a href="http://en.wikipedia.org/wiki/WP:DRVOLUNTEERS">volunteers</a> for guidance.\\\<h3>In brief: dispute resolution should be used when you:</h3>\\<ul>\<li>Have a dispute with another editor and need help resolving it</li>\<li>Are willing to discuss the issues in a calm and civil manner</li>\<li>Are open to the idea of compromising with the other editors to resolve the dispute</li>\</ul>\\<h3>This process can:</h3>\<ul>\<li>Help provide suggestions on content</li>\<li>Frame discussions and offer support for parties that want to work towards a compromise</li>\</ul>\\<h3>This process cannot:</h3>\<ul>\<li>Block other users from editing (either everywhere or specific pages)</li>\<li>Remove content that you don\'t like from articles</li>\<li>Force another editor to do something</li>\<li>Address disputes that are currently under discussion somewhere else (such as <a href="http://enwp.org/WP:RFC">Requests for Comment</a>, <a href="http://enwp.org/WP:M">Mediation</a> or <a href="http://enwp.org/WP:RFAR">Arbitration</a>).</li>\</p>\ <br>Has this issue been discussed extensively on the article talk page? (If you don\'t know what an article talk page is, answer "Not yet". </p>');varbuttons='<a href="javascript:yesClick()" class="button1">Yes, it has.</a>';buttons+=' <a href="javascript:showCancel()" class="button1">Not yet.</a>';$("#drwButtons").html(buttons);}functionshowStep2(errorMsg){gDRW.wizard_step=2;$("#drwProgressBar").html(gDRW.getProgressBar());varintro='';if(typeoferrorMsg!=='undefined'){intro='<p class="warning">'+errorMsg+'</p>';}intro+='<p>Here, briefly describe the current situation - where the dispute is happening, what is the dispute and what are you hoping to get out of dispute resolution. (Basically, how can we help resolve the issue?)<br><br>Take note of the character limits as they are there to help focus the discussion.</p>';$("#drwContent1").html(intro);gDRW.drawTitleInput();gDRW.drawDescriptionInput();gDRW.drawUserInput();gDRW.drawPreviousInput();gDRW.drawOutcomeInput();varbuttons='<a href="javascript:showStep1()" class="button1">Back</a>';buttons+=' <a href="javascript:showCancel()" class="button1">Cancel</a>';buttons+=' <a href="javascript:showStep3()" class="button1">Next</a>';$("#drwButtons").html(buttons);}functionshowStep3(){varinputErrors=[];//Check that vars were filledif(gDRW.article_title==''){inputErrors.push("Location of dispute");}if(gDRW.dispute_description==''){inputErrors.push("Dispute overview");}if(gDRW.previous_forums==''){inputErrors.push("Previous steps");}if(gDRW.desired_outcome==''){inputErrors.push("Desired outcome");}if(inputErrors.length>0){returnshowStep2('All fields are required. Missing values for: '+inputErrors.join(', '));}gDRW.wizard_step=3;$("#drwProgressBar").html(gDRW.getProgressBar());$("#drwContent1").html('<p>Here\'s a summary of what you\'ve told us. Quickly check that it\'s all correct before you submit your request, and we will file the dispute for you and give you a link to the discussion.</p>');gDRW.drawDRWSummary();varbuttons='<a href="javascript:showStep2()" class="button1">Edit</a>';buttons+=' <a href="javascript:showCancel()" class="button1">Cancel</a>';buttons+=' <a href="javascript:doSubmit()" class="button1">Save</a>';$("#drwButtons").html(buttons);}functionshowResult(status){$("#drwProgressBar").text('');if(status=='ok'){//Show thankyou$("#drwContent1").html('<h3>Success!</h3><p>Thank you for filing a request for dispute resolution</p>');$("#drwContent1").append($("<a>Click here to go view your request.</a>").attr({href:wgArticlePath.replace('$1',gDRW.post_link)}));$("#drwButtons").html('');}elseif(status=='error'){//Show error$("#drwContent1").html('<h2>Error</h2><p>Sorry, there was an error attaching your request. Maybe try it again?</p>');$("#drwButtons").html('<a href="javascript:showStep3()" class="button1">Back to Summary</a>');}else{$("#drwContent1").html('<h2>Error</p><p>Something went wrong!</p>');$("#drwButtons").html('');}}functionshowCancel(){gDRW.wizard_step=0;$("#drwProgressBar").html(gDRW.getProgressBar());$("#drwContent1").html('<p>It\'s best to discuss your concerns with the other users on the talk page of the article before seeking dispute resolution. You can find instructions on how to do this at <a href="http://en.wikipedia.org/wiki/WP:DISCUSSIT">this page,</a>\ or you can place <code><nowiki>{{helpme}}</nowiki></code> on <a href="http://enwp.org/Special:MyTalk">your own talk page</a>, and a volunteer will come by your page to help.<br><br> If you have already tried to discuss this issue already and have received <b>no</b> response from others, you may go back to the previous page and file a request - but this must only be done if you have attempted to discuss the issue first.</a>\</p>');$("#drwButtons").html('<a href="javascript:showStep1()" class="button1">Start Over</a>');}/** * Do the final step of the DRW and post the report to the appropriate page */functiondoSubmit(){//Notify user that we are doing the update$("#drwProgressBar").html('<div style="text-align: center"><img alt="saving report" src="https://upload.wikimedia.org/wikipedia/commons/d/de/Ajax-loader.gif"></img></div>');$("#drwContent1").html('<p>Posting Report....</p>');//Decide on the page to updatevarDRPage='Wikipedia:Dispute_resolution_noticeboard';//The default page to post this/** * Decide where to post this dispute resolution report. In the end, DRPage needs to hold * the title of the page where we post the report. * * gDRW.dispute_type is set the short name (index) of the user-selected dispute type * gDRW.previous_forums['xxx'] will be true if the use ticked the 'xxx' checkbox in the previous forums *///Set the post-page on the DRW objectgDRW.post_link=DRPage+"#"+gDRW.article_title.replace(' ','_');//Compose Reportvarreport=gDRW.getWikitextReport();//Add new section to designated pagevaredittoken=mw.user.tokens.get('editToken');vardate=newDate();vardateString=date.toLocaleDateString();varsummary=gDRW.article_title;addNewSection(DRPage,summary,report,edittoken);}/** * Event handler functions */functionsetDisputeForum(box){//alert("Setting "+gDRW.forum_labels[box.value]+" to true");gDRW.previous_forums[box.value]=box.checked;varlinkboxid="link_"+box.value;if(box.checked){$("#"+linkboxid).show();}else{$("#"+linkboxid).hide();}}functionupdateLink(box){gDRW.forum_links[box.name]=box.value;}functionyesClick(){gDRW.talkpage=true;showStep2();}/** * Taken almost verbatim from http://www.mediawiki.org/wiki/API:Edit */functionaddNewSection(pagetitle,summary,content,editToken){$.ajax({url:mw.util.wikiScript('api'),data:{format:'json',action:'edit',title:pagetitle,section:'new',summary:summary,text:content,token:editToken},dataType:'json',type:'POST',success:function(data){if(data&&data.edit&&data.edit.result=='Success'){//window.location.reload(); // reload page if edit was successfulshowResult('ok');}elseif(data&&data.error){alert('Error: API returned error code "'+data.error.code+'": '+data.error.info);showResult('error');}else{alert('Error: Unknown result from API.');showResult('error2');}},error:function(xhr){alert('Error: Request failed.');}});}/** * Initialization function. Test if we should place the DRW on the current page. * Looks for a <div id="myDRW"></div> on the page. */functionrunDRW(){if($('#myDRW').length){importStylesheet('User:Steven Zhang/DRW.css');//CSS Styles for the DRW//Setup the App's workspace$("#myDRW").html('');$("#myDRW").append($('<div id=drw_main style="height: 600px; width: 800px; border : 2px black solid;"></div>'));$("#drw_main").css('height','1000px');$("#drw_main").append('<div style="width: 750px; padding: 20px 25px; height: 30px; text-align: center" id="drwProgressBar"></div>');$("#drw_main").append('<div style="width: 700px; padding: 25px 50px" id="drwContent1"></div>');$("#drw_main").append('<div style="width: 700px; padding: 10px 50px; text-align: center" id="drwButtons"></div>');showStep1();//Show the first page}};vargDRW=newdrw();$(document).ready(runDRW());// JavaScript Document// JavaScript Document
I've made an update to make the window scroll to the top of the form after a navigation button is clicked; currently, clicking, say, the "Yes, it does" button plunks the user in the middle of the form, which means that scrolling up is necessary. The code can be found at this revision of User:APerson/Gadget-DRN-wizard.js.
APerson (talk!) 01:12, 14 April 2016 (UTC)[reply]
I've improved the internal handling of involved editors so there's less messy string-parsing, and I've fixed a bug where [object Object] would sometimes appear in unwanted places. The code can be found at MediaWiki talk:Gadget-DRN-wizard.js/sandbox (for posterity, this revision).
//Returns string of wikitext for submission to DR pagevarreport="{{DR case status}}\n{{drn filing editor|{{subst:REVISIONUSER}}|~~~~~}}\n{{subst:DNAU|14}}<!-- PLEASE REMOVE THE PREVIOUS COMMENT WHEN CLOSING THIS THREAD. (Otherwise the thread won't be archived until the date shown.) -->\n\n";
to this:
//Returns string of wikitext for submission to DR pagevarreport="{{DR case status}}\n{{subst:DNAU|14}}<!-- REMEMBER TO REMOVE THE PREVIOUS COMMENT WHEN CLOSING THIS THREAD! -->\n{{drn filing editor|{{subst:REVISIONUSER}}|~~~~~}}\n\n";
Well, the buttons are only there because of this; Wikipedia:Dispute resolution noticeboard/request has no content except the div. Not something I've ever used or thought about, so not sure what a redesign would entail. Regarding the snippets, I've actually thought for years that those should be removed from Common.js, but I figure I'm in the minority there. On an unrelated note, I was actually planning on gadgetizing the core of this before the current discussions started/my kiddo got sick. ~ Amory(u • t • c)01:43, 6 March 2020 (UTC)[reply]
Ahh thanks, I was thinking wrong button. Yeah, that should make sense; I don't know how many of us have turned it off, but I can't imagine it's a lot. ~ Amory(u • t • c)03:22, 6 March 2020 (UTC)[reply]
Sorry if I was vague, overtired — I was agreeing with you, both in intent and direction! ~ Amory(u • t • c)03:29, 6 March 2020 (UTC)[reply]
@Writ Keeper and SD0001: as you were mentioned in the tangential discussion at WP:VPT. Perhaps this method wasn't working 7 years ago when this was worked up, but having to check every single page load for the benefit of this one button is certainly overkill! — xaosfluxTalk03:21, 6 March 2020 (UTC)[reply]
Looks good to me. Also remember to edit the page WP:Dispute resolution noticeboard/request itself to say something like "Can't see anything? [click here] to reload the page with JavaScript". (can't do it myself coz it's protected.)
I was actually planning on gadgetizing the core of this
The loader is a gadget, but it importScripts the code; every other such gadget (loader+code) has the core as a separate gadget, which is mw.loader.loaded. ~ Amory(u • t • c)15:30, 8 March 2020 (UTC)[reply]
Ah, I see. But isn't that pointless now after xaosflux's button tweaks? The enwiki version of mw:Snippets/Load JS and CSS by URL doesn't have the ?withModule= option, so the gadgetised core can't be used with that. The gadget definitions (loader+core) should now be removed as they're just polluting the module registry, adding bytes to every page load for no benefit. SD0001 (talk) 19:06, 8 March 2020 (UTC)[reply]
Yes, I said as much in my edit summary; AFAIAC, this was still under discussion/testing. ~ Amory(u • t • c)19:37, 8 March 2020 (UTC)[reply]
There is a conspicuous lag between the loading of the javascript and loading of the CSS. The styles near the top are taking time to appear. This is because the CSS is being loaded using the javascript. To fix this,
@SD0001:} did the first 2, bypassed the redirect on the third (as opposed to building this up in the gadget definition that is about to be disabled anyway) — xaosfluxTalk22:19, 8 March 2020 (UTC)[reply]
The following is a closed discussion of a requested move. Please do not modify it. Subsequent comments should be made in a new section on the talk page. Editors desiring to contest the closing decision should consider a move review after discussing it on the closer's talk page. No further edits should be made to this discussion.
The discussion above is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
This edit request has been answered. Set the |answered= parameter to no to reactivate your request.
On line 191, which has the DNAU parameter, please change the 14 to 28, so that cases are not archived for one month unless the DNAU is removed. (The DNAU is removed by a bot when a case is marked as closed.) Robert McClenon (talk) 04:32, 9 April 2024 (UTC) Robert McClenon (talk) 04:32, 9 April 2024 (UTC)[reply]
Interface-protected edit request on 25 September 2024
This edit request has been answered. Set the |answered= parameter to no to reactivate your request.
Please change line 347 from
'<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 editors behaviour?.</p>'
to
'<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 editor\'s behaviour?.</p>'
User:Sohom Datta - If there is code in the tool that enforces the limit, then leave the code alone and leave the message consistent with the code. If there is code that prevents walls of text from being entered in creating the case, then leave it alone as doing something useful. Robert McClenon (talk) 17:03, 26 December 2024 (UTC)[reply]
Interface-protected edit request on 18 January 2025
This edit request has been answered. Set the |answered= parameter to no to reactivate your request.
I'd like to adjust the format of the template to the below, to better section the user user statements and assist in the TOC on DRN.
On line 64, please amend maxlength: 2000 to maxlength: 1000 - shortens max length of dispute description to 1000 characters.
From line 229 to 236, change the code from the current code:
//User statements
var currentUser = mw.config.get( 'wgUserName' );
for ( userIndex = 0; userIndex < this.involved_users.length; userIndex++ ) {
var user = this.involved_users[ userIndex ];
if ( user != currentUser ) {
report += '==== Summary of dispute by ' + user + " ====\n<div style=\"font-size:smaller\">Please keep it brief - less than 2000 characters if possible, it helps us help you quicker.</div>\n\n";
}
to
//User statements
report += '=== Summary of dispute from contributors ===\n\n';
var currentUser = mw.config.get('wgUserName');
for (userIndex = 0; userIndex < this.involved_users.length; userIndex++) {
var user = this.involved_users[userIndex];
if (user != currentUser) {
report += ';Summary of dispute by ' + user + '\n<div style="font-size:smaller">Please keep it brief - less than 1000 characters if possible, it helps us help you quicker.</div>\n\n';
}
}
Not done (as to the immediate edit request) - after a consensus for the change is ready please change the =yes to =no above to reactivate, along with a message below. — xaosfluxTalk16:08, 23 January 2025 (UTC)[reply]