User:Z721935271/common.js

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' }; $.getScript( '//wikisource.org/w/index.php?title=MediaWiki:Base.js&action=raw&ctype=text/javascript' ) .done( function {	importScript('MediaWiki:IndexForm.js');	importScript('MediaWiki:InterWikiTransclusion.js');	importScript('MediaWiki:TranscludedIn.js');	importScript('MediaWiki:Compare.js'); } ); /* Footnotes as tooltip - from it.wikipedia.org - request by Candalua */ $( function { sups = document.getElementsByTagName("sup"); for (i=0; i<sups.length; i++) {   note_id = sups[i].childNodes[0].href;   if (note_id && (note_id.indexOf("#") != -1))   {     note_id = document.getElementById(note_id.substr(note_id.indexOf("#")+1));     if (note_id)       if (document.all)        {            sups[i].title = note_id.innerText;            sups[i].childNodes[0].title = note_id.innerText;        }        else        {            sups[i].title = note_id.textContent;       }   } } }); if ( mw.config.get( 'wgNamespaceNumber' ) === 0 ) { $( function {		mw.util.addPortletLink( 'p-coll-print_export', 'http://wsexport.wmflabs.org/tool/book.php?lang=fr&format=epub&page=' + mw.config.get( 'wgPageName' ), 'Download as EPUB', 'n-epubExport', 'Download an EPUB version of this page', '',			'#t-print' );	} ); }