Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Features  





2 Requirements  





3 Installation  





4 Configuration  



4.1  Links  





4.2  More portlets  





4.3  Troubles  







5 Feedback  





6 Development version  





7 Uninstall  














Wikipedia:Tools/Navigation shortcuts






Português
 

Edit links
 









Project page
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

< Wikipedia:Tools

Navigation shortcuts offer the ability to add personal links to the sidebar, providing quick and easy access to favourite articles within Wikipedia.

Quick installation: add {{subst:navshortcuts}} to your common.js (or equivalent skin-specific file). See installation section below for full installation instructions and configuration section for instructions on adding sidebar links.

Features[edit]

Requirements[edit]

Installation[edit]

Configuration[edit]

Navigation shortcuts automatically add a new sidebar portlet (menu with links) named the same as your login is. To add links to the portlet, edit code on your common.js (or equivalent skin-specific file).

Links[edit]

For each link add one line containing

shortcutsAddLink ( 'name', 'article' );

where

Add the lines in the same order in which you want the links to appear in the sidebar between the braces ( { and } ) in the following code:

window.shortcutsInit = function ()
{ 
  shortcutsAddLink ('Navigation shortcuts', 'Wikipedia:Tools/Navigation shortcuts');
};

More portlets[edit]

If you want to add more sidebar portlets, use

shortcutsStartSection ( 'name' );

to start each one. In result the code should look like this:

window.shortcutsInit = function ()
{ 
  shortcutsAddLink ( 'Navigation shortcuts', 'Wikipedia:Tools/Navigation shortcuts' );

  shortcutsStartSection ('wikify');

  shortcutsAddLink ( 'Wikify',          'WP:WWF' );
  shortcutsAddLink ( 'Guide to layout', 'WP:GTL' );
  shortcutsAddLink ( 'Manual of Style', 'WP:MOS' );
};

Troubles[edit]

Keep in mind that all configuration must be done within the window.shortcutsInit = function () { ... }. If the shortcuts are not working, check whether you did not accidentally modify these lines:

Also double-check that all the configuration is placed between those lines.

Feedback[edit]

Development version[edit]

This tool remains under development. The very latest version is available at User:Jsimlo/shortcuts-dev.js and it may see new features before the stable version. Be warned that it may break from time to time. If you do want to install it, type {{subst:js|User:Jsimlo/shortcuts-dev.js}} into your common.js (or equivalent skin-specific file). Do not forget to delete your current installation of Navigation shortcuts as they may interfere with each other, resulting in duplicated links.

Uninstall[edit]


Retrieved from "https://en.wikipedia.org/w/index.php?title=Wikipedia:Tools/Navigation_shortcuts&oldid=1071388192"

Categories: 
Wikipedia scripts
Wikipedia tools
 



This page was last edited on 12 February 2022, at 10:21 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki