User:Chris2map/vector-2022.js

From OpenStreetMap Wiki
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
// Additional links in toolbar site menu
mw.util.addPortletLink ('p-tb', 'https://wiki.openstreetmap.org/wiki/Special:PrefixIndex/' + mw.config.get( 'wgPageName' ), 'Subpages');
mw.util.addPortletLink ('p-tb', 'https://wiki.openstreetmap.org/wiki/Special:CategoryTree/' + mw.config.get( 'wgTitle' ), 'CategoryTree');
mw.util.addPortletLink ('p-tb', 'https://wiki.openstreetmap.org/wiki/Special:GoToLinkedPage/wiki/' + mw.config.get( 'wgTitle' ), 'GoToLinkedPage');
mw.util.addPortletLink ('p-tb', 'https://wiki.openstreetmap.org/wiki/Special:ItemByTitle/wiki/' + mw.config.get( 'wgPageName' ), 'Data item by page title');
mw.util.addPortletLink ('p-tb', 'https://wiki.openstreetmap.org/w/index.php?title=Special:NewItem&site=wiki&page=' + mw.config.get( 'wgPageName' ), 'Create data item');

// [[User:Minh Nguyen/language button.js]]
mw.loader.load("/w/index.php?title=User:Minh Nguyen/language_button.js&action=raw&ctype=text/javascript");