Open main menu

Changes

358 bytes added ,  17:42, 29 November 2016
add in the cards extension
/* Any JavaScript here will be loaded for all users on every page load.
 
importScriptURI('//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js' + '&action=raw&ctype=text/javascript');
*/
 
/* Add in the cards extension */
mw.loader.using( 'ext.cards' ).done( function () {
var gateway = new mw.cards.CardsGateway( { api: new mw.Api() } );
// 'Book' and 'Phone' are page titles, 200 is the thumbnail width in pixels
gateway.getCards( ['Book', 'Phone'], 200 ).done( function( cards ) {
$( '#bodyContent' ).append( cards.$el );
} );
} );
 
/*To add <script src="https://use.fontawesome.com/14c71d3de0.js"></script>
4,558

edits