Difference between revisions of "MediaWiki:Common.js"
From DFM Wiki
EricThrift (talk | contribs) (Add javascript for events calendar) |
EricThrift (talk | contribs) (Add external print view link to sidebar menu) |
||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
− | + | ||
− | + | $.when( mw.loader.using('mediawiki.util'), $.ready ).then( function() { | |
+ | mw.util.addPortletLink( 'p-pagemisc', 'https://driedfishmatters.org/cgi-bin/wiki2pdf.py?page=' + encodeURI( mw.config.get( 'wgPageName' ) ), 'Print view', 'pdflink'); | ||
+ | } ); |
Revision as of 12:07, 16 March 2021
/* Any JavaScript here will be loaded for all users on every page load. */ $.when( mw.loader.using('mediawiki.util'), $.ready ).then( function() { mw.util.addPortletLink( 'p-pagemisc', 'https://driedfishmatters.org/cgi-bin/wiki2pdf.py?page=' + encodeURI( mw.config.get( 'wgPageName' ) ), 'Print view', 'pdflink'); } );