Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Wikipedia:Tools/Navigation shortcuts

From Wikipedia, the free encyclopedia
<Wikipedia:Tools
This page is currently inactive and is retained forhistorical reference.

This functionality is now implemented by default. SeeHelp:Customizing toolbars for more.

Note: This page has been superseded by the features described inHelp:Customizing toolbars.

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 yourcommon.js (or equivalent skin-specific file). Seeinstallation section below for full installation instructions andconfiguration section for instructions on adding sidebar links.

Features

[edit]
  • Add one or more personal sidebars with links below the Wikipedia logo.
    • Sidebar is the Wikipedia's menu on the left (by default), beneath the Wikipedia logo.
    • Note: Navigation shortcuts does not remove any portlets and/or links from the default Wikipedia sidebar. Usecommon.css to do that (or equivalent skin-specific file).

Requirements

[edit]
  • User account on the Wikipedia.
  • Enabled and workingjavascripts in your browser.

Installation

[edit]
  • You must have a user account in order to install and use the Navigation shortcuts. If you do not have an account you will need tocreate one and log in.
  • Clear your browser's cache. See yourcommon.js to learn how to do that.

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 yourcommon.js (or equivalent skin-specific file).

Links

[edit]

For each link add one line containing

shortcutsAddLink ( 'name', 'article' );

where

  • name is the displayed name in the link,
  • article is the article name that the link points to.

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 thewindow.shortcutsInit = function () { ... }. If the shortcuts are not working, check whether you did not accidentally modify these lines:

  • window.shortcutsInit=function(){
  • };

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

Feedback

[edit]
  • Report bugs and problems on thetalk page.
  • Request features and post suggestions on thetalk page.

Development version

[edit]

This tool remains under development. The very latest version is available atUser: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 yourcommon.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]
  • To uninstall Navigation shortcuts, delete all lines referring toUser:Jsimlo/shortcuts.js from yourcommon.js (or equivalent skin-specific file). Also remove all configuration from the rest of the file.
  • Clear your browser's cache. See yourcommon.js to learn how to do that.
General
technical help
Special
page
-related
Wikitext
Links anddiffs
Media files: images,
videos and sounds
Other graphics
Templates and
Lua modules
Data structure
HTML andCSS
Customisation
and tools
Automated editing
Retrieved from "https://en.wikipedia.org/w/index.php?title=Wikipedia:Tools/Navigation_shortcuts&oldid=1261935843"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp