মিডিয়াউইকি:Common.js
পরিভ্রমণে ঝাঁপ দিন
অনুসন্ধানে ঝাঁপ দিন
টীকা: সংরক্ষণ করার পর, পরিবর্তনসমূহ তৎক্ষণাৎ নাও দেখাতে পারে। আপনার ব্রাউজারের ক্যাশ কিভাবে এড়াবেন তা জানতে এখানে ক্লিক করুন।
- ফায়ারফক্স / সাফারি: Shift ধরে রাখা অবস্থায়পুনঃলোড করুন-এ ক্লিক করুন, অথবা Ctrl-F5 বা Ctrl-R (ম্যাক-এ ⌘-R) চাপুন
- গুগল ক্রোম: Ctrl-Shift-R (ম্যাক-এ ⌘-Shift-R) চাপুন
- ইন্টারনেট এক্সপ্লোরার: Ctrl ধরে রাখা অবস্থায় Refresh-এ ক্লিক করুন, অথবা Ctrl-F5 চাপুন
- অপেরা: মেনু → ব্যবস্থাপনাসমূহ-এ যান (ম্যাকে অপেরা → পছন্দসমূহ) এবং এরপর গোপনীয়তা ও সুরক্ষা → ব্রাউজিং-এর তথ্য পরিষ্কার করুন → ক্যাশে করা ছবি ও ফাইলগুলি।
অন্যান্য ব্রাউজার সম্পর্কে বিশদ নির্দেশাবলীর জন্য, উইকিপিডিয়া:আপনার ক্যাশে বাইপাস করুন দেখুন।
![]() |
This is JavaScript for all users. Any changes to this page should first be proposed on its talk page or in Wikisource's Central Discussion portal.
Please note that changes are visible within minutes. You can also Testing can be done on your personal in the interim if you wish to refresh the content sooner. Errors you make here can disrupt the entire library, so make sure you know what you are doing. common.js or skin-specific JS file. |
//<source lang="javascript">
/**
* Keep code in MediaWiki:Common.js to a minimum as it is unconditionally
* loaded for all users on every wiki page. If possible create a gadget that is
* enabled by default instead of adding it here (since gadgets are fully
* optimized ResourceLoader modules with possibility to add dependencies etc.)
*
* Since Common.js isn't a gadget, there is no place to declare its
* dependencies, so we have to lazy load them with mw.loader.using on demand and
* then execute the rest in the callback. In most cases these dependencies will
* be loaded (or loading) already and the callback will not be delayed. In case a
* dependency hasn't arrived yet it'll make sure those are loaded before this.
*/
/* global mw, $, importStylesheet, importScript */
/* jshint curly:false, strict:false, eqnull:true, browser:true */
mw.loader.using( ['mediawiki.user', 'mediawiki.util', 'mediawiki.notify', 'jquery.client'] ).done( function () {
/* Begin of mw.loader.using callback */
/**
* Scripts imported from wikisource.org
* see [[oldwikisource:Wikisource:Shared Scripts]] for details
*/
//mw.loader.load('//en.wikisource.org/w/index.php?title=MediaWiki:Base.js&action=raw&ctype=text/javascript');
mw.loader.load('//bn.wikisource.org/w/index.php?title=MediaWiki:PageNumbers.js&action=raw&ctype=text/javascript');
mw.loader.load('//bn.wikisource.org/w/index.php?title=MediaWiki:IndexForm.js&action=raw&ctype=text/javascript');
// mw.loader.load('//en.wikisource.org/w/index.php?title=MediaWiki:OCR.js&action=raw&ctype=text/javascript');
mw.loader.load('//wikisource.org/w/index.php?title=MediaWiki:DisplayFooter.js&action=raw&ctype=text/javascript');
// Dictionary.js used for [[DL]]-type links, as per [[A Dictionary of Music and Musicians/A]]
// mw.loader.load('//en.wikisource.org/w/index.php?title=MediaWiki:Dictionary.js&action=raw&ctype=text/javascript');
// mw.loader.load('//en.wikisource.org/w/index.php?title=MediaWiki:Corrections.js&action=raw&ctype=text/javascript');
mw.loader.load('//bn.wikisource.org/w/index.php?title=MediaWiki:InterWikiTransclusion.js&action=raw&ctype=text/javascript');
mw.loader.load('//wikisource.org/w/index.php?title=MediaWiki:Compare.js&action=raw&ctype=text/javascript');
mw.loader.load('//bn.wikisource.org/w/index.php?title=MediaWiki:TranscludedIn.js&action=raw&ctype=text/javascript');
/**
* Script for Google OCR by Cloud Vision API
*/
mw.loader.load('//wikisource.org/w/index.php?title=MediaWiki:GoogleOCR.js&action=raw&ctype=text/javascript');
// Search results from Wikidata
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Search' || ( mw.config.get( 'wgArticleId' ) === 0 && mw.config.get( 'wgCanonicalSpecialPageName' ) === false ) ) {
mw.loader.load("//en.wikipedia.org/w/index.php?title=MediaWiki:Wdsearch.js&action=raw&ctype=text/javascript");
}
//importScript for crop image co-rodianate zone, not new file created
//mw.loader.load("//bn.wikisource.org/w/index.php?title=মিডিয়াউইকি:Cropimage.js&action=raw&ctype=text/javascript");
/**
* Messages are configurable here
*/
if(!self.ws_messages) self.ws_messages = { };
window.ws_msg = function (name) {
var m = self.ws_messages[name];
if(m) return m; else return name;
};
self.ws_messages = {
'author':'লেখক',
'translator':'অনুবাদক',
'editor':'সম্পাদক',
'publisher':'প্রকাশক',
'place':'স্থান',
'volume':'খণ্ড',
'school':'বিদ্যালয়',
'book':'বই',
'collection':'সংকলন',
'journal':'সাময়িকী বা ম্যাগাজিন',
'phdthesis':'থিসিস, প্রতিবেদন',
'dictionary':'অভিধান',
'progress':'অগ্রগতি',
'progress_T':'সম্পন্ন',
'progress_V':'বৈধকরণ করতে হবে',
'progress_C':'মুদ্রণ সংশোধন করতে হবে',
'progress_MS':'মিল ও বিভক্তের জন্য প্রস্তুত',
'progress_OCR':'উৎস ফাইলে একটি OCR পাঠ্য স্তর দরকার',
'progress_L':'উৎস ফাইল ভুল (পৃষ্ঠা অনুপস্থিত, ক্রম সঠিক না, ইত্যাদি)',
'progress_X':'পাতার তালিকা দরকার (মুদ্রণ সংশোধনের আগে ফাইল সম্পূর্ণ ও সঠিক কিনা তা যাচাই করার জন্য)',
'▲':'পৃষ্ঠার উপরে ফিরে যান',
'corr_list':'List of typos identified on this page',
'corr_link':'Typos Marked',
'corr_one':'One typo</a> has been marked.',
'corr_many':' typos</a> have been marked.',
'corr_close':'বন্ধ করুন।',
'iwtrans':'এটির লেখা এসেছে এখান থেকে',
'iwtrans2':'এটির লেখা অন্যান্য উইকিসংকলন উপডোমেন থেকে এসেছে।',
'page_namespace_name': 'পাতা',
'page_trascluded_in': 'পাতা অন্তর্ভুক্ত হয়েছে:',
'text_number': 'লেখা',
'compare_with': 'Comparison with:',
'compare_texts': 'Compare texts'
};
/* stop faux red links on fresh links */
$( "div.mw-body a" ).removeClass( "stub" );
/**
* Envelope subNotes found in main navigation header derivatives
* Namespace coverage: Main (ns-0), Translation (ns-114)
* See also _____
*
* Ver 0.10, 2015-01-31
*/
jQuery( document ).ready( function ( $ ) {
var nsSubNotes = [ 0, 114 ];
if ( $.inArray( mw.config.get( 'wgNamespaceNumber' ), nsSubNotes ) !== -1 ) {
$( 'div.subNote' ).insertBefore( $( 'div#ws-data' ) );
}
} );
/**
* Envelope hatNotes & similar into main navigation header container
* Namespace coverage: Main (ns-0), Translation (ns-114)
* See also _____
*
* Ver 0.30, 2015-12-31
*/
jQuery( document ).ready( function ( $ ) {
var nsHatNotes = [ 0, 114 ];
if ( $.inArray( mw.config.get( 'wgNamespaceNumber' ), nsHatNotes ) !== -1 ) {
$( 'div.similar' ).prependTo( $( 'div#headerContainer' ) );
$( 'table.ambox' ).prependTo( $( 'div#headerContainer' ) );
}
} );
/**
* Force Footer &/or end matter out of Dynamic Layouts
* Namespace coverage: Main (ns-0), Translation (ns-114)
* See also _____
*
* Ver 0.40, 2015-01-31
*/
jQuery( document ).ready( function ( $ ) {
var nsFooters = [ 0, 114 ];
if ( $.inArray( mw.config.get( 'wgNamespaceNumber' ), nsFooters ) !== -1 ) {
$( 'table.acContainer' ).insertAfter( $( 'div.printfooter' ) );
$( 'div.licenseContainer' ).not( 'div.licenseContainer div.licenseContainer' ).insertBefore( $( 'div#catlinks' ) );
}
} );
/**
* Force Header &/or section heading matter out of Dynamic Layouts
* Namespace coverage: Main (ns-0), Translation (ns-114)
* See also _____
*
* Ver 0.20, 2015-12-31
*/
jQuery( document ).ready( function ( $ ) {
var nsHeaders = [ 0, 114 ];
if ( $.inArray( mw.config.get( 'wgNamespaceNumber' ), nsHeaders ) !== -1 ) {
$( 'div#headerContainer' ).prependTo( $( 'div#mw-content-text' ) );
$( 'div#heederContainer' ).prependTo( $( 'div#mw-content-text' ) );
$( 'div#heedertemplate' ).prependTo( $( 'div#mw-content-text' ) );
}
} );
/**
* PageNumbers Dynamic Layouts helper
*
* removes sidebar Display Options menu from all ns except Main and Translation
*
*/
jQuery( document ).ready( function ( $ ) {
var nsDynamicLayouts = [ -1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 100, 101, 102, 103, 104, 105, 106, 107, 115, 828, 829 ];
if ( $.inArray( mw.config.get( 'wgNamespaceNumber' ), nsDynamicLayouts ) !== -1 ) {
$( 'div' ).remove( '#p-do' );
}
} );
/* End of mw.loader.using callback */
} );
/* DO NOT ADD CODE BELOW THIS LINE */
//</source>