ମିଡ଼ିଆଉଇକି:Common.js

ଉଇକିପାଠାଗାର‌ରୁ

ସୂଚନା: ବଦଳଗୁଡ଼ିକ ଦେଖିବା ପାଇଁ ଆପଣଙ୍କୁ ହୁଏତ ନିଜ ବ୍ରାଉଜର କ୍ୟାସ ବାଇପାସ କରିବାକୁ ପଡ଼ିପାରେ ।

  • Firefox / Safari: Reload ଉପରେ କ୍ଲିକ କରିବା ବେଳେ Shift ଧରି କିମ୍ବା Ctrl-F5 ବା Ctrl-R ଦବାନ୍ତୁ (Macରେ ⌘-R)
  • Google Chrome: Ctrl-Shift-R ଦବାନ୍ତୁ (Macରେ ⌘-Shift-R)
  • Internet Explorer / Edge: Refresh ଉପରେ କ୍ଲିକ କଲା ବେଳେ Ctrl ଧରି ବା Ctrl-F5 ଦବାଇ
  • Opera: Ctrl-F5 ଦବାନ୍ତୁ ।
/**
 * 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 eqnull:true, strict:false, browser:true, */
 
mw.loader.using( ['mediawiki.util', 'jquery.client'], function () {
/* Begin of mw.loader.using callback */
 
/**
 * Scripts imported from wikisource.org
 * see [[oldwikisource:Wikisource:Shared Scripts]] for details
 */
jQuery.getScript('//wikisource.org/w/index.php?title=MediaWiki:Base.js&action=raw&ctype=text/javascript', function() {
   mw.loader.load('//en.wikisource.org/w/index.php?title=MediaWiki:DisplayFooter.js&action=raw&ctype=text/javascript');
   mw.loader.load('//en.wikisource.org/w/index.php?title=MediaWiki:PageNumbers.js&action=raw&ctype=text/javascript');
   mw.loader.load('//wikisource.org/w/index.php?title=MediaWiki:IndexForm.js&action=raw&ctype=text/javascript');
   // mw.loader.load('//wikisource.org/w/index.php?title=MediaWiki:OCR.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('//wikisource.org/w/index.php?title=MediaWiki:Dictionary.js&action=raw&ctype=text/javascript');
   // mw.loader.load('//wikisource.org/w/index.php?title=MediaWiki:Corrections.js&action=raw&ctype=text/javascript');
   mw.loader.load('//wikisource.org/w/index.php?title=MediaWiki:InterWikiTransclusion.js&action=raw&ctype=text/javascript');
   // Google OCR tool (see https://wikisource.org/wiki/Wikisource:Google_OCR)
   mw.loader.load('//wikisource.org/w/index.php?title=Wikisource:Google_OCR/script.js&action=raw&ctype=text/javascript');
} );
 
/**
 * Messages are configurable here
 */
self.ws_messages = { 
	'iwtrans':'Its text comes from', 
	'iwtrans2':'Its text comes from other sub-domains.',
	'optlist':'Display options',
	'hide_page_numbers':'Hide page links',
	'show_page_numbers':'Show page links',
	'layout':'Layout',
	'author':'Author',
	'translator':'Translator', 
	'editor':'Editor', 
	'publisher':'Publisher', 
	'place':'Place', 
	'volume':'Volume', 
	'school':'School', 
	'book':'Book', 
	'collection':'Collection', 
	'journal':'Journal or magazine', 
	'phdthesis':'Thesis, report', 
	'dictionary':'Dictionary', 
	'progress':'Progress', 
	'progress_T':'Done', 
	'progress_V':'To be validated', 
	'progress_C':'To be proofread', 
	'progress_MS':'Ready for Match & Split', 
	'progress_OCR':'Needs an OCR text layer', 
	'progress_L':'Source file is incorrect (missing pages, unordered pages, etc)',
 
	'page_namespace_name':      'Page',
	'page_trascluded_in':       'Page trascluded in:',
	'text_number':              'Text',
 
	'compare_with':  'Comparison with:',
	'compare_texts': 'Compare texts'
};
// Dynamic layouts
if ( !self.ws_layouts ) {
 self.ws_layouts = {};
}
self.ws_layouts['Layout 1'] = {
	'#text-wrap':"position:relative; margin-left:3.0em;",
	'#text-container':"position:relative;",
	'#text':"",
	'.sidenote-right':"float:right; margin:0.5em; padding:3px; border:solid 1px gray; max-width:9em; text-indent:0em; text-align:left;",
	'.sidenote-left':"float:left; margin:0.5em; padding:3px; border:solid 1px gray; max-width:9em; text-indent:0em; text-align:left;",
	'.mw-editsection':"display:none;",
	'#headertemplate':""
};
self.ws_layouts['Layout 2'] = {
	'#text-wrap':"position:relative; margin-left:3.0em; margin-right:3.0em;",
	'#text-container':"position:relative;width:36em; margin:0 auto 0 auto; font-family:Georgia,serif;",
	'#text':"text-align:justify;",
	'.sidenote-right':"position:absolute; left:37em; width:16em; text-indent:0em; text-align:left;",
	'.sidenote-left':"position:absolute; left:37em; width:16em; text-indent:0em; text-align:left;",
	'.mw-editsection':"display:none;",
	'#headertemplate':"font-family:sans-serif;"
};
self.ws_layouts['Layout 3'] = {
	'#text-wrap':"position:relative; margin-left:3.0em;",
	'#text-container':"position:relative; min-width:60em; float:left; width:100%; margin-right:-23em;",
	'#text':"position:relative; text-align:justify; margin-right:23em; text-indent:0em; padding-left:0px; padding-right:0px; width:auto;",
	'.sidenote-right':"position:absolute; right:-10em; width:9em; background-color:#eeeeee; text-indent:0em; text-align:left;",
	'.sidenote-left':"position:absolute; right:-10em; width:9em; background-color:#eeeeee; text-indent:0em; text-align:left;",
	'.mw-editsection':"display:none;",
	'#headertemplate':"position:absolute; top:0em; right:-23em; width:21em; float:right; text-align:left;"
};
self.ws_layouts['Proposed Layout'] = {
	'#text-wrap':"position:relative; margin-left:3.00em;",
	'#text-container':"position:relative; margin-right:-20em; min-width:60em; width:100%;",
	'#text':"position:relative; width:auto; margin-right:20em; padding-right:0px; padding-left:0px; text-indent:0.00em; text-align:justify;",
	'.sidenote-right':"position:absolute; right:-10em; width:9.00em; background-color:#eeeeee; text-indent:0.00em; text-align:left;",
	'.sidenote-left':"position:absolute; right:-10em; width:9.00em; background-color:#eeeeee; text-indent:0.00em; text-align:left;",
	'.mw-editsection':"display:none;",
	'#headertemplate':"position:relative; font-family:sans-serif; margin-bottom:1.33em;"
};

/* End of mw.loader.using callback */
//Odia converter code
if ( $( "#odia-converter" ).length ) 
{
	html = $('#hidden-html-code').text();
	$('#odia-converter').html(html);
}
} );
// mw.loader.load("//or.wikisource.org/w/index.php?title=ମିଡ଼ିଆଉଇକି:Cropimage.js&action=raw&ctype=text/javascript");
/* DO NOT ADD CODE BELOW THIS LINE */