MediaWiki:Mobile.js
Nota: Després de publicar, possiblement necessitareu refrescar la memòria cau del vostre navegador per a veure'n els canvis.
- Firefox / Safari: Premeu Majús i alhora cliqueu el botó Actualitzar, o pressioneu Ctrl+F5 o Ctrl+R (⌘+R en un Mac)
- Google Chrome: Premeu Ctrl+Majús+R (⌘+Shift+R en un Mac)
- Internet Explorer / Edge: Premeu Ctrl i alhora cliqueu a Actualitza o pressioneu Ctrl+F5
- Opera: Premeu Ctrl-F5.
/* Any JavaScript here will be loaded for users using the mobile site */
( function ( mw, $ ) {
$( function() {
//link "download as ePub in the toolbar
if( $.inArray( mw.config.get( 'wgNamespaceNumber' ), [ 0 , 114 ] ) !== -1 ) {
$( '#page-actions' ).append(
$( '<li>' ).attr( {
id: 'ca-export-epub',
class: 'icon icon-32px'
} ).append(
$( '<a>' ).attr( {
title: 'Descarregeu una versió EPUB d\'aquesta pàgina',
href: 'https://tools.wmflabs.org/wsexport/tool/book.php?lang=ca&format=epub&page=' + mw.config.get( 'wgPageName' )
} )
)
);
}
} );
} ( mediaWiki, jQuery ) );
/* Cross-domain transclusions through the API. By ThomasV. Plantilla iwpage */
mw.loader.load('//wikisource.org/w/index.php?title=MediaWiki:InterWikiTransclusion.js&action=raw&ctype=text/javascript');