বিষয়বস্তুতে চলুন

ব্যবহারকারী:খাত্তাব হাসান/খসড়া সহায়ক.js

উইকিপিডিয়া, মুক্ত বিশ্বকোষ থেকে

লক্ষ্য করুন: প্রকাশ করার পর, পরিবর্তনগুলো দেখতে আপনাকে আপনার ব্রাউজারের ক্যাশে পরিষ্কার করার প্রয়োজন হতে পারে।

  • ফায়ারফক্স / সাফারি: পুনরায় লোড-এ ক্লিক করার সময় শিফট টিপে ধরে রাখুন, অথবা হয় Ctrl-F5 বা Ctrl-R টিপুন (ম্যাকে ⌘-R টিপুন)
  • গুগল ক্রোম: Ctrl-Shift-R (ম্যাকে ⌘-Shift-R) টিপুন
  • এজ: Ctrl ধরে রাখা অবস্থায় Refresh-এ ক্লিক করুন, অথবা Ctrl-F5 টিপুন।
  • অপেরা: Ctrl-F5 টিপুন।
/* Uploaded from https://github.com/WPAFC/afch-rewrite, commit: 24800715ad8fef3129b80f299ccef602518561b8 (master) 
 ইংরেজি গ্যাজেট থেকে আনীত [[en:Special:diff/1065772657]] (এই সংযোগ সরাবেন না। এটি সাইডবারে ভাষার নিচে একটি সংযোগ স্থাপন করবে) দেখুন।
*/
//<nowiki>
( function () {
	// Check that we're in the right namespace and on the right page
	switch ( mw.config.get( 'wgNamespaceNumber' ) ) {
		case 4: // উইকিপিডিয়া
		case 5: // উইকিপিডিয়া আলোচনা
			var pageName = mw.config.get( 'wgTitle' );
			// return nothing for now, all drafts are now under Draft namespace
			// currently only the article submission script is running here.
			// to be used when script(s) for other modules such as category and
			// redirect requests are reintergrated into here.
			if ( pageName !== 'Articles for creation/sandbox' ) {
				return;
			}
			break;
		case 2: // ব্যবহারকারী
		case 118: // খসড়া
			break;
		default:
			return;
	}

	// Initialize the AFCH object
	window.AFCH = {};

	// Set up constants
	AFCH.consts = {};

	AFCH.consts.scriptpath = mw.config.get( 'wgServer' ) + mw.config.get( 'wgScript' );

	// These next two statements (setting beta and baseurl) may be modified
	// by the uploading script! If you change them, check that the uploading
	// script at scripts/upload.py doesn't break.
	AFCH.consts.beta = false;
	AFCH.consts.baseurl = AFCH.consts.scriptpath +
		'?action=raw&ctype=text/javascript&title=খাত্তাব_হাসান/খসড়া_সহায়ক.js';

	$.getScript( AFCH.consts.baseurl + '/core.js' ).done( function () {
		var loaded = AFCH.load( 'submissions' ); // perhaps eventually there will be more modules besides just 'submissions'
		if ( !loaded ) {
			mw.notify( 'খসড়া সহায়ক লোড হতে পারেনি: ' + ( AFCH.error || 'unknown error' ),
				{ title: 'খসড়া সহায়ক ত্রুটি' } );
		}
	} );
}() );
//</nowiki>