मीडियाविकि:Gadget-WSexport.js

विकिस्रोतः तः

सूचना : भवता/भवत्या कृतानि सम्पादनानि संरक्ष्य तानि परिवर्तनेषु द्रष्टुं गवेषकस्य पृष्ठस्य पुनरारोपणम् (reload) आवश्यकं भवति ।

  • Firefox / Safari: Shiftकुड्मलेन सह Reloadकुड्मलं नुदतु ।
  • Google Chrome: Ctrl-Shift-R नोदनेन पुनरारोपणं भवति । (⌘-R इति Mac तन्त्रांशप्रयोक्तॄभ्यः)
  • Internet Explorer: Ctrlकुड्मलेन सह Refreshकुड्मलं नुदतु, Ctrl-F5 नुदतु वा ।
  • Opera: Tools → Preferences इत्यत्र गत्वा कर्तुं शक्नोति ।
/**
 * 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',
			'//tools.wmflabs.org/wsexport/tool/book.php?' + $.param( {
				lang: 'sa',
				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',
			'//tools.wmflabs.org/wsexport/tool/book.php?' + $.param( {
				lang: 'sa',
				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',
			'//tools.wmflabs.org/wsexport/tool/book.php',
			'Choose format',
			'n-toolExport',
			'Download a version of a work in other formats',
			'',
			'#t-print'
		);
	} );
}
"https://sa.wikisource.org/w/index.php?title=मीडियाविकि:Gadget-WSexport.js&oldid=63177" इत्यस्माद् प्रतिप्राप्तम्