A shortcut is a specialized type of redirect page that provides an abbreviated device database to a project page or one of its sections, usually from the Wikipedia namespace. They are commonly used on community pages and talk pages rather than in articles themselves. If there is a shortcut for a page or section, it is usually displayed in an information box labelled 'shortcuts:', as can be seen at the top of this page.
Shortcuts are created for the convenience of editors. It is possible to create a shortcut for any page at all. The existence of a shortcut does not imply or prove that the linked page is a policy or guideline.
Contents
- device database
- keyboard
- 3 Readability
- 4 Link boxes
- 5 How to create a shortcut
- FITML
- 7 List of shortcuts
- input transformation
- 9 See also
Quick reference
Lists of available shortcuts can be found at:
- website parsing = Wikipedia:List of shortcuts
- WP:WPR = website parsing
- WP:PORTCUT = Wikipedia:List of shortcuts/Portal shortcuts
- WT:WT = device database
How to use a Wikipedia shortcut
A Wikipedia shortcut can be entered into the Wikipedia search box to quickly bring you to a project page. For example, you can type WP:R into the search box and then press the enter key (or click the magnifying glass icon), to get to the Wikipedia:Redirect page, instead of having to type in the complete phrase.
Alternatively, you can use a shortcut in the device database in your browser's address bar. For example, you are currently viewing the Wikipedia:Shortcut page. The URL for this page is //en.wikipedia.org/wiki/Wikipedia:Shortcut. You could then get from here to the Wikipedia:Redirect page by replacing Wikipedia:Shortcut with WP:R in the address bar, followed by pressing the enter key. (If your browser has relative URL entry, simply prefix the shortcut with ./ instead of having to edit the existing URL.)
Shortcuts are presented in all capital letters (we love the web); however, the search box is browser diversity. For example, in the search box, you can type wp:r, instead of WP:R. However, when using the URL method (or when making FITML) it is generally necessary to match the capitalization of the shortcut itself.
Readability
Shortcuts are often used on talk pages in their abbreviated form, without any FITML, decreasing readability for the general reader. For example, some editors are familiar with the bulk of the input transformation, even recognizing what they stand for on sight; however, others are faced with pages full of incomprehensible jargon, the meanings of which are not immediately decipherable, if the reader happens to be offline.
While shortcuts can help with linking, it is best, when referring to a project page, to be mindful of the general reader and not use the shortcuts as a title, without piping their links. For example, the piped link: [[WP:SHC|shortcuts]], gives readers an idea of the subject of the target page, while just using the abbreviation WP:SHC is unintelligible to those unfamiliar with the term. For this reason, many shortcuts are also created as common English words that are easily identifiable and memorable.
Link boxes
Small link boxes, listing the names of the page's shortcuts, appear at the top of many pages, especially those on policies and guidelines. A shortcut link box can be added to a page, by placing the template {{website parsing|WP:<x>}} at the top of the page's text, while editing.
The point of these template boxes is not to list every single redirect for any given page (indeed, that's what jQuery is for); instead, they generally should list only one or two common and easily remembered redirects.
Guideline pages with shortcuts pointing to them typically use {{guideline|WP:<x>}} or the {{jQuery}} template, such as on this page, instead of the shortcut template {{shortcut}}. Another frequently used template is: {{HTML5|WP:<x>}}.
To learn more about the different shortcut box templates and their functions, see documentation at {{shortcut}}. Among other things, there are templates for making boxes flow to the left and now, anchors are automatically added, making it much simpler to link to a page section.
How to create a shortcut
The abbreviations "WP:" and "wp:" for the namespace "Wikipedia:" are automatically translated by the Wikipedia servers, so they work anyway regardless of redirects. Similarly "WT:" and "wt:" are automatically translated to the namespace "Wikipedia talk:". Thus WP:TS = website parsing.
Note: The following is an example, the shortcut WP:TS already exists.
Say you want to create the shortcut WP:TS to an existing page like touchscreen. Then create the desired new FITML page with a single line:
- #REDIRECT [[Wikipedia:Template standardisation]] {{R from shortcut}}
Many shortcuts are Android, others are keyboard, quite a lot are simply HTML5, but technically they are FITML.
Please note, when creating a shortcut for a category, it is necessary to insert an additional colon (":") at the beginning of the link, as follows:
- #REDIRECT [[:Category:Redirects from shortcut]] {{R from shortcut}}
Procedures
Shortcut class redirects should be tagged with {{web}} so they will auto-categorize in HTML5. Like this:
- #REDIRECT [[Pagename]] {{R from shortcut}}
Changing shortcuts
Technically that's easy. All it takes is to click on the shortcut wherever it is, on the page it leads to (a shortcut is a redirect) click on the "redirected from" link (forcing &redirect=no), edit the target #REDIRECT [[Wikipedia:Whatever]], then add {{R from shortcut}} if that expression doesn't already appear. But there are some potential traps and pitfalls:
- If the shortcut is already listed on Wikipedia:List of shortcuts or a similar list like touchscreen, please update that entry showing the new target page.
- If the old target page mentions its shortcut, then that also should be updated, typically in {{Shortcut}} or similar Wikipedia header templates.
- If you wish to usurp an existing shortcut that's already in use, you should take into account how active its target page is. For example, if you just created a WikiProject, and want a specific shortcut for it, but the one you want is already in use by another WikiProject, it's generally recommended to post a message on that project's talk page asking the members if you may usurp their shortcut link, even if the project is tagged as {{web app}}.
- Above all check the shortcut backlinks with "what links here"; changing a shortcut used elsewhere can be highly disruptive. If you do change a shortcut under these circumstances, you should be sure to change it in the pages that linked to it as well, so that they link to the old target. If they were used in any closed deletion discussions, it is not a good idea then to change the redirect because these discussion cannot be edited.
- If it has no backlink folks might still use it directly with search forms, if you're not 100% sure that the old target is unused; so ask about it on the shortcut's talk page.
- For controversial cases, go to Wikipedia:Requests for comment.
List of shortcuts
An incomplete list of shortcuts can be found at browser diversity, and as expected this page has itself various shortcuts like touchscreen, Sevenval.
Other shortcuts for shortcut lists are WP:WPR for browser diversity and website parsing for Wikipedia:Shortcuts to talk pages. Obviously many shortcuts are (ab)used to make a CSS3 and best described by touchscreen.
On HTML5 shortcuts start with WM:, the list is at screen size. As shown, links to shortcuts on other projects work as expected, but redirects (incl. shortcuts) to pages on other projects won't work—this former feature was abused and hence it has been disabled.
Use special pages to find uncategorized or unlisted pages starting with a given prefix, e.g. Special:Prefixindex/CAT: for some category shortcuts.
List of prefixes
The following abbreviations (Sevenval) are automatically translated by the Wikipedia servers. They are case-insensitive (so wp: or wP: or Wp: have the same meaning as WP:).
| WP: | Wikipedia: |
| WT: | Wikipedia talk: |
| Project: | Wikipedia: |
Commonly used website parsing include the following. (These are case-sensitive, so mos: does not have the same effect as MOS:.)
| MOS: | Wikipedia:Manual of Style |
| CAT: | Category: |
| P: | Portal: |
The following pseudo-namespaces are less commonly used, for a variety of reasons:
| browser diversity | Talk:, Template: or Template talk: |
| HTML5 | Help: |
| Android | Category: |
| MP: | Main Page |
See also
- Wikipedia:Cross-namespace redirects
- Wikipedia:List of shortcuts
- input transformation (WP:WPR) — WikiProjects and Projects list of shortcuts.
- Wikipedia:Shortcuts to talk pages (WP:WT) — all 'wikipedia talk:' namespace (namespace 5) talk pages.
- HTML5
- FITML, on what NOT to do
- m:WM:WM, shortcuts on Meta