User:YuviPanda/wizard/drn.js

( function {   if( mw.wizard ) {        mw.wizard.initialize( { getSectionText: function( data ) { var report = "\n" + "\n" + "" +                              "\n\n"; //On Talk Page report += "Have you discussed this on a talk page? \n"; report += "\nYes, I have discussed this issue on a talk page already.\n\n";

//Article Title report += "Location of dispute \n"; var articles = data[ 'disputed-article' ].split(','); $.each( articles, function( i, article ) {                   if( $.trim( article ) !== '' ) {                        report += "* \n";                    }                } );

//Involved users report += "Users involved \n"; var users = data[ 'involved-users' ].split(','); $.each( users, function( i, user ) {                   if( $.trim( user ) !== '' ) {                        report += "* \n";                    }                } );

//Dispute Description report += "Dispute overview \n"; report += "\n"+ data[ 'overview' ]+"\n\n";

//Previous forums report += "Have you tried to resolve this previously? \n"; report += "\n"+ data[ 'other-steps' ] +"\n\n";

//Desired Outcome report += "How do you think we can help? \n"; report += "\n" + data[ 'expected-outcome' ] +"\n\n";

//User statements var currentUser = mw.user.getName; $.each( users, function( i, user ) {                   if( $.trim( user ) !== currentUser && $.trim( user ) !== '' ) {                        report += "==== Opening comments by " + user + " ====\nPlease limit to 2000 characters - longer statements may be deleted in their entirety or asked to be shortened. This is so a volunteer can review the dispute in a timely manner. Thanks. \n\n";                    }                } );

//Discussion report += "=== " + data[ 'disputed-article' ] + " discussion ===\nPlease do not use this for discussing the dispute prior to a volunteer opening the thread for comments - continue discussing the issues on the article talk page if necessary. ";

return report; },           getSectionTitle: function( data ) { return data[ 'disputed-article' ]; },           getEditSummary: function( data ) { return data[ 'disputed-article' ]; },           inputDefaults: { 'involved-users': function { return mw.user.getName + ','; }           }        } );    } } );