Difference between revisions of "MediaWiki:Common.js"
From DFM Wiki
EricThrift (talk | contribs) (Add code for image map editing) |
EricThrift (talk | contribs) (Undo revision 1100 by EricThrift (talk)) Tag: Undo |
||
Line 4: | Line 4: | ||
mw.util.addPortletLink( 'p-pagemisc', 'https://driedfishmatters.org/cgi-bin/wiki2pdf.py?page=' + encodeURI( mw.config.get( 'wgPageName' ) ), 'Print view', 'pdflink'); | mw.util.addPortletLink( 'p-pagemisc', 'https://driedfishmatters.org/cgi-bin/wiki2pdf.py?page=' + encodeURI( mw.config.get( 'wgPageName' ) ), 'Print view', 'pdflink'); | ||
} ); | } ); | ||
− | |||
− | |||
− | |||
− |
Revision as of 14:37, 10 May 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'); } );