मिडियाविकी:Gadget-WSexport.js
नोंद: साठवून ठेवल्यानंतर बदल पहाण्यासाठी कदाचित तुमच्या ब्राऊजरच्या कॅचेला बायपास करावे लागेल.
- फ़ायरफ़ॉक्स / सफ़ारी: धरुन ठेवा Shift टिचकी मारताना Reload, किंवा हे दाबताना Ctrl-F5 किंवा Ctrl-R (⌘-R मॅकवर)
- गुगल क्रोम: दाबा Ctrl-Shift-R (⌘-Shift-R मॅकसाठी)
- ओपेरा: कडे जा Menu → Settings (ओपेरा → पसंतीक्रम on a Mac) आणि मग गोपनियता आणि सुरक्षा → ब्राउजिंग डाटा काढून टाका → कॅचे छायाचित्रे आणि धारिणी.
/**
* Adds a "Download as EPUB" link to the sidebar
*
* Generates and starts a download of the current page as an EPUB file.
* Subpages of the current page (if any) are included as well.
*
* Uses the WSExport tool on Wikimedia Labs:
* http://wsexport.wmflabs.org/tool/book.php
*
* See Oldwikisource:Wikisource:WSexport for more information
* Bug reports should go to fr:Wikisource:Wsexport
* Tool source code at https://github.com/wsexport
*/
/*global mw, $ */
if ( $.inArray( mw.config.get( 'wgNamespaceNumber' ), [ 0 , 114 ] ) !== -1 ) {
$( function () {
mw.util.addPortletLink(
'p-coll-print_export',
'//wsexport.wmflabs.org/book.php?' + $.param( {
lang: 'en',
format: 'epub-3',
page: mw.config.get( 'wgPageName' )
} ),
'Download as EPUB',
'n-epubExport',
'Download an EPUB version of this page',
'',
'#t-print'
);
mw.util.addPortletLink(
'p-coll-print_export',
'//wsexport.wmflabs.org/book.php?' + $.param( {
lang: 'en',
format: 'mobi',
page: mw.config.get( 'wgPageName' )
} ),
'Download as MOBI',
'n-mobiExport',
'Download a MOBI version of this page',
'',
'#t-print'
);
mw.util.addPortletLink(
'p-coll-print_export',
'//wsexport.wmflabs.org/book.php',
'Choose format',
'n-toolExport',
'Download a version of a work in other formats',
'',
'#t-print'
);
} );
}