MediaWiki:Gadget-WSexport.js
Ծանուցում. Հիշելուց հետո կատարված փոփոխությունները տեսնելու համար մաքրեք ձեր զննարկիչի հիշապահեստը. Mozilla / Firefox / Safari՝ Ctrl+Shift+R (Cmd+Shift+R Mac OS X-ում) Konqueror՝ F5 Opera՝ Tools→Preferences ընտրացանկից։ Internet Explorer՝ Ctrl+F5
/**
* 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',
'http://wsexport.wmflabs.org/tool/book.php?' + $.param( {
lang: 'hy',
format: 'epub',
page: mw.config.get( 'wgPageName' )
} ),
'Ներբեռնել որպես EPUB',
'n-epubExport',
'Ներբեռնել այս էջի EPUB տարբերակը',
'',
'#t-print'
);
} );
}